![]() |
Blamite Game Engine - blam!
00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
|
#include "components/rendering/rendering.h"
#include <OGRE/OgreHlmsManager.h>
#include <OGRE/Hlms/Pbs/OgreHlmsPbs.h>
#include <OGRE/OgreTextureGpuManager.h>
#include <OGRE/OgreTextureFilters.h>
#include <OGRE/OgreStagingTexture.h>
#include <OGRE/OgreRoot.h>
#include <Strings/components/classes/map/map.h>
#include "components/content/tags/classes/bitmap.h"
#include "components/diagnostics/logger/logger.h"
Classes | |
struct | ogre_texture_info_data |
Data structure used to group together information about a texture. More... | |
Functions | |
Ogre::PixelFormatGpu | determine_gpu_pixel_format (bitmap::format_enum tag_format) |
Converts a bitmap pixel format enum value to the equivalent OGRE pixel format. More... | |
Ogre::TextureGpu * | build_ogre_texture_data (ogre_texture_info_data *texture_info) |
Loads a texture into OGRE from a texture information structure. More... | |
Variables | |
BlamMap< std::string, ogre_texture_info_data * > | ogre_texture_map = BlamMap<std::string, ogre_texture_info_data*>() |
Map containing information on all loaded textures. More... | |
Ogre::TextureGpu* build_ogre_texture_data | ( | ogre_texture_info_data * | texture_info | ) |
Loads a texture into OGRE from a texture information structure.
texture_info | - The texture information structure to build a texture from. |
nullptr
if the texture could not be loaded. Ogre::PixelFormatGpu determine_gpu_pixel_format | ( | bitmap::format_enum | tag_format | ) |
Converts a bitmap pixel format enum value to the equivalent OGRE pixel format.
tag_format | - The bitmap pixel format value to convert. |
Ogre::PixelFormatGpu::PFG_UNKNOWN
is returned. BlamMap<std::string, ogre_texture_info_data*> ogre_texture_map = BlamMap<std::string, ogre_texture_info_data*>() |
Map containing information on all loaded textures.
Each key contains the tag path of the texture's bitmap tag, and each value stores the texture information structure.