Texture Class Reference

#include <Texture.h>

List of all members.

Public Member Functions

 Texture (std::string name)
 ~Texture ()
GLuint GetTexture ()
void BindTexture ()

Private Attributes

TextureResourcem_resource


Detailed Description

Definition at line 12 of file Texture.h.


Constructor & Destructor Documentation

Texture::Texture ( std::string  name  ) 

Definition at line 11 of file Texture.cpp.

References IResource::ConstructKey(), m_resource, ResourceManager::s_resourceManager, and TextureResource::s_type.

Texture::~Texture (  ) 

Definition at line 15 of file Texture.cpp.

References m_resource, ResourceManager::Release(), and ResourceManager::s_resourceManager.


Member Function Documentation

void Texture::BindTexture (  ) 

Definition at line 23 of file Texture.cpp.

References TextureResource::GetTexture(), and m_resource.

Referenced by Terrain::Draw(), Ocean::Draw(), SkyDome::DrawDome(), Map::DrawGui(), Battle::GenerateWaterList(), Map::Map(), Model::Model(), Ocean::Ocean(), Model::startList(), and Terrain::Terrain().

00023                           {
00024   glBindTexture(GL_TEXTURE_2D, m_resource->GetTexture());
00025 }

GLuint Texture::GetTexture (  ) 

Definition at line 19 of file Texture.cpp.

References TextureResource::GetTexture(), and m_resource.

Referenced by StateNewGame::Display(), StateCity::Display(), StateDone::Display(), StateBattle::Display(), Map::Display(), and MainMenu::Display().

00019                            {
00020   return m_resource->GetTexture();
00021 }


Member Data Documentation

TextureResource* Texture::m_resource [private]

Definition at line 21 of file Texture.h.

Referenced by BindTexture(), GetTexture(), Texture(), and ~Texture().


The documentation for this class was generated from the following files:
Generated on Mon Jan 8 22:34:15 2007 for CrownandCutlass by  doxygen 1.4.7