syBR::map2syBR::TextureManager Class Reference

Texture manager. More...

#include <TextureManager.hpp>

List of all members.

Public Member Functions

 TextureManager (const syBR::Core::FileSystem &fileSystem)
 Constructor.
 ~TextureManager ()
 Destructor.
bool getTextureSize (const std::string &name, unsigned long &width, unsigned long &height)
 Get the size of a texture.

Private Attributes

const
syBR::Core::FileSystem
m_fileSystem
 File system.
std::map
< std::string,
std::pair< unsigned
long, unsigned long > > 
m_mapTextures
 List of faces of the brush.


Detailed Description

Texture manager.

Constructor & Destructor Documentation

syBR::map2syBR::TextureManager::TextureManager ( const syBR::Core::FileSystem fileSystem  ) 

Constructor.

syBR::map2syBR::TextureManager::~TextureManager (  ) 

Destructor.


Member Function Documentation

bool syBR::map2syBR::TextureManager::getTextureSize ( const std::string &  name,
unsigned long &  width,
unsigned long &  height 
)

Get the size of a texture.

Parameters:
name Name of the texture
width Will contain the width of the texture in case of success
height Will contain the height of the texture in case of success
Returns:
One of these:
  • true in case of success
  • false otherwise


Member Data Documentation

const syBR::Core::FileSystem& syBR::map2syBR::TextureManager::m_fileSystem [private]

File system.

std::map<std::string, std::pair<unsigned long, unsigned long> > syBR::map2syBR::TextureManager::m_mapTextures [private]

List of faces of the brush.


The documentation for this class was generated from the following files:

Copyright © 2008 by Sebastien Frippiat
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:34 2008