A
download texture.h
Language: C++
LOC: 15
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

/*=============================================================================
	texture.h: Basic OpenGL Framework texture support class

Revision history:
	* Created by Zack Smith
	* Inspired by code written by NeHe (http://nehe.gamedev.net/)
=============================================================================*/

#if !defined(TEXTURE_H__INCLUDED_)
#define TEXTURE_H__INCLUDED_

#include <gl\glaux.h>

/// Load a texture and use it for your model
class CTexture
{
public:
	/// constructor
	CTexture();
	/// destructor
	~CTexture();
	/// loads a bitmap and converts it to a texture
	int LoadGLTexture(char *filename);
	/// stores the number of the texture
	GLuint texture2d;

private:
	static AUX_RGBImageRec *LoadBMP(char *Filename);	// Loads A Bitmap Image

};

extern CTexture texture;

#endif // !defined(TIMER_H__INCLUDED_)

/*-----------------------------------------------------------------------------
	The End.
-----------------------------------------------------------------------------*/

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