// Cubes.h: interface for the CCubes class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_CUBES_H__557BF92C_A952_11D4_A410_00D0B757055E__INCLUDED_) #define AFX_CUBES_H__557BF92C_A952_11D4_A410_00D0B757055E__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "Geometry.h" class CCubes : public CGeometry { private: GLfloat cubeVertices[8][3]; GLfloat colors[12][3]; public: virtual void renderSolid(); void setColors(GLfloat cols[][3]); void setVertices(GLfloat Vertices[8][3]); virtual void render(); void drawCube(void); void drawCube(GLfloat color[3]); void drawCubeInWireFrame(void); CCubes(); virtual ~CCubes(); private: void drawCubePlane(GLfloat Vertices[][3], int a, int b, int c, int d); void drawCubePlane(GLfloat Vertices[][3],int a, int b, int c,int d, int color); void drawLine(GLfloat Vertices[][3],int a,int b); }; #endif // !defined(AFX_CUBES_H__557BF92C_A952_11D4_A410_00D0B757055E__INCLUDED_)