Elaztek Developer Hub
Blamite Game Engine - blam!  00406.12.10.23.1457.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:58
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:966
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:107
material_filter_modes::inherit_from_bitmap
@ inherit_from_bitmap
Demo::GraphicsSystem::getRenderWindow
Ogre::Window * getRenderWindow(void) const
Definition: GraphicsSystem.h:145
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:230
ogre_material_instance_data::tag_instance
material * tag_instance
Pointer to the tag that uses this material instance.
Definition: rendering.h:37
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:955
Blam::Rendering::Materials::RebuildDatablocks
BLAM void RebuildDatablocks()
Rebuilds ALL datablocks (including instances) from their original tags.
Definition: materials.cpp:669
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:32
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:55
bitmap.h
tag_reference::GetTagPath
std::string GetTagPath()
Retrieves the path of the tag that this tagref refers to.
Definition: tag_reference.cpp:45
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:48
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:996
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:213
bitfield8::flag2
bool flag2
Definition: tags.h:336
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
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
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:131
Blam::Rendering::Materials::CreateDefaultPbsDatablock
BLAM Ogre::HlmsPbsDatablock * CreateDefaultPbsDatablock(std::string id)
Creates a default PBS datablock.
Definition: materials.cpp:985
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:372
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:79
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
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:31
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:756
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:78
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:63
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
Blam::Tick::GetTotalRuntimeTicks
BLAM uint64_t GetTotalRuntimeTicks()
Gets the total amount of ticks that have elapsed during program runtime.
Definition: tick.cpp:233
material.h
format
ARPHIC PUBLIC LICENSE Ltd Yung Chi Taiwan All rights reserved except as specified below Everyone is permitted to copy and distribute verbatim copies of this license but changing it is forbidden Preamble The licenses for most software are designed to take away your freedom to share and change it By the ARPHIC PUBLIC LICENSE specifically permits and encourages you to use this provided that you give the recipients all the rights that we gave you and make sure they can get the modifications of this software Legal Terms Font means the TrueType fonts AR PL Mingti2L AR PL KaitiM AR PL KaitiM and the derivatives of those fonts created through any modification including modifying reordering converting format
Definition: ARPHICPL.TXT:16
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
bitmap::filtering_mode_mip
bitmap_filtering_mode filtering_mode_mip
Definition: bitmap.h:48
tag_reference
Structure representing a tag reference.
Definition: tags.h:272
material_wrap_modes::border
@ border
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:155
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:276
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:53
ogre_material_instance_data::instance_datablock
Ogre::HlmsDatablock * instance_datablock
The datablock used for this material instance.
Definition: rendering.h:36
material::id
ascii id
Definition: material.h:56
ogre_material_instance_data
Data structure used to store OGRE material instance data.
Definition: rendering.h:32
bitmap_filtering_mode::none
@ none
Blam::Rendering::GetGraphicsSystem
BLAM Demo::GraphicsSystem * GetGraphicsSystem()
Retrieves the graphics system used by OGRE.
Definition: ogre.cpp:336
bitmap_filtering_mode::linear
@ linear
bitfield8::flag1
bool flag1
Definition: tags.h:335
data_reference::data_address
void * data_address
The address of the referenced data.
Definition: tags.h:322
material_wrap_modes::mirror
@ mirror
bitmap::pixel_data
data_reference pixel_data
The raw pixel data for the bitmap.
Definition: bitmap.h:77
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:826
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:83
material_comparison_function::greater_than_or_equal
@ greater_than_or_equal
Demo::GraphicsSystem
Definition: GraphicsSystem.h:26
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
material_comparison_function::disabled
@ disabled
material_comparison_function::not_equal
@ not_equal
ogre_texture_info_data::load_pending
bool load_pending
Whether or not the texture is currently pending being loaded.
Definition: textures.cpp:22
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:917
bitmap_filtering_mode
bitmap_filtering_mode
Definition: bitmap.h:22
bitmap
Definition: bitmap.h:32
bitfield8::flag0
bool flag0
Definition: tags.h:334
config.h
tags.h
BlamTagData
Class used to contain and access tag data.
Definition: tags.h:125
ogre_material_info_data::persistent_reload
bool persistent_reload
Whether or not to continuously update this material (ie, live editing).
Definition: rendering.h:54
ogre_material_info_data::tag_path
std::string tag_path
The tag path that this material was loaded from.
Definition: rendering.h:51
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:189
Blam::Rendering::Materials::GetDatablockFromTag
BLAM Ogre::HlmsDatablock * GetDatablockFromTag(std::string tag_path)
Retrieves an OGRE datablock from a material tag path.
Definition: materials.cpp:884
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:23
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:896
Demo::GraphicsSystem::getRoot
Ogre::Root * getRoot(void) const
Definition: GraphicsSystem.h:144
bitmap::filtering_mode_min
bitmap_filtering_mode filtering_mode_min
Definition: bitmap.h:46
material_comparison_function::greater_than
@ greater_than
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:52
material_wrap_modes::clamp
@ clamp