![]() |
Blamite Game Engine - blam!
00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
|
Namespace containing functions for interacting with textures. More...
Functions | |
BLAM void | BuildTextureFromTag (bitmap *bitmap_tag, std::string tag_path) |
Loads a texture into OGRE from a bitmap tag. More... | |
BLAM Ogre::TextureGpu * | GetTextureFromTag (std::string tag_path) |
Retrieves an OGRE texture from a tag path. More... | |
BLAM void | ReloadPendingBitmaps () |
Reloads all bitmaps that are currently pending a reload. More... | |
BLAM Ogre::TextureGpu * | LoadTexture2D (std::string id, void *pixel_data, int width, int height, Ogre::PixelFormatGpu format, int bytes_per_line) |
Loads a 2D texture from data in memory. More... | |
Namespace containing functions for interacting with textures.
void Blam::Rendering::Textures::BuildTextureFromTag | ( | bitmap * | bitmap_tag, |
std::string | tag_path | ||
) |
Loads a texture into OGRE from a bitmap tag.
bitmap_tag | - The bitmap tag to load texture data from. |
tag_path | - The tag path of the provided bitmap tag. |
Ogre::TextureGpu * Blam::Rendering::Textures::GetTextureFromTag | ( | std::string | tag_path | ) |
Retrieves an OGRE texture from a tag path.
tag_path | - The tag path of the desired texture. |
nullptr
if no matching texture was found. Ogre::TextureGpu * Blam::Rendering::Textures::LoadTexture2D | ( | std::string | id, |
void * | pixel_data, | ||
int | width, | ||
int | height, | ||
Ogre::PixelFormatGpu | format, | ||
int | bytes_per_line | ||
) |
Loads a 2D texture from data in memory.
id | - The ID to assign to the texture once created. |
pixel_data | - Memory address of the texture's pixel data. |
width | - The width of the texture, in pixels. |
height | - The height of the texture, in pixels. |
format | - The format of the texture. |
bytes_per_line | - The total number of bytes within each row of pixels within the texture. |
nullptr
if the texture could not be loaded. void Blam::Rendering::Textures::ReloadPendingBitmaps | ( | ) |
Reloads all bitmaps that are currently pending a reload.