Elaztek Developer Hub
Blamite Game Engine - blam!  00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
compositor.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <OGRE/Compositor/Pass/OgreCompositorPassDef.h>
4 #include <OGRE/Compositor/Pass/OgreCompositorPassProvider.h>
5 #include <OGRE/Compositor/Pass/OgreCompositorPass.h>
6 
7 #ifndef BLAM
8 #define BLAM
9 #endif
10 
15 {
16  ImGui,
17  Undefined
18 };
19 
26 class BlamCompositorPassDefinition : public Ogre::CompositorPassDef
27 {
28 private:
30 
31 protected:
38  BlamCompositorPassDefinition(BlamCompositorPassType _pass_type, Ogre::CompositorTargetDef* parent_target_def);
39 
40 public:
47 };
48 
52 class BlamCompositorPassRegistry : public Ogre::CompositorPassProvider
53 {
64  Ogre::CompositorPassDef* addPassDef(Ogre::CompositorPassType pass_type, Ogre::IdString custom_id,
65  Ogre::CompositorTargetDef* parent_target_def, Ogre::CompositorNodeDef* parent_node_def) override;
66 
78  Ogre::CompositorPass* addPass(const Ogre::CompositorPassDef* definition, Ogre::Camera* default_camera,
79  Ogre::CompositorNode* parent_node, const Ogre::RenderTargetViewDef* rtv_def, Ogre::SceneManager* scene_manager) override;
80 };
Blam::Logger::LogEvent
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
logger.h
BlamCompositorPassType
BlamCompositorPassType
Enumerator listing all possible compositor pass types.
Definition: compositor.h:14
BlamCompositorPassDefinition::GetType
BlamCompositorPassType GetType() const
Retrieves the type of the compositor pass.
Definition: BlamCompositorPassDefinition.cpp:9
ogre_material_instance_data::referencing_tag_path
std::string referencing_tag_path
The path of the tag that uses this material instance.
Definition: rendering.h:35
BlamTagData::path
char path[256]
The tag's path.
Definition: tags.h:141
BlamCompositorPassDefinition_ImGui
Class used for the ImGUI compositor pass definition.
Definition: passes.h:23
rendering.h
BlamCompositorPassDefinition
Base class for Blamite compositor passes.
Definition: compositor.h:26
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
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
passes.h
BlamCompositorPassDefinition::BlamCompositorPassDefinition
BlamCompositorPassDefinition(BlamCompositorPassType _pass_type, Ogre::CompositorTargetDef *parent_target_def)
Constructs a new BlamCompositorPassDefinition.
Definition: BlamCompositorPassDefinition.cpp:3
ogre_material_instance_data::instance_datablock
Ogre::HlmsDatablock * instance_datablock
The datablock used for this material instance.
Definition: rendering.h:36
ogre_material_instance_data
Data structure used to store OGRE material instance data.
Definition: rendering.h:32
BlamCompositorPassType::Undefined
@ Undefined
Unknown pass type. Usually indicates an error.
BlamCompositorPassRegistry
Class used to make custom compositor passes available to OGRE.
Definition: compositor.h:52
Ogre
Definition: world_objects.h:16
BlamTagData
Class used to contain and access tag data.
Definition: tags.h:125
ogre_material_info_data::tag_path
std::string tag_path
The tag path that this material was loaded from.
Definition: rendering.h:51
compositor.h
ogre_material_instance_data::original_material
ogre_material_info_data * original_material
Pointer to the original material information.
Definition: rendering.h:34
BlamCompositorPass_ImGui
Class used for the ImGUI compositor pass.
Definition: passes.h:12
ogre_material_info_data::datablock
Ogre::HlmsDatablock * datablock
The datablock used for this material.
Definition: rendering.h:52
BlamCompositorPassType::ImGui
@ ImGui
Pass used to display ImGUI.