00001 #pragma once
00002
00003 #include <gl/gl.h>
00004 #include <gl/glu.h>
00005 #include <gl/glaux.h>
00006 #include "ExNihiloNameSpace.h"
00007
00008
00009 #define MAX_TEXTURE 3
00010
00011 class CGlView : public CWnd
00012 {
00013 DECLARE_DYNAMIC(CGlView)
00014
00015 public:
00016 CGlView();
00017 CGlView(CWnd *pWnd);
00018 virtual ~CGlView();
00019
00020 HDC m_hDC;
00021 HGLRC m_hRC;
00022 CWnd *m_pWnd;
00023 HWND m_hWnd;
00024
00025 BOOL SetPixelformat(HDC hdc);
00026 GLvoid ReSizeGLScene(GLsizei width, GLsizei height);
00027
00028 int InitGL(GLvoid);
00029 int DrawGLScene(GLvoid);
00030 void IncreaseZoom(void);
00031 void DecreaseZoom(void);
00032 bool LoadTexture (CString FileName,int Number);
00033 bool LoadImage (CString FileName);
00034 bool LoadMask (CString FileName);
00035 float m_fZoom;
00036 float m_fAngleX;
00037 float m_fAngleY;
00038
00039 int m_TextureCounter;
00040 GLuint m_Texture[MAX_TEXTURE];
00041
00042 GLfloat m_SizeX;
00043 GLfloat m_SizeY;
00044 CListBox *m_PControlFileContent;
00045 float topx,topy,bottomx,bottomy;
00046
00047 protected:
00048 DECLARE_MESSAGE_MAP()
00049
00050 public:
00051
00052
00053
00054
00055 };
00056
00057