Elaztek Developer Hub
Blamite Game Engine - blam!  00453.06.08.26.0624.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 }
tilesets
std::map< std::string, tile_set_data * > tilesets
Definition: tilesets.cpp:37
ogre_texture_info_data::texture
Ogre::TextureGpu * texture
The OGRE texture data.
Definition: textures.cpp:21
tile_set
Definition: tile_set.h:24
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
tag_io.h
Blam::UI::Win32::Utils::DisableControl
BLAM void DisableControl(HWND dialog, int field)
Disables the specified control.
Definition: utils.cpp:23
Blam::Rendering::Shaders::GetShaderParameters
BLAM Ogre::GpuProgramParametersSharedPtr GetShaderParameters(std::string tag_path, Ogre::GpuProgramType shader_type)
Definition: shaders_raw.cpp:333
Demo::GraphicsSystem::getRenderWindow
Ogre::Window * getRenderWindow(void) const
Definition: GraphicsSystem.h:148
ogre_texture_map
BlamMap< std::string, ogre_texture_info_data * > ogre_texture_map
Map containing information on all loaded textures.
Definition: textures.cpp:30
generate_pixel_shader_pieces
std::string generate_pixel_shader_pieces(shader *program)
Definition: shaders_hlms.cpp:214
Blam::Logger::LogEvent
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
dialogs.h
get_parameter_type_size
int get_parameter_type_size(shader_parameter_type type)
Definition: shaders_hlms.cpp:80
shader::hull_program
tag_reference hull_program
Definition: shader.h:63
tile_set_data::tileset
tile_set * tileset
Definition: tilesets.cpp:31
ogre_texture_info_data::bitmap_tag
bitmap * bitmap_tag
The bitmap tag that the texture originates from.
Definition: textures.cpp:19
logger.h
bitmap.h
entry
Definition: imgui.h:36
data_reference::GetValueAsString
std::string GetValueAsString()
Retrieves the value of the dataref as a string.
Definition: data_reference.cpp:3
version_data.h
shader_parameter_type::float2
@ float2
shader::vertex_program
tag_reference vertex_program
Definition: shader.h:60
Blam::Rendering::Shaders::LoadShader
BLAM void LoadShader(shader *program, std::string tag_path)
Definition: shaders_hlms.cpp:264
Blam::UI::Win32::Utils::AddItemToComboBox
BLAM void AddItemToComboBox(HWND hDlg, int control_id, const char *item, int value)
Adds an item to the specified ComboBox control.
Definition: utils.cpp:37
Blam::Animation
Namespace for animation data.
Definition: animation.h:12
Blam::UI::Win32::Utils::DisableControlThemes
BLAM void DisableControlThemes(HWND dialog, int field)
Disables visual themes for the specified control.
Definition: utils.cpp:11
vertex_shader_pieces_template
std::string vertex_shader_pieces_template
Definition: shaders_hlms.cpp:22
shader::flags
bitfield16_flags flags
Bitfield data for flags. See #bitfield16_flags for details.
Definition: shader.h:59
tile_set_material::material
Ogre::MaterialPtr material
Definition: tilesets.cpp:26
Blam::Content::Tags::LoadTagFromFile
BLAM BlamResult LoadTagFromFile(std::string tag_path, bool reload_if_already_loaded=true)
Loads a tag from the engine's tag directory (default is '.
Definition: tag_io.cpp:319
tile_set_material::bitmap
Ogre::TextureGpu * bitmap
Definition: tilesets.cpp:24
Blam::Rendering::Shaders::FillInstanceParameterBuffer
BLAM void FillInstanceParameterBuffer(float *address, BlamWorldObject_Tag *object, shader *program)
Definition: shaders_hlms.cpp:223
destroy_shader_material
void destroy_shader_material(Ogre::MaterialPtr material, std::string tag_path)
Definition: shaders_raw.cpp:85
USER_DATA_PATH
#define USER_DATA_PATH(path)
Macro to quickly access a user data folder.
Definition: config.h:41
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
tile_set_data::materials
std::vector< tile_set_material * > materials
Definition: tilesets.cpp:33
raw_shader_datablocks
std::map< std::string, Ogre::MaterialPtr > raw_shader_datablocks
Definition: shaders_raw.cpp:19
Blam::Rendering::Materials::CreateDefaultPbsDatablock
BLAM Ogre::HlmsPbsDatablock * CreateDefaultPbsDatablock(std::string id)
Creates a default PBS datablock.
Definition: materials.cpp:1062
tile_set_data::atlas_start_points
std::vector< BlamVector2 > atlas_start_points
Definition: tilesets.cpp:32
bitmap_filtering_mode::point
@ point
TILEMAP_SHADER_TAG_PATH
#define TILEMAP_SHADER_TAG_PATH
Definition: tilesets.cpp:20
tile_set_material
Definition: tilesets.cpp:22
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:64
shader::domain_program
tag_reference domain_program
Definition: shader.h:64
BlamWorldObject_Tag
Class representing a tag-based world object.
Definition: world_objects.h:278
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:156
ogre_texture_info_data
Data structure used to group together information about a texture.
Definition: textures.cpp:17
bitmap_filtering_mode::anisotropic
@ anisotropic
Blam::Rendering::Tilesets::LoadTileset
BLAM void LoadTileset(tile_set *tileset, std::string tag_path)
Definition: tilesets.cpp:71
tick.h
Blam::Rendering::Shaders::CalculateInstanceBufferElementCount
BLAM uint16_t CalculateInstanceBufferElementCount(shader *program)
Definition: shaders_hlms.cpp:251
ENGINE_VERSION
#define ENGINE_VERSION
Definition: version_data.h:32
Blam::Rendering::Textures::GetTextureFromTag
BLAM Ogre::TextureGpu * GetTextureFromTag(std::string tag_path)
Retrieves an OGRE texture from a tag path.
Definition: textures.cpp:109
bitmap::filtering_mode_mag
bitmap_filtering_mode filtering_mode_mag
Definition: bitmap.h:37
bitmap::size
vector2 size
The resolution of the bitmap.
Definition: bitmap.h:63
shader
Definition: shader.h:31
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:97
Blam::Tick::GetTotalRuntimeTicks
BLAM uint64_t GetTotalRuntimeTicks()
Gets the total amount of ticks that have elapsed during program runtime.
Definition: tick.cpp:242
shared_shader_pieces_template
std::string shared_shader_pieces_template
Definition: shaders_hlms.cpp:14
material.h
Blam::Rendering::WriteScreenshot
BLAM void WriteScreenshot()
Saves a screenshot of the current frame to a file.
Definition: utils.cpp:25
Blam::Rendering::Tilesets::GetTilesetSourceCount
BLAM int GetTilesetSourceCount(std::string tag_path)
Definition: tilesets.cpp:171
shader::pixel_program
tag_reference pixel_program
Definition: shader.h:61
Blam::UI::Win32::Utils::EnableControl
BLAM void EnableControl(HWND dialog, int field)
Enables the specified control.
Definition: utils.cpp:30
shader_datablocks
std::map< std::string, Ogre::HlmsDatablock * > shader_datablocks
Definition: shaders_hlms.cpp:12
Blam::Rendering::Tilesets::LoadPendingTilesets
BLAM void LoadPendingTilesets()
Definition: tilesets.cpp:94
bitmap::filtering_mode_mip
bitmap_filtering_mode filtering_mode_mip
Definition: bitmap.h:38
tile_set.h
shader_program
Definition: shader_program.h:24
Blam::Rendering::Shaders::GetRawShaderMaterial
BLAM Ogre::MaterialPtr GetRawShaderMaterial(std::string tag_path)
Definition: shaders_raw.cpp:321
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:61
material
Definition: material.h:54
Blam::Rendering::Shaders::GetShaderDatablock
BLAM Ogre::HlmsDatablock * GetShaderDatablock(std::string tag_path)
Definition: shaders_hlms.cpp:288
uint32_t
unsigned int uint32_t
Definition: stdint.h:17
Blam::Content::Tags::GetBitmapTag
BLAM bitmap * GetBitmapTag(std::string tag_path)
Definition: bitmap.cpp:16
Blam::Rendering::Shaders::LoadRawShader
BLAM Ogre::MaterialPtr LoadRawShader(shader *shader, std::string tag_path)
Definition: shaders_raw.cpp:116
generate_instance_parameters
std::string generate_instance_parameters(shader *program_tag, bool generate_for_const_buffer, bool generate_for_vertex_shader)
Definition: shaders_hlms.cpp:115
bitmap_filtering_mode::none
@ none
Blam::UI::Win32::Utils::SetComboBoxSelectedItem
BLAM void SetComboBoxSelectedItem(HWND hDlg, int control_id, const char *item)
Change the selected item in a ComboBox.
Definition: utils.cpp:45
Blam::UI::Win32::Utils::SetControlText
BLAM bool SetControlText(HWND dialog, int field, const char *text)
Sets the text of the specified control.
Definition: utils.cpp:16
Blam::RenderingBGFX::Textures::BuildTextureFromTag
BLAM void BuildTextureFromTag(bitmap *bitmap_tag, std::string tag_path)
Loads a texture into bgfx from a bitmap tag.
Definition: bitmaps.cpp:372
pixel_shader_pieces_template
std::string pixel_shader_pieces_template
Definition: shaders_hlms.cpp:46
Blam::Rendering::GetGraphicsSystem
BLAM Demo::GraphicsSystem * GetGraphicsSystem()
Retrieves the graphics system used by OGRE.
Definition: ogre.cpp:645
bitmap_filtering_mode::linear
@ linear
shader_program.h
Blam::Rendering::Utils::ConvertBitmapFilterMode
BLAM Ogre::FilterOptions ConvertBitmapFilterMode(bitmap_filtering_mode filter_mode)
Converts a bitmap filtering mode enum value to the equivalent OGRE filtering mode value.
Definition: utils.cpp:83
load_shader_program
Ogre::HighLevelGpuProgramPtr load_shader_program(std::string tag_path, Ogre::GpuProgramType type, Ogre::Pass *pass, std::string syntax_code, std::string entry_point, std::string target, std::string program_source)
Definition: shaders_raw.cpp:21
Blam::Rendering::Tilesets::GetTilesetMaterial
BLAM Ogre::MaterialPtr GetTilesetMaterial(std::string tag_path, int tile_index)
Definition: tilesets.cpp:158
generate_vertex_shader_pieces
std::string generate_vertex_shader_pieces(shader *program)
Definition: shaders_hlms.cpp:179
tile_set_data::needs_load
bool needs_load
Definition: tilesets.cpp:34
data_reference::data_address
void * data_address
The address of the referenced data.
Definition: tags.h:346
value
Offset font vertically by altering the io Font DisplayOffset value
Definition: README.txt:67
generate_common_pieces
std::string generate_common_pieces(shader *program, bool generate_for_vertex_shader)
Definition: shaders_hlms.cpp:170
bitmap::pixel_data
data_reference pixel_data
The raw pixel data for the bitmap.
Definition: bitmap.h:62
Blam::Rendering::Textures::ReloadPendingBitmaps
BLAM void ReloadPendingBitmaps()
Reloads all bitmaps that are currently pending a reload.
Definition: textures.cpp:128
shader::compute_program
tag_reference compute_program
Definition: shader.h:65
Demo::GraphicsSystem
Definition: GraphicsSystem.h: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
tag_reference::HasReference
bool HasReference()
Checks if a tag reference has a tag specified or not.
Definition: tag_reference.cpp:81
Blam::Rendering::Tilesets::GetTilesetDatablock
BLAM Ogre::HlmsLowLevelDatablock * GetTilesetDatablock(std::string tag_path, int tile_index)
Definition: tilesets.cpp:145
shader_parameter_type::float4
@ float4
ogre_texture_info_data::load_pending
bool load_pending
Whether or not the texture is currently pending being loaded.
Definition: textures.cpp:22
shader::bitfield16_flags::prefer_referenced_programs
bool prefer_referenced_programs
Definition: shader.h:41
bitmap_filtering_mode
bitmap_filtering_mode
Definition: bitmap.h:24
shader.h
bitmap
Definition: bitmap.h:34
find_embedded_program
shader::programs_entry * find_embedded_program(shader *shader, shader::programs_entry::type_enum type)
Definition: shaders_raw.cpp:103
tagclass.h
Blam::Content::Tags::GetShaderTag
BLAM shader * GetShaderTag(std::string tag_path)
Definition: shader.cpp:13
config.h
tile_set_data
Definition: tilesets.cpp:29
tags.h
shader_parameter_type::float3
@ float3
Blam::UI::Win32::Utils::DisableWindowThemes
BLAM void DisableWindowThemes(HWND dialog)
Disables visual themes for the specified dialog ().
Definition: utils.cpp:6
tag_reference::tagref_address
void * tagref_address
The address of the tagref data.
Definition: tags.h:295
get_parameter_type_string
std::string get_parameter_type_string(shader_parameter_type type)
Definition: shaders_hlms.cpp:62
Demo::GraphicsSystem::getRoot
Ogre::Root * getRoot(void) const
Definition: GraphicsSystem.h:147
bitmap::filtering_mode_min
bitmap_filtering_mode filtering_mode_min
Definition: bitmap.h:36
uint16_t
unsigned short uint16_t
Definition: stdint.h:16
get_parameter_type_float_count
int get_parameter_type_float_count(shader_parameter_type type)
Definition: shaders_hlms.cpp:98
tile_set_material::datablock
Ogre::HlmsLowLevelDatablock * datablock
Definition: tilesets.cpp:25
shader_parameter_type
shader_parameter_type
Definition: shader.h:21
shader::source
data_reference source
Definition: shader.h:110
create_tileset_shader
bool create_tileset_shader(std::string tag_path, Ogre::HlmsLowLevelDatablock **_datablock, Ogre::MaterialPtr *_material, int source_index)
Definition: tilesets.cpp:39
shader_parameter_type::float1
@ float1
shader::geometry_program
tag_reference geometry_program
Definition: shader.h:62