Elaztek Developer Hub
Blamite Game Engine - blam!  00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
ogre_material_info_data Class Reference

Class used to store OGRE material information. More...

#include <rendering.h>

Public Member Functions

ogre_material_instance_dataCreateNewInstance (BlamTagData *referencing_tag)
 Creates a new instance of this material. More...
 

Public Attributes

std::string tag_path = ""
 The tag path that this material was loaded from. More...
 
Ogre::HlmsDatablock * datablock = nullptr
 The datablock used for this material. More...
 
bool needs_reload = false
 Whether or not this material needs to be reloaded. More...
 
bool persistent_reload = false
 Whether or not to continuously update this material (ie, live editing). More...
 
Ogre::HlmsTypes hlms_type = Ogre::HlmsTypes::HLMS_UNLIT
 The HLMS type of this material. More...
 
BlamMap< std::string, ogre_material_instance_data * > instances = BlamMap<std::string, ogre_material_instance_data*>()
 A map containing all instances of this material. More...
 

Detailed Description

Class used to store OGRE material information.

This allows for additional information to be stored alongside an OGRE material - such as an origin tag, instances, and so on.

Member Function Documentation

◆ CreateNewInstance()

ogre_material_instance_data * ogre_material_info_data::CreateNewInstance ( BlamTagData referencing_tag)

Creates a new instance of this material.

Parameters
referencing_tag- The tag that the instance is being created for.
Returns
Pointer to the newly created instance, or nullptr if the instance could not be created.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ datablock

Ogre::HlmsDatablock* ogre_material_info_data::datablock = nullptr

The datablock used for this material.

◆ hlms_type

Ogre::HlmsTypes ogre_material_info_data::hlms_type = Ogre::HlmsTypes::HLMS_UNLIT

The HLMS type of this material.

◆ instances

BlamMap<std::string, ogre_material_instance_data*> ogre_material_info_data::instances = BlamMap<std::string, ogre_material_instance_data*>()

A map containing all instances of this material.

Each key contains the referencing tag path (as in, the tag which uses a given instance), and each value contains the data for the material instance.

◆ needs_reload

bool ogre_material_info_data::needs_reload = false

Whether or not this material needs to be reloaded.

◆ persistent_reload

bool ogre_material_info_data::persistent_reload = false

Whether or not to continuously update this material (ie, live editing).

◆ tag_path

std::string ogre_material_info_data::tag_path = ""

The tag path that this material was loaded from.


The documentation for this class was generated from the following files: