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