10 #ifndef _TurtleBraines_TextureManager_h_ 
   11 #define _TurtleBraines_TextureManager_h_ 
   13 #include "../core/tb_noncopyable.h" 
   14 #include "../core/tb_string.h" 
   15 #include "../core/tb_types.h" 
  116             TextureHandle 
CreateTextureFromPixelData(
const unsigned char* pixelData, 
const PixelSpace& textureWidth, 
const PixelSpace& textureHeight);
 
  129             TextureHandle 
CreateTextureEmpty(
const PixelSpace& textureWidth, 
const PixelSpace& textureHeight);
 
  158             void BindTexture(
const TextureHandle& textureHandle);
 
  187             TextureHandle mBoundTexture;
 
size_t ComputeMemoryUsage(void) const 
PixelSpace GetTextureWidth(const TextureHandle &textureHandle) const 
TextureHandle CreateTextureReference(const TextureHandle &textureHandle)
Definition: tb_texture_manager.h:67
Give the GameScene and Entities something to display, Text, Sprites and AnimatedSprites help bring th...
TextureHandle CreateTextureFromFile(const tbCore::tbString &filename)
uint16_t uint16
Unsigned integer with a size of 16 bits. Supports values from 0 to 65535. 
Definition: tb_types.h:25
void BindTexture(const TextureHandle &textureHandle)
unsigned int TextureHandle
Definition: tb_texture_manager.h:41
TextureHandle CreateTextureEmpty(const PixelSpace &textureWidth, const PixelSpace &textureHeight)
Definition: tb_noncopyable.h:22
Contains all functions, classes and helpers related to game/application development written by Tim "B...
Definition: tb_application_dialog.h:21
TextureHandle CreateTextureFromFileData(const unsigned char *fileDataInMemory, const size_t &fileSizeInBytes)
void DestroyTexture(const TextureHandle &textureHandle)
TextureManager theTextureManager
const TextureHandle kInvalidTexture
uint8_t uint8
Unsigned integer with a size of 8 bits. Supports values from 0 to 255. 
Definition: tb_types.h:23
tbCore::uint16 PixelSpace
Definition: tb_texture_manager.h:33
PixelSpace GetTextureHeight(const TextureHandle &textureHandle) const 
const TextureHandle & kBlankTexture
float TexelSpace
Definition: tb_texture_manager.h:27
std::string tbString
Definition: tb_string.h:335
TextureHandle CreateTextureFromPixelData(const unsigned char *pixelData, const PixelSpace &textureWidth, const PixelSpace &textureHeight)