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