Elaztek Developer Hub
Blamite Game Engine - Guerilla (Library)  00421.06.29.24.2305.blamite
The tag editor for the Blamite Game Engine.
render_model.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #ifdef GUERILLA_LIB_EXPORTS
6 #define GUERILLA_LIB_API __declspec(dllexport)
7 #else
8 #define GUERILLA_LIB_API __declspec(dllimport)
9 #endif
10 
12 {
13  OBJ,
14 };
15 
20 {
21  GUERILLA_LIB_API bool ImportRenderModel(std::string file_path, std::string output_directory);
22 }
block.h
Guerilla::Tags::CheckFieldsExist
GUERILLA_LIB_API bool CheckFieldsExist(std::vector< BlamPluginField * > field_list, BlamMap< std::string, BlamTagFieldType > required_fields, std::string scope_name)
Scans through a list of plugin fields and ensures that all required fields exist, and that they are o...
Definition: plugin_verification.cpp:325
render_model_report_type::error
@ error
GuerillaRenderModelFormat
GuerillaRenderModelFormat
Definition: render_model.h:11
bitfield.h
render_model_report_type::warning
@ warning
get_material_index_entry
BlamTagBlockEntry * get_material_index_entry(BlamTag *tag, int material_index, aiMaterial *material)
Definition: render_model.cpp:149
tags.h
BlamTagField_Dataref::SetText
void SetText(std::string text_value)
Sets the dataref's stored value to a given string.
Definition: BlamTagField_Dataref.cpp:78
BlamTagField_Block::entries
std::vector< BlamTagBlockEntry * > entries
The list of entries within this block.
Definition: block.h:131
Guerilla::Tags::Compiler::Compile
GUERILLA_LIB_API BlamResult Compile(BlamTag *tag, std::string compiled_file_path)
Compiles the tag data to a file that can be used with the engine.
Definition: tag_compiler.cpp:522
BlamTagField_Vector::value
BlamVector4 value
The value of the field, represented as a 4D vector.
Definition: vector.h:41
render_model.h
BlamTagBlockEntry
Data structure representing a tag block entry.
Definition: block.h:17
BlamTagField_Block::DeleteAllEntries
void DeleteAllEntries()
Deletes all block entries from the field.
Definition: BlamTagField_Block.cpp:82
Guerilla::Tags::GetPlugin
GUERILLA_LIB_API BlamPlugin * GetPlugin(std::string class_name)
Retrieves a plugin based on its name.
Definition: plugins.cpp:137
render_model_report_type::comment
@ comment
BlamPlugin::fields
std::vector< BlamPluginField * > fields
The list of fields contained within this plugin.
Definition: tags.h:120
BlamPluginField_Block
Class representing a block plugin field.
Definition: block.h:68
Guerilla::Tags::Importers::RenderModel::ImportRenderModel
GUERILLA_LIB_API bool ImportRenderModel(std::string file_path, std::string output_directory)
Definition: render_model.cpp:323
dataref.h
GUERILLA_LIB_API
#define GUERILLA_LIB_API
Definition: render_model.h:8
tagref.h
BlamTagField_Tagref
Class representing an tagref tag field.
Definition: tagref.h:42
BlamTagField_Bitfield
Clas representing a bitfield tag field.
Definition: bitfield.h:65
BlamTagField_Block
Class representing a block tag field.
Definition: block.h:128
BlamTagBlockEntry::GetField
BlamTagField * GetField(std::string field_id)
Locates a field within the entry with a specified ID.
Definition: BlamTagBlockEntry.cpp:16
BlamTagField_Dataref
Class representing a dataref tag field.
Definition: dataref.h:45
BlamTag
Class representing a Tag.
Definition: tags.h:296
BlamTag::GetField
BlamTagField * GetField(std::string field_id)
Locates a tag field with a specific ID.
Definition: BlamTag.cpp:722
populate_index_data
void populate_index_data(BlamTag *new_tag, bool *errored, BlamTagBlockEntry *entry, aiMesh *mesh)
Definition: render_model.cpp:262
BlamTagField_Enum::current_option
std::string current_option
The ID of the currently selected option.
Definition: enum.h:83
BlamTagField_Dataref::data_size
int data_size
The size of the referenced data.
Definition: dataref.h:49
populate_vertex_data
void populate_vertex_data(BlamTag *new_tag, bool *errored, BlamTagBlockEntry *entry, aiMesh *mesh)
Definition: render_model.cpp:179
BlamTagField_Enum
Class representing a tag enum field.
Definition: enum.h:80
GuerillaRenderModelFormat::OBJ
@ OBJ
BlamTag::SaveToDisk
void SaveToDisk(std::string _file_path)
Saves any modifications to the XML tag back to disk.
Definition: BlamTag.cpp:568
Guerilla::Tags::LoadTag
GUERILLA_LIB_API BlamTag * LoadTag(std::string file_path)
Attempts to load a tag from disk and link plugin data.
Definition: tags.cpp:161
BlamPlugin
Class representing a Plugin.
Definition: tags.h:80
BlamTagField_Int
Class representing an integer tag field.
Definition: int.h:33
BlamTagField_Vector
Class representing a vector tag field.
Definition: vector.h:36
validate_render_model_plugin
bool validate_render_model_plugin(BlamPlugin *plugin)
Definition: render_model.cpp:28
BlamPluginField_Block::fields
std::vector< BlamPluginField * > fields
The list of fields within the tag block.
Definition: block.h:72
BlamTagField_Dataref::data_address
void * data_address
The address of the referenced data.
Definition: dataref.h:48
BlamTagUpgradePolicy::UPGRADE_IF_NEWER
@ UPGRADE_IF_NEWER
Instructs the tag to allow the use of equal or newer plugin versions.
vector.h
render_model_report_type
render_model_report_type
Definition: render_model.cpp:21
BlamTagField_Bitfield::SetBit
bool SetBit(std::string flag_id, bool value)
Sets the value of a bitfield flag.
Definition: BlamTagField_Bitfield.cpp:194
write_render_model_error
void write_render_model_error(BlamTag *tag, std::string error_text, render_model_report_type report_type)
Definition: render_model.cpp:119
BlamPlugin::CreateNewTag
BlamTag * CreateNewTag()
Creates a new tag using the plugin.
Definition: BlamPlugin.cpp:366
BlamPlugin::GetField
BlamPluginField * GetField(std::string id)
Attempts to locate a field with a given ID.
Definition: BlamPlugin.cpp:410
BlamTagBlockEntry::name
std::string name
The name of the entry.
Definition: block.h:20
BlamTagField_Int::value
int64_t value
The value of the field, represented as a 32-bit integer.
Definition: int.h:38
BlamTagField_Block::AddEntry
bool AddEntry(int offset=-1)
Adds a new entry to the field.
Definition: BlamTagField_Block.cpp:8
int.h
BlamTagField_Tagref::referenced_tag_path
std::string referenced_tag_path
Definition: tagref.h:48
Guerilla::Tags::Importers::RenderModel
Namespace containing functions used for importing render_model tags from source assets.
Definition: render_model.h:19
enum.h