Mercurial > hg > Game > Cerium
diff Renderer/Engine/viewerGL.h @ 944:0ab84d4c689a draft
rename viewerGL
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 31 Jul 2010 21:40:30 +0900 |
parents | ec1b15cdfee0 |
children | f389d7fcc25c |
line wrap: on
line diff
--- a/Renderer/Engine/viewerGL.h Sat Jul 31 18:43:05 2010 +0900 +++ b/Renderer/Engine/viewerGL.h Sat Jul 31 21:40:30 2010 +0900 @@ -23,38 +23,38 @@ namespace OPENGL_PARAM { - static const double near = -1000.0; - static const double far = 1000.0; - static const GLfloat lightAmbient[] = {0.25f, 0.25f, 0.25f}; - static const GLfloat lightDiffuse[] = {1.0f, 1.0f, 1.0f}; - static const GLfloat lightSpecular[] = {1.0f, 1.0f, 1.0f}; - static const GLfloat lightPosition[] = {0.5f, 0.5f, 1.0f, 0.0f}; + static const double near = -1000.0; + static const double far = 1000.0; + static const GLfloat lightAmbient[] = {0.25f, 0.25f, 0.25f}; + static const GLfloat lightDiffuse[] = {1.0f, 1.0f, 1.0f}; + static const GLfloat lightSpecular[] = {1.0f, 1.0f, 1.0f}; + static const GLfloat lightPosition[] = {0.5f, 0.5f, 1.0f, 0.0f}; } -class cViewerGL : public Viewer { - public: - cViewerGL(TaskManager *m, int b, int w, int h, int _num); - ~cViewerGL(){}; +class ViewerGL : public Viewer { +public: + ViewerGL(TaskManager *m, int b, int w, int h, int _num); + ~ViewerGL(){}; - private: - bool quit_flag; +private: + bool quit_flag; - /* measure for FPS (Frame Per Second) */ - int start_time; - int this_time; - int frames; + /* measure for FPS (Frame Per Second) */ + int start_time; + int this_time; + int frames; - public: - void video_init(int bpp, int width, int height); - void run_loop(); - void pickup_vertex(); - void obj_draw(float *xyz, float *tex_xyz, float *normal_xyz); - void clean_pixels(); - void clear_screen(); +public: + void video_init(int bpp, int width, int height); + void run_loop(); + void pickup_vertex(); + void obj_draw(float *xyz, float *tex_xyz, float *normal_xyz); + void clean_pixels(); + void clear_screen(); - /* override function */ - void mainLoop(); - void run_finish(); + /* override function */ + void mainLoop(); + void run_finish(); }; #endif