 |
Blamite Game Engine - blam!
00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
|
Ogre::TextureGpu * texture
The OGRE texture data.
Definition: textures.cpp:21
@ 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 Ogre::HlmsUnlitDatablock * CreateDefaultUnlitDatablockForPrimitives(std::string id)
Creates a default Unlit datablock for use with 2D and 3D primitives.
Definition: materials.cpp:997
std::string tag_path
Definition: models.cpp:18
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
bool flag0
Definition: tags.h:361
Ogre::Window * getRenderWindow(void) const
Definition: GraphicsSystem.h:146
BlamMap< std::string, ogre_texture_info_data * > ogre_texture_map
Map containing information on all loaded textures.
Definition: textures.cpp:30
BLAM bool LoadUnlitDatablockFromMaterialTag(Ogre::HlmsUnlitDatablock *datablock, material *material_tag)
Loads an Unlit datablock from a material tag.
Definition: materials.cpp:234
material * tag_instance
Pointer to the tag that uses this material instance.
Definition: rendering.h:45
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
BLAM Ogre::HlmsUnlitDatablock * CreateDefaultUnlitDatablock(std::string id)
Creates a default Unlit datablock.
Definition: materials.cpp:986
BLAM void RebuildDatablocks()
Rebuilds ALL datablocks (including instances) from their original tags.
Definition: materials.cpp:673
Definition: render_model.h:25
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
bitmap * bitmap_tag
The bitmap tag that the texture originates from.
Definition: textures.cpp:19
material_wrap_modes
Definition: material.h:30
Ogre::HlmsTypes hlms_type
The HLMS type of this material.
Definition: rendering.h:63
std::string GetTagPath()
Retrieves the path of the tag that this tagref refers to.
Definition: tag_reference.cpp:52
std::string GetValueAsString()
Retrieves the value of the dataref as a string.
Definition: data_reference.cpp:3
Class used to store OGRE material information.
Definition: rendering.h:56
Namespace for animation data.
Definition: animation.h:12
BLAM Ogre::HlmsPbsDatablock * CreateDefaultPbsDatablockForPrimitives(std::string id)
Creates a default PBS datablock for use with 2D and 3D primitives.
Definition: materials.cpp:1038
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
BlamMap< std::string, ogre_model_info_data * > render_model_map
Definition: models.cpp:23
bool flag2
Definition: tags.h:348
#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
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
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 Ogre::HlmsPbsDatablock * CreateDefaultPbsDatablock(std::string id)
Creates a default PBS datablock.
Definition: materials.cpp:1027
BLAM bool LoadPBSDatablockFromMaterialTag(Ogre::HlmsPbsDatablock *datablock, material *material_tag)
Loads a PBS (Physically-Based Shading) datablock from a material tag.
Definition: materials.cpp:376
int16_t bytes_per_line
The amount of bytes needed for a single line/row of pixels for this bitmap.
Definition: bitmap.h:80
render_model * model_tag
Definition: models.cpp:17
Ogre::SceneManager * getSceneManager(void) const
Definition: GraphicsSystem.h:147
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:140
Data structure used to group together information about a texture.
Definition: textures.cpp:17
ogre_material_instance_data * CreateNewInstance(BlamTagData *referencing_tag)
Creates a new instance of this material.
Definition: ogre_material_info_data.cpp:5
#define ENGINE_VERSION
Definition: version_data.h:32
BLAM bool BuildDatablockFromTag(material *material_tag, std::string tag_path)
Creates an OGRE material datablock from a material tag.
Definition: materials.cpp:760
BLAM Ogre::TextureGpu * GetTextureFromTag(std::string tag_path)
Retrieves an OGRE texture from a tag path.
Definition: textures.cpp:93
bitmap_filtering_mode filtering_mode_mag
Definition: bitmap.h:47
vector2 size
The resolution of the bitmap.
Definition: bitmap.h:79
BlamMap< std::string, ogre_material_instance_data * > instances
A map containing all instances of this material.
Definition: rendering.h:71
BLAM void BuildTextureFromTag(bitmap *bitmap_tag, std::string tag_path)
Loads a texture into OGRE from a bitmap tag.
Definition: textures.cpp:81
BLAM uint64_t GetTotalRuntimeTicks()
Gets the total amount of ticks that have elapsed during program runtime.
Definition: tick.cpp:233
bitfield16 flags
Definition: light.h:29
color diffuse_color
Definition: light.h:48
BLAM void WriteScreenshot()
Saves a screenshot of the current frame to a file.
Definition: utils.cpp:25
real power_scale
The relative power scale of the light.
Definition: light.h:45
bitmap_filtering_mode filtering_mode_mip
Definition: bitmap.h:48
Structure representing a tag reference.
Definition: tags.h:277
bool load_pending
Definition: models.cpp:20
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
Definition: material.h:52
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
Definition: material.h:22
char class_name[4]
The tag class identifier. Will be the short class name.
Definition: tags.h:281
unsigned int uint32_t
Definition: stdint.h:17
BLAM BlamTagData * GetTagData(std::string tag_path)
Retrieves information for a given tag.
Definition: tags.cpp:80
BLAM bitmap * GetBitmapTag(std::string tag_path)
Definition: bitmap.cpp:16
bool needs_reload
Whether or not this material needs to be reloaded.
Definition: rendering.h:61
Ogre::HlmsDatablock * instance_datablock
The datablock used for this material instance.
Definition: rendering.h:44
Data structure used to store OGRE material instance data.
Definition: rendering.h:40
BLAM Demo::GraphicsSystem * GetGraphicsSystem()
Retrieves the graphics system used by OGRE.
Definition: ogre.cpp:492
bool flag1
Definition: tags.h:347
Definition: models.cpp:15
void * data_address
The address of the referenced data.
Definition: tags.h:327
Ogre::MeshPtr mesh
Definition: models.cpp:19
BLAM void LoadPendingModels()
Definition: models.cpp:207
data_reference pixel_data
The raw pixel data for the bitmap.
Definition: bitmap.h:78
bitfield8 flags
Definition: bitmap.h:49
BLAM void ReloadPendingMaterials()
Reloads all datablocks which are flagged as requiring a reload.
Definition: materials.cpp:856
BLAM void ReloadPendingBitmaps()
Reloads all bitmaps that are currently pending a reload.
Definition: textures.cpp:112
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
data_reference id
Definition: material.h:56
Definition: GraphicsSystem.h:27
std::vector< Ogre::HlmsDatablock * > ___known_datablocks
Definition: materials.cpp: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 flag1
Definition: tags.h:362
Ogre::MeshPtr load_mesh_from_tag(render_model *model, std::string tag_path)
Definition: models.cpp:25
bool load_pending
Whether or not the texture is currently pending being loaded.
Definition: textures.cpp:22
int data_size
The size of the referenced data.
Definition: tags.h:328
BLAM Ogre::MeshPtr GetModelFromTagPath(std::string tag_path)
Definition: models.cpp:221
BLAM Ogre::Light * CreateLightFromTag(light *light)
Definition: lights.cpp:9
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
Definition: bitmap.h:22
#define BLAM_OGRE_RESOURCE_GROUP
The name of the OGRE resource group used for engine resources.
Definition: rendering.h:26
bool flag0
Definition: tags.h:346
color specular_color
Definition: light.h:49
Class used to contain and access tag data.
Definition: tags.h:124
bool persistent_reload
Whether or not to continuously update this material (ie, live editing).
Definition: rendering.h:62
std::string tag_path
The tag path that this material was loaded from.
Definition: rendering.h:59
BLAM material * GetMaterialTag(std::string tag_path)
Definition: material.cpp:16
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 Ogre::HlmsDatablock * GetDatablockFromTag(std::string tag_path)
Retrieves an OGRE datablock from a material tag path.
Definition: materials.cpp:915
BlamMap< std::string, ogre_material_info_data * > ogre_material_map
The map containing all available OGRE materials.
Definition: materials.cpp:25
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 void LoadModel(render_model *model, std::string tag_path)
Definition: models.cpp:184
Ogre::Root * getRoot(void) const
Definition: GraphicsSystem.h:145
bitmap_filtering_mode filtering_mode_min
Definition: bitmap.h:46
unsigned short uint16_t
Definition: stdint.h:16
material_comparison_function
Definition: material.h:37
Ogre::HlmsDatablock * datablock
The datablock used for this material.
Definition: rendering.h:60
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 void UnloadModels()
Definition: models.cpp:244
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