2012-04-21 16:46:37 -05:00
|
|
|
#include "Graphics.h"
|
|
|
|
|
2012-06-23 08:59:07 -05:00
|
|
|
#ifndef OGLI
|
2012-04-21 16:46:37 -05:00
|
|
|
|
|
|
|
Graphics::Graphics():
|
|
|
|
sdl_scale(1)
|
|
|
|
{
|
|
|
|
vid = (pixel *)malloc(PIXELSIZE * ((XRES+BARSIZE) * (YRES+MENUSIZE)));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Graphics::~Graphics()
|
|
|
|
{
|
|
|
|
free(vid);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Graphics::Clear()
|
|
|
|
{
|
|
|
|
memset(vid, 0, PIXELSIZE * ((XRES+BARSIZE) * (YRES+MENUSIZE)));
|
|
|
|
}
|
|
|
|
|
2012-05-30 06:32:58 -05:00
|
|
|
void Graphics::Finalise()
|
2012-04-21 16:46:37 -05:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-06-23 08:59:07 -05:00
|
|
|
#define VIDXRES XRES+BARSIZE
|
|
|
|
#define VIDYRES YRES+MENUSIZE
|
2012-07-03 07:31:17 -05:00
|
|
|
#define PIXELMETHODS_CLASS Graphics
|
2012-06-23 08:59:07 -05:00
|
|
|
#include "PixelMethods.inc"
|
|
|
|
#undef VIDYRES
|
|
|
|
#undef VIDXRES
|
|
|
|
#undef PIXELMETHODS_CLASS
|
2012-04-21 16:46:37 -05:00
|
|
|
|
|
|
|
#endif
|