00001
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00040 #include "Generals.h"
00041
00042 #ifndef _CTOXIRENDERER_CLASS_
00043 #define _CTOXIRENDERER_CLASS_
00044
00045 class TOXITEADLL_API CToxiRenderer {
00046 public:
00047
00049 int rendererType;
00050
00052 CToxiRenderer();
00053
00055 ~CToxiRenderer();
00056
00058 HWND hWnd;
00059 HDC hDC;
00060 HGLRC hRC;
00061 static HINSTANCE hInstance;
00062
00064 int windowWidth,
00065 windowHeight,
00066 windowBits;
00067
00068 int viewportClose,
00069 viewportFar;
00070
00071 double viewportAngle;
00072
00073 bool _fullscreen;
00074
00076 virtual void setupRenderer(int _width,int _height,int _bits) = 0;
00077
00079 virtual bool createContext() = 0;
00080
00082 virtual bool killContext() = 0;
00083
00085 virtual void resizeContext() = 0;
00086
00088 virtual int getRendererType() = 0;
00089
00091 virtual void drawScene() = 0;
00092
00093
00094 virtual void initScene() =0;
00095
00097 virtual void swapBuffers() = 0;
00098
00099 };
00100
00101 #endif