![]() |
Blamite Game Engine - blam!
00453.06.08.26.0624.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... | |
| BLAM Ogre::TextureGpu * | CreateAtlasFromTextures (std::string id, std::vector< bitmap * > bitmaps, std::vector< BlamVector2 > *out_points) |
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. |
Here is the caller graph for this function:| BLAM Ogre::TextureGpu* Blam::Rendering::Textures::CreateAtlasFromTextures | ( | std::string | id, |
| std::vector< bitmap * > | bitmaps, | ||
| std::vector< BlamVector2 > * | out_points | ||
| ) |
| 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.
Here is the call graph for this function:
Here is the caller graph for this function:| 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.
Here is the call graph for this function:
Here is the caller graph for this function:| void Blam::Rendering::Textures::ReloadPendingBitmaps | ( | ) |
Reloads all bitmaps that are currently pending a reload.
Here is the call graph for this function:
Here is the caller graph for this function: