Elaztek Developer Hub
Blamite Game Engine - blam!  00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
animation.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 
5 #ifndef BLAM
6 #define BLAM
7 #endif
8 
12 namespace Blam::Animation
13 {
14 
15 }
ogre_texture_info_data::texture
Ogre::TextureGpu * texture
The OGRE texture data.
Definition: textures.cpp:21
BlamUserDataFolder::Screenshots
@ Screenshots
Directory used to store engine screenshots. Defaults to {DataRoot}/screenshots/.
Blam::Settings::Config::GetEngineConfiguration
BLAM BlamConfigurationFile * GetEngineConfiguration()
Retrieves the main engine configuration file.
Definition: config.cpp:60
Blam::Rendering::Materials::CreateDefaultUnlitDatablockForPrimitives
BLAM Ogre::HlmsUnlitDatablock * CreateDefaultUnlitDatablockForPrimitives(std::string id)
Creates a default Unlit datablock for use with 2D and 3D primitives.
Definition: materials.cpp:997
ogre_model_info_data::tag_path
std::string tag_path
Definition: models.cpp:18
parse_ogre_filter_mode
Ogre::FilterOptions parse_ogre_filter_mode(material_filter_modes filter_mode)
Converts a material filtering mode enum value to the equivalent OGRE filtering mode value.
Definition: materials.cpp:111
bitfield16::flag0
bool flag0
Definition: tags.h:361
material_filter_modes::inherit_from_bitmap
@ inherit_from_bitmap
Demo::GraphicsSystem::getRenderWindow
Ogre::Window * getRenderWindow(void) const
Definition: GraphicsSystem.h:146
ogre_texture_map
BlamMap< std::string, ogre_texture_info_data * > ogre_texture_map
Map containing information on all loaded textures.
Definition: textures.cpp:30
Blam::Rendering::Materials::LoadUnlitDatablockFromMaterialTag
BLAM bool LoadUnlitDatablockFromMaterialTag(Ogre::HlmsUnlitDatablock *datablock, material *material_tag)
Loads an Unlit datablock from a material tag.
Definition: materials.cpp:234
ogre_material_instance_data::tag_instance
material * tag_instance
Pointer to the tag that uses this material instance.
Definition: rendering.h:45
Blam::Logger::LogEvent
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
Blam::Rendering::Materials::CreateDefaultUnlitDatablock
BLAM Ogre::HlmsUnlitDatablock * CreateDefaultUnlitDatablock(std::string id)
Creates a default Unlit datablock.
Definition: materials.cpp:986
Blam::Rendering::Materials::RebuildDatablocks
BLAM void RebuildDatablocks()
Rebuilds ALL datablocks (including instances) from their original tags.
Definition: materials.cpp:673
render_model
Definition: render_model.h:25
get_ogre_texture_type_from_material_type
Ogre::PbsTextureTypes get_ogre_texture_type_from_material_type(material::pbr_material_entry::textures_entry::texture_type_enum texture_type)
Converts a material tag texture type enum value to the equivalent OGRE texture type.
Definition: materials.cpp:36
ogre_texture_info_data::bitmap_tag
bitmap * bitmap_tag
The bitmap tag that the texture originates from.
Definition: textures.cpp:19
material_wrap_modes
material_wrap_modes
Definition: material.h:30
logger.h
ogre_material_info_data::hlms_type
Ogre::HlmsTypes hlms_type
The HLMS type of this material.
Definition: rendering.h:63
bitmap.h
tag_reference::GetTagPath
std::string GetTagPath()
Retrieves the path of the tag that this tagref refers to.
Definition: tag_reference.cpp:52
data_reference::GetValueAsString
std::string GetValueAsString()
Retrieves the value of the dataref as a string.
Definition: data_reference.cpp:3
version_data.h
material_comparison_function::less_than_or_equal
@ less_than_or_equal
ogre_material_info_data
Class used to store OGRE material information.
Definition: rendering.h:56
Blam::Animation
Namespace for animation data.
Definition: animation.h:12
Blam::Rendering::Materials::CreateDefaultPbsDatablockForPrimitives
BLAM Ogre::HlmsPbsDatablock * CreateDefaultPbsDatablockForPrimitives(std::string id)
Creates a default PBS datablock for use with 2D and 3D primitives.
Definition: materials.cpp:1038
set_pbs_datablock_texture
void set_pbs_datablock_texture(Ogre::HlmsPbsDatablock *datablock, Ogre::PbsTextureTypes texture_type, tag_reference tagref)
Assigns a bitmap tag's texture to a PBS datablock.
Definition: materials.cpp:217
render_model_map
BlamMap< std::string, ogre_model_info_data * > render_model_map
Definition: models.cpp:23
bitfield8::flag2
bool flag2
Definition: tags.h:348
USER_DATA_PATH
#define USER_DATA_PATH(path)
Macro to quickly access a user data folder.
Definition: config.h:41
material_wrap_modes::wrap
@ wrap
render_model.h
ogre_texture_info_data::tag_path
std::string tag_path
The tag path of the bitmap tag that the texture originates from.
Definition: textures.cpp:20
rendering.h
light::near_shadow_distance
real near_shadow_distance
The near shadow distance of the light. If the camera is this close to the light, shadows will no long...
Definition: light.h:55
parse_texture_addressing_mode
Ogre::TextureAddressingMode parse_texture_addressing_mode(material_wrap_modes wrap_mode)
Converts a material texture wrapping mode enum value to the equivalent OGRE texture addressing mode.
Definition: materials.cpp:135
Blam::Rendering::Materials::CreateDefaultPbsDatablock
BLAM Ogre::HlmsPbsDatablock * CreateDefaultPbsDatablock(std::string id)
Creates a default PBS datablock.
Definition: materials.cpp:1027
Blam::Rendering::Materials::LoadPBSDatablockFromMaterialTag
BLAM bool LoadPBSDatablockFromMaterialTag(Ogre::HlmsPbsDatablock *datablock, material *material_tag)
Loads a PBS (Physically-Based Shading) datablock from a material tag.
Definition: materials.cpp:376
bitmap_filtering_mode::point
@ point
bitmap::bytes_per_line
int16_t bytes_per_line
The amount of bytes needed for a single line/row of pixels for this bitmap.
Definition: bitmap.h:80
ogre_model_info_data::model_tag
render_model * model_tag
Definition: models.cpp:17
Demo::GraphicsSystem::getSceneManager
Ogre::SceneManager * getSceneManager(void) const
Definition: GraphicsSystem.h:147
material_filter_modes::anisotropic
@ anisotropic
uint64_t
unsigned long long uint64_t
Definition: stdint.h:18
Blam::Rendering::Textures::LoadTexture2D
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.
Definition: textures.cpp:140
ogre_texture_info_data
Data structure used to group together information about a texture.
Definition: textures.cpp:17
bitmap_filtering_mode::anisotropic
@ anisotropic
light.h
tick.h
ogre_material_info_data::CreateNewInstance
ogre_material_instance_data * CreateNewInstance(BlamTagData *referencing_tag)
Creates a new instance of this material.
Definition: ogre_material_info_data.cpp:5
ENGINE_VERSION
#define ENGINE_VERSION
Definition: version_data.h:32
Blam::Rendering::Materials::BuildDatablockFromTag
BLAM bool BuildDatablockFromTag(material *material_tag, std::string tag_path)
Creates an OGRE material datablock from a material tag.
Definition: materials.cpp:760
Blam::Rendering::Textures::GetTextureFromTag
BLAM Ogre::TextureGpu * GetTextureFromTag(std::string tag_path)
Retrieves an OGRE texture from a tag path.
Definition: textures.cpp:93
bitmap::filtering_mode_mag
bitmap_filtering_mode filtering_mode_mag
Definition: bitmap.h:47
bitmap::size
vector2 size
The resolution of the bitmap.
Definition: bitmap.h:79
material_comparison_function::less_than
@ less_than
material_filter_modes::linear
@ linear
ogre_material_info_data::instances
BlamMap< std::string, ogre_material_instance_data * > instances
A map containing all instances of this material.
Definition: rendering.h:71
Blam::Rendering::Textures::BuildTextureFromTag
BLAM void BuildTextureFromTag(bitmap *bitmap_tag, std::string tag_path)
Loads a texture into OGRE from a bitmap tag.
Definition: textures.cpp:81
light
Definition: light.h:25
Blam::Tick::GetTotalRuntimeTicks
BLAM uint64_t GetTotalRuntimeTicks()
Gets the total amount of ticks that have elapsed during program runtime.
Definition: tick.cpp:233
light::flags
bitfield16 flags
Definition: light.h:29
material.h
light::diffuse_color
color diffuse_color
Definition: light.h:48
Blam::Rendering::WriteScreenshot
BLAM void WriteScreenshot()
Saves a screenshot of the current frame to a file.
Definition: utils.cpp:25
material_comparison_function::always_pass
@ always_pass
material_comparison_function::always_fail
@ always_fail
light::power_scale
real power_scale
The relative power scale of the light.
Definition: light.h:45
bitmap::filtering_mode_mip
bitmap_filtering_mode filtering_mode_mip
Definition: bitmap.h:48
tag_reference
Structure representing a tag reference.
Definition: tags.h:277
material_wrap_modes::border
@ border
ogre_model_info_data::load_pending
bool load_pending
Definition: models.cpp:20
build_ogre_texture_data
Ogre::TextureGpu * build_ogre_texture_data(ogre_texture_info_data *texture_info)
Loads a texture into OGRE from a texture information structure.
Definition: textures.cpp:57
material
Definition: material.h:52
parse_material_comparison_function
Ogre::CompareFunction parse_material_comparison_function(material_comparison_function comparison_function)
Converts a material comparison function enum value to the equivalent OGRE comparison function value.
Definition: materials.cpp:159
material_filter_modes
material_filter_modes
Definition: material.h:22
tag_reference::class_name
char class_name[4]
The tag class identifier. Will be the short class name.
Definition: tags.h:281
uint32_t
unsigned int uint32_t
Definition: stdint.h:17
Blam::Content::Tags::GetTagData
BLAM BlamTagData * GetTagData(std::string tag_path)
Retrieves information for a given tag.
Definition: tags.cpp:80
Blam::Content::Tags::GetBitmapTag
BLAM bitmap * GetBitmapTag(std::string tag_path)
Definition: bitmap.cpp:16
ogre_material_info_data::needs_reload
bool needs_reload
Whether or not this material needs to be reloaded.
Definition: rendering.h:61
ogre_material_instance_data::instance_datablock
Ogre::HlmsDatablock * instance_datablock
The datablock used for this material instance.
Definition: rendering.h:44
ogre_material_instance_data
Data structure used to store OGRE material instance data.
Definition: rendering.h:40
bitmap_filtering_mode::none
@ none
Blam::Rendering::GetGraphicsSystem
BLAM Demo::GraphicsSystem * GetGraphicsSystem()
Retrieves the graphics system used by OGRE.
Definition: ogre.cpp:492
bitmap_filtering_mode::linear
@ linear
bitfield8::flag1
bool flag1
Definition: tags.h:347
ogre_model_info_data
Definition: models.cpp:15
data_reference::data_address
void * data_address
The address of the referenced data.
Definition: tags.h:327
ogre_model_info_data::mesh
Ogre::MeshPtr mesh
Definition: models.cpp:19
Blam::Rendering::Models::LoadPendingModels
BLAM void LoadPendingModels()
Definition: models.cpp:207
material_wrap_modes::mirror
@ mirror
bitmap::pixel_data
data_reference pixel_data
The raw pixel data for the bitmap.
Definition: bitmap.h:78
bitmap::flags
bitfield8 flags
Definition: bitmap.h:49
Blam::Rendering::Materials::ReloadPendingMaterials
BLAM void ReloadPendingMaterials()
Reloads all datablocks which are flagged as requiring a reload.
Definition: materials.cpp:856
Blam::Rendering::Textures::ReloadPendingBitmaps
BLAM void ReloadPendingBitmaps()
Reloads all bitmaps that are currently pending a reload.
Definition: textures.cpp:112
parse_ogre_bitmap_filter_mode
Ogre::FilterOptions parse_ogre_bitmap_filter_mode(bitmap_filtering_mode filter_mode)
Converts a bitmap filtering mode enum value to the equivalent OGRE filtering mode value.
Definition: materials.cpp:87
material_comparison_function::greater_than_or_equal
@ greater_than_or_equal
material::id
data_reference id
Definition: material.h:56
Demo::GraphicsSystem
Definition: GraphicsSystem.h:27
___known_datablocks
std::vector< Ogre::HlmsDatablock * > ___known_datablocks
Definition: materials.cpp:27
determine_gpu_pixel_format
Ogre::PixelFormatGpu determine_gpu_pixel_format(bitmap::format_enum tag_format)
Converts a bitmap pixel format enum value to the equivalent OGRE pixel format.
Definition: textures.cpp:40
bitfield16::flag1
bool flag1
Definition: tags.h:362
material_comparison_function::disabled
@ disabled
material_comparison_function::not_equal
@ not_equal
load_mesh_from_tag
Ogre::MeshPtr load_mesh_from_tag(render_model *model, std::string tag_path)
Definition: models.cpp:25
ogre_texture_info_data::load_pending
bool load_pending
Whether or not the texture is currently pending being loaded.
Definition: textures.cpp:22
data_reference::data_size
int data_size
The size of the referenced data.
Definition: tags.h:328
Blam::Rendering::Models::GetModelFromTagPath
BLAM Ogre::MeshPtr GetModelFromTagPath(std::string tag_path)
Definition: models.cpp:221
Blam::Rendering::Lights::CreateLightFromTag
BLAM Ogre::Light * CreateLightFromTag(light *light)
Definition: lights.cpp:9
Blam::Rendering::Materials::CreateDatablockInstance
BLAM ogre_material_instance_data * CreateDatablockInstance(std::string tag_path, std::string referencing_tag_path)
Creates a new datablock instance from a material tag path, and a referencing tag path.
Definition: materials.cpp:948
bitmap_filtering_mode
bitmap_filtering_mode
Definition: bitmap.h:22
BLAM_OGRE_RESOURCE_GROUP
#define BLAM_OGRE_RESOURCE_GROUP
The name of the OGRE resource group used for engine resources.
Definition: rendering.h:26
bitmap
Definition: bitmap.h:32
bitfield8::flag0
bool flag0
Definition: tags.h:346
light::specular_color
color specular_color
Definition: light.h:49
config.h
tags.h
BlamTagData
Class used to contain and access tag data.
Definition: tags.h:124
ogre_material_info_data::persistent_reload
bool persistent_reload
Whether or not to continuously update this material (ie, live editing).
Definition: rendering.h:62
ogre_material_info_data::tag_path
std::string tag_path
The tag path that this material was loaded from.
Definition: rendering.h:59
Blam::Content::Tags::GetMaterialTag
BLAM material * GetMaterialTag(std::string tag_path)
Definition: material.cpp:16
set_unlit_datablock_texture
void set_unlit_datablock_texture(Ogre::HlmsUnlitDatablock *datablock, Ogre::UnlitTextureTypes texture_type, tag_reference tagref)
Assigns a bitmap tag's texture to an Unlit datablock.
Definition: materials.cpp:193
Blam::Rendering::Materials::GetDatablockFromTag
BLAM Ogre::HlmsDatablock * GetDatablockFromTag(std::string tag_path)
Retrieves an OGRE datablock from a material tag path.
Definition: materials.cpp:915
material_comparison_function::equal
@ equal
ogre_material_map
BlamMap< std::string, ogre_material_info_data * > ogre_material_map
The map containing all available OGRE materials.
Definition: materials.cpp:25
material_filter_modes::none
@ none
Blam::Rendering::Materials::GetDatablockInstanceFromTag
BLAM ogre_material_instance_data * GetDatablockInstanceFromTag(std::string tag_path, std::string referencing_tag_path)
Retrieves a datablock instance from a material tag path, and a referencing tag path.
Definition: materials.cpp:927
Blam::Rendering::Models::LoadModel
BLAM void LoadModel(render_model *model, std::string tag_path)
Definition: models.cpp:184
Demo::GraphicsSystem::getRoot
Ogre::Root * getRoot(void) const
Definition: GraphicsSystem.h:145
bitmap::filtering_mode_min
bitmap_filtering_mode filtering_mode_min
Definition: bitmap.h:46
material_comparison_function::greater_than
@ greater_than
uint16_t
unsigned short uint16_t
Definition: stdint.h:16
material_filter_modes::point
@ point
material_comparison_function
material_comparison_function
Definition: material.h:37
ogre_material_info_data::datablock
Ogre::HlmsDatablock * datablock
The datablock used for this material.
Definition: rendering.h:60
light::maximum_distance
real maximum_distance
The maximum distance that this light will be visible. If the camera is further than this distance awa...
Definition: light.h:52
Blam::Rendering::Models::UnloadModels
BLAM void UnloadModels()
Definition: models.cpp:244
light::far_shadow_distance
real far_shadow_distance
The far shadow distance of the light. If the camera is this far from the light, shadows will no longe...
Definition: light.h:56
model
Definition: model.h:25
material_wrap_modes::clamp
@ clamp