2007-12-30 17:41:49 +01:00
|
|
|
/***************************************************************************
|
|
|
|
|
|
|
|
main.h
|
|
|
|
|
|
|
|
(c) 2005-2007 Laurent Carlier <lordheavy@users.sourceforge.net>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2009-08-17 12:41:51 +02:00
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
2007-12-30 17:41:49 +01:00
|
|
|
any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2011-06-03 02:51:09 +02:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
|
|
MA 02110-1301, USA.
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __MAIN_H
|
|
|
|
#define __MAIN_H
|
|
|
|
|
2009-08-17 00:07:48 +02:00
|
|
|
#include "gb_common.h"
|
2007-12-30 17:41:49 +01:00
|
|
|
#include "gambas.h"
|
2009-01-17 00:12:10 +01:00
|
|
|
#include "gb.image.h"
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
#ifndef __MAIN_C
|
|
|
|
extern GB_INTERFACE GB;
|
2009-08-17 00:07:48 +02:00
|
|
|
extern IMAGE_INTERFACE IMAGE;
|
2007-12-30 17:41:49 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef WARNING
|
|
|
|
#define WARNING(c) printf("WARNING: " c)
|
|
|
|
#endif /* WARNING */
|
|
|
|
|
2009-01-17 00:12:10 +01:00
|
|
|
int IMAGE_get_pixel_format(GB_IMG *image);
|
2009-08-17 00:07:48 +02:00
|
|
|
bool IMAGE_get(GB_OBJECT *arg, GB_IMG **img, int *format);
|
2009-01-17 00:12:10 +01:00
|
|
|
|
2011-08-01 10:44:48 +02:00
|
|
|
#define IMAGE_get_ncolors(_format) (GB_IMAGE_FMT_IS_24_BITS(_format) ? 3 : 4)
|
|
|
|
|
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
#endif
|
2009-08-17 00:07:48 +02:00
|
|
|
|