moss-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Moss-devel] CVS: moss/3Dsia/client/3Dcf/include World.h,1.3,1.4


From: Manfred Morgner <address@hidden>
Subject: [Moss-devel] CVS: moss/3Dsia/client/3Dcf/include World.h,1.3,1.4
Date: Sun, 10 Nov 2002 09:46:46 -0500

Update of /cvsroot/moss/moss/3Dsia/client/3Dcf/include
In directory subversions:/tmp/cvs-serv26706/include

Modified Files:
        World.h 
Log Message:
Tried to make the (C)World a better place to code.


Index: World.h
===================================================================
RCS file: /cvsroot/moss/moss/3Dsia/client/3Dcf/include/World.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** World.h     3 Nov 2002 13:24:17 -0000       1.3
--- World.h     10 Nov 2002 14:46:43 -0000      1.4
***************
*** 49,66 ****
    {
    protected:
!     int m_nWindow;
!     double m_dXrot;
!     double m_dYrot;
!     double m_dZrot;
    
    public:
!     CWorld(int nParams, char* aszParams[]);
      virtual ~CWorld();
!     void InitGL(int nWidth, int nHeight); // Function that initializes GL
!     void ReSizeGLScene(int nWidth, int nHeight); // Function that resizes our 
scene
!     void DrawGLScene(); // Function that draws our scene
!     void KeyPressed(unsigned char key, int x, int y); // Function called 
every time a key's pressed
!   };
  
  #endif // __WORLD_H
- 
--- 49,89 ----
    {
    protected:
!     /// GLUT Window handle
!     int      m_nWindow;
!     
!     int      m_nWidth;
!     int      m_nHeight;
!     bool     m_bFullScreen;
!     
!     double   m_dXrot;
!     double   m_dYrot;
!     double   m_dZrot;
!     
!     /// the position of the base light
!     GLfloat m_afLightPosition[4];
!     GLfloat m_afWhiteLight[4];
!     GLfloat m_afMaterialAmbient[4];
!     GLfloat m_afMaterialSpecular[4];
    
    public:
!              CWorld(int nParams, char* aszParams[]);
      virtual ~CWorld();
!     
!     /// Function that initializes GL
!     void InitGL(int nWidth, int nHeight, bool bFullScreen = false);
!     
!     /// Function that resizes our scene
!     void ReSizeGLScene(int nWidth, int nHeight);
!     
!     /// Function that draws our scene
!     void DrawGLScene();
!     
!     /// Function called every time a key's pressed
!     void KeyPressed(unsigned char key, int x, int y);
!     
!     /// Funciton called if any mouse event appears
!     void MouseFunction(int nButton, int nState, int x, int y);
!     
!   }; // class CWorld
  
  #endif // __WORLD_H





reply via email to

[Prev in Thread] Current Thread [Next in Thread]