Mercurial > hg > Game > Cerium
view Renderer/Engine/viewerNONE.cc @ 1127:c4287bf771a0 draft
CreatePolygonFromSceneGraph can work on Mac OSX.
author | Yutaka_Kinjyo |
---|---|
date | Sun, 13 Feb 2011 23:27:22 +0900 |
parents | c9d0683c9b39 |
children |
line wrap: on
line source
#include "viewerNONE.h" #include "TaskManager.h" #define default_sdl_flag SDL_INIT_TIMER | SDL_INIT_JOYSTICK ViewerNONE::~ViewerNONE() {} Uint32 * ViewerNONE::video_init(TaskManager *manager, int bpp, int width, int height) { Uint32 sdl_flag = default_sdl_flag | SDL_INIT_VIDEO; if (SDL_Init(sdl_flag) < 0) { fprintf(stderr,"Couldn't initialize SDL: %s\n",SDL_GetError()); exit(1); } this->width = 0; this->height = 0; this->bpp = 0; return NULL; } uint32_t * ViewerNONE::flip_screen(uint32_t *old) { return NULL; }