Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/viewer.h @ 228:c254a2bd1b34
remove SceneGraph::data, add SceneGraph::coord_xyz, coord_tex, normal
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 12 Feb 2009 16:31:38 +0900 |
parents | 5cde66c926b4 |
children | 25c820b6060e |
line wrap: on
line source
#ifndef INCLUDED_VIEWER #define INCLUDED_VIEWER #include <SDL.h> #ifndef INCLUDED_VIEWER_TYPES # include "viewer_types.h" #endif class Viewer { public: Viewer(int bpp, int width, int height, int spenum); virtual ~Viewer(void) {} /* screen info */ int width; int height; int bpp; int spe_num; int rgb_size[3]; Uint32 video_flags; Uint32 *pixels; virtual void video_init(void) = 0; void init(); int get_ticks(); bool quit_check(); void quit(); virtual void swap_buffers(); virtual void clean_pixels() {} virtual void run_init(const char *xml, int sg_number); virtual void run_loop(void); virtual void run_draw(void); virtual void run_finish(void); }; #endif #define default_sdl_flag SDL_INIT_TIMER | SDL_INIT_JOYSTICK