A
download TexturedCube.h
Language: C++
LOC: 20
Project Info
TableHockey3D(tablehockey)
Server: SourceForge
Type: cvs
...ey\CVSROOT\tablehockey\src\
   Application.cpp
   Application.h
   Camera.cpp
   Camera.h
   Cube.cpp
   Cube.h
   Data.cpp
   Data.h
   Disk.cpp
   Disk.h
   FloatingText.cpp
   FloatingText.h
   Floor.cpp
   Floor.h
   Input.cpp
   Input.h
   Light.cpp
   Light.h
   log.cpp
   log.h
   main.cpp
   mmgr.cpp
   mmgr.h
   Model.cpp
   Model.h
   nommgr.h
   Puck.cpp
   Puck.h
   Pyramid.cpp
   Pyramid.h
   scene.cpp
   scene.h
   SmartPtr.h
   Sound.cpp
   Sound.h
   TableHockey.dsp
   TableHockey.dsw
   TestScene.cpp
   TestScene.h
   text.cpp
   text.h
   TextHelp.cpp
   TextHelp.h
   texture.cpp
   texture.h
   TexturedCube.cpp
   TexturedCube.h
   timer.cpp
   timer.h
   View.cpp
   View.h

// TexturedCube.h: interface for the CTexturedCube class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TEXTUREDCUBE_H__EAB643E6_A023_11D4_A9EA_00105A2EAD2D__INCLUDED_)
#define AFX_TEXTUREDCUBE_H__EAB643E6_A023_11D4_A9EA_00105A2EAD2D__INCLUDED_

#include "texture.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Model.h"

/// A textured cube used for my CTestScene
class CTexturedCube : public CModel  
{
public:
	/// constructor, pass the filename of the texture to use
	CTexturedCube(char* szTextureName);
	/// destructor
	virtual ~CTexturedCube();

	/// always write your own Draw() function
	void Draw();
	/// set the size of the cube (width, height, depth), default is (1.0,1.0,1.0)
	void SetSize(GLfloat x, GLfloat y, GLfloat z)
	{ cx = x; cy = y; cz = z; }

private:
	// width, height and depth of cube
	GLfloat cx, cy, cz;
	// stores my texture
	CTexture *pTexture;
};

#endif // !defined(AFX_TEXTUREDCUBE_H__EAB643E6_A023_11D4_A9EA_00105A2EAD2D__INCLUDED_)

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us