2007-12-30 17:41:49 +01:00
|
|
|
/***************************************************************************
|
|
|
|
|
|
|
|
main.c
|
|
|
|
|
2011-12-31 03:39:20 +01:00
|
|
|
(c) 2000-2012 Benoît Minisini <gambas@users.sourceforge.net>
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
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,
|
2011-12-31 03:39:20 +01:00
|
|
|
MA 02110-1301, USA.
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#define __MAIN_C
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
|
|
|
|
#include "gb_common.h"
|
2009-12-24 16:09:08 +01:00
|
|
|
#include "cpaint.h"
|
2007-12-30 17:41:49 +01:00
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
|
|
|
|
GB_INTERFACE GB EXPORT;
|
2013-05-04 19:23:17 +02:00
|
|
|
GEOM_INTERFACE GEOM EXPORT;
|
2009-01-17 00:12:10 +01:00
|
|
|
IMAGE_INTERFACE IMAGE EXPORT;
|
2007-12-30 17:41:49 +01:00
|
|
|
|
|
|
|
GB_DESC *GB_CLASSES [] EXPORT =
|
|
|
|
{
|
2009-12-28 02:19:27 +01:00
|
|
|
PaintExtentsDesc,
|
|
|
|
PaintMatrixDesc,
|
|
|
|
PaintBrushDesc,
|
|
|
|
PaintDesc,
|
2007-12-30 17:41:49 +01:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
void *GB_DRAW_1[] EXPORT =
|
|
|
|
{
|
|
|
|
(void *)1,
|
2009-12-28 02:19:27 +01:00
|
|
|
(void *)PAINT_get_current,
|
|
|
|
(void *)PAINT_begin,
|
|
|
|
(void *)PAINT_end,
|
2007-12-30 17:41:49 +01:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2013-05-04 19:23:17 +02:00
|
|
|
const char *GB_INCLUDE EXPORT = "gb.geom";
|
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
int EXPORT GB_INIT(void)
|
|
|
|
{
|
2013-05-04 19:23:17 +02:00
|
|
|
GB.Component.Load("gb.geom");
|
|
|
|
GB.GetInterface("gb.geom", GEOM_INTERFACE_VERSION, &GEOM);
|
2012-05-08 17:32:33 +02:00
|
|
|
GB.Component.Load("gb.image");
|
2009-01-17 00:12:10 +01:00
|
|
|
GB.GetInterface("gb.image", IMAGE_INTERFACE_VERSION, &IMAGE);
|
2007-12-30 17:41:49 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void EXPORT GB_EXIT()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|