⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 table.h

📁 一本关于OPenGL的很好的电子书
💻 H
字号:
#ifndef __TABLE_H
#define __TABLE_H

#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include <gl/glaux.h>
#include <math.h>
#include "vector.h"
#include "object.h"
#include "texture.h"
#include "plane.h"

/*

  CTable (derived from CObject)

  Description: The air hockey table. Holds the table corner coordinates,
               table wall planes, and table texture.
*/

class CTable : public CObject
{
private:
     CTexture iceTex;              // table texture

public:
     float tableCorners[4][3];     // table corner coordinates
     CPlane tableWalls[4];         // table wall planes

     CTable() 
     {
          position = CVector(0.0, 0.0, 0.0);
     }

     ~CTable()
     {}

     void Load();
     void Unload();

     void Draw();
     void Animate(scalar_t deltaTime);
     void SetupTexture();
};

#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -