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"
111 TextureHandle
CreateTextureFromPixelData(
const unsigned char* pixelData,
const PixelSpace& textureWidth,
const PixelSpace& textureHeight);
123 TextureHandle
CreateTextureEmpty(
const PixelSpace& textureWidth,
const PixelSpace& textureHeight);
152 void BindTexture(
const TextureHandle& textureHandle);
193 friend class tbImplementation::TextureManagerCreator;
194 TextureHandle mBoundTexture;
PixelSpace GetTextureWidth(const TextureHandle &textureHandle) const
TextureHandle CreateTextureReference(const TextureHandle &textureHandle)
Definition: tb_texture_manager.h:69
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:26
void BindTexture(const TextureHandle &textureHandle)
TextureHandle CreateTextureEmpty(const PixelSpace &textureWidth, const PixelSpace &textureHeight)
Definition: tb_noncopyable.h:22
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
TextureManager & theTextureManager
uint64_t uint64
Unsigned integer with a size of 64 bits, Supports values from 0 to (2^64 - 1).
Definition: tb_types.h:30
TextureHandle CreateTextureFromFileData(const unsigned char *fileDataInMemory, const size_t &fileSizeInBytes)
void DestroyTexture(const TextureHandle &textureHandle)
tbCore::uint32 TextureHandle
Definition: tb_texture_manager.h:43
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:35
PixelSpace GetTextureHeight(const TextureHandle &textureHandle) const
uint32_t uint32
Unsigned integer with a size of 32 bits. Supports values from 0 to 4294967295, (2^32 - 1)...
Definition: tb_types.h:28
const TextureHandle & kBlankTexture
float TexelSpace
Definition: tb_texture_manager.h:29
std::string tbString
Definition: tb_string.h:335
TextureHandle CreateTextureFromPixelData(const unsigned char *pixelData, const PixelSpace &textureWidth, const PixelSpace &textureHeight)
Definition: tb_application_dialog.h:19
tbCore::uint64 ComputeMemoryUsage(void) const