Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

KX_GlutCanvas.h

Go to the documentation of this file.
00001 #ifndef __KX_GLUTCANVAS
00002 #define __KX_GLUTCANVAS
00003 
00004 #include "RAS_ICanvas.h"
00005 #include "GL/glut.h"
00006 #include <windows.h>
00007 #include "GL/gl.h"
00008 
00009 //glutReshapeFunc
00010 //glutDisplayFunc
00011 
00012 
00013 class KX_GlutCanvas : public RAS_ICanvas
00014 {
00015 public:
00016         KX_GlutCanvas(){
00017         
00018         };
00019 
00020         virtual ~KX_GlutCanvas() {
00021 
00022         };
00023         virtual void Init() {
00024 
00025         }       
00026         virtual void SwapBuffers() {
00027                 glutSwapBuffers();
00028         };
00029         virtual void Resize(int width,int height) {
00030 
00031         };
00032         virtual void BeginFrame() {
00033         };
00034         virtual void EndFrame() {
00035         };
00036         virtual void ClearColor(float r,float g,float b,float a) {
00037                 glClearColor(r,g,b,a);
00038         };
00039         virtual void ClearBuffer(int type) {
00040                 glClear(type);
00041         };
00042 
00043         
00044 };
00045 #endif // __KX_GLUTCANVAS

Generated at Thu Feb 1 13:03:05 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000