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 "ExNihiloNameSpace.h"
    00007 // CGlView
    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;                  // GDI Device Context
    00021     HGLRC       m_hRC;                  // Rendering Context
    00022     CWnd        *m_pWnd;                // Pointer to main window
    00023     HWND        m_hWnd;                 // window handler
    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 //      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