Page principale   Liste des namespaces   Hiérarchie des classes   Liste par ordre alphabétique   Liste des composants   Liste des fichiers   Membres des namespaces   Composants   Déclarations  

GlView.h

Aller à la documentation de ce fichier.
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 // CGlView
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;                  // GDI Device Context 
00024     HGLRC       m_hRC;                  // Rendering Context
00025     CWnd        *m_pWnd;                // Pointer to main window                
00026     HWND        m_hWnd;                 // window handler 
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];                     // Storage For One Texture ( NEW )
00046         bool                            m_ShowGrid   ;
00047 protected:
00048         DECLARE_MESSAGE_MAP()
00049         
00050 public:
00051 //      afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00052 //      afx_msg void OnDestroy();
00053 //      afx_msg void OnSize(UINT nType, int cx, int cy);
00054 //      afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00055 };
00056 
00057 

Généré le Tue Dec 10 18:18:13 2002 pour ExNihilo par doxygen1.3-rc1