Elaztek Developer Hub
Blamite Game Engine - Guerilla (Library)  00390.07.02.23.1947.blamite
The tag editor for the Blamite Game Engine.
bitmap.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 
14 };
15 
17 {
18  APNG,
19  AVIF,
20  BMP,
21  CUR,
22  GIF,
23  ICO,
24  JPEG,
25  JPEG2K,
26  PCX,
27  PNG,
28  QOI,
29  SVG,
30  TGA,
31  TIFF,
32  WAL,
33  WEBP,
34  XBM
35 };
36 
41 {
42  GUERILLA_LIB_API bool ImportBitmap(std::string file_path, std::string output_directory);
43 }
BlamTagFieldType::Int16
@ Int16
Indicates that the field is a 16-bit integer.
block.h
GuerillaBitmapFormat::APNG
@ APNG
GuerillaBitmapFormat::JPEG2K
@ JPEG2K
bitmap.h
BlamPluginField_Block::GetField
BlamPluginField * GetField(std::string id)
Locates a field within the entry template with a specified ID.
Definition: BlamPluginField_Block.cpp:25
GuerillaBitmapFormat::ICO
@ ICO
tags.h
BlamTagFieldType::Block
@ Block
Indicates that the field is a tag block.
BlamTagField_Block::entries
std::vector< BlamTagBlockEntry * > entries
The list of entries within this block.
Definition: block.h:128
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:415
BlamTagFieldType::Ascii
@ Ascii
Indicates that the field is a string of text.
GuerillaBitmapFormat::WEBP
@ WEBP
BlamTagField_Vector::value
BlamVector4 value
The value of the field, represented as a 4D vector.
Definition: vector.h:40
BlamTagFieldType::Dataref
@ Dataref
Indicates that the field is a data reference.
GuerillaBitmapFormat
GuerillaBitmapFormat
Definition: bitmap.h:16
BlamTagBlockEntry
Data structure representing a tag block entry.
Definition: block.h:17
Guerilla::Tags::GetPlugin
GUERILLA_LIB_API BlamPlugin * GetPlugin(std::string class_name)
Retrieves a plugin based on its name.
Definition: plugins.cpp:137
Guerilla::Tags::Importers::Bitmap
Namespace containing functions used for importing bitmap tags from source assets.
Definition: bitmap.h:40
BlamPluginField_Block
Class representing a block plugin field.
Definition: block.h:66
GuerillaBitmapFormat::BMP
@ BMP
dataref.h
GuerillaBitmapFormat::TGA
@ TGA
GuerillaBitmapFormat::XBM
@ XBM
Guerilla::Tags::Fields::GetFieldTypeName
GUERILLA_LIB_API std::string GetFieldTypeName(BlamTagFieldType type)
Generates a string name based on the provided tag field type.
Definition: fields.cpp:222
GuerillaBitmapFormat::QOI
@ QOI
BlamTagField_Block
Class representing a block tag field.
Definition: block.h:125
BlamTagBlockEntry::GetField
BlamTagField * GetField(std::string field_id)
Locates a field within the entry with a specified ID.
Definition: BlamTagBlockEntry.cpp:13
BlamTagField_Dataref
Class representing a dataref tag field.
Definition: dataref.h:43
BlamTag
Class representing a Tag.
Definition: tags.h:277
GuerillaBitmapFormat::TIFF
@ TIFF
GuerillaBitmapFormat::SVG
@ SVG
BlamTag::GetField
BlamTagField * GetField(std::string field_id)
Locates a tag field with a specific ID.
Definition: BlamTag.cpp:695
BlamTagFieldType::Int64
@ Int64
Indicates that the field is a 32-bit integer.
GuerillaBitmapFormat::JPEG
@ JPEG
GuerillaBitmapFormat::WAL
@ WAL
BlamTagField_Dataref::data_size
int data_size
The size of the referenced data.
Definition: dataref.h:47
GuerillaBitmapFormat::AVIF
@ AVIF
BlamTagField_Enum
Class representing a tag enum field.
Definition: enum.h:58
GuerillaBitmapFormat::CUR
@ CUR
BlamTag::SaveToDisk
void SaveToDisk(std::string _file_path)
Saves any modifications to the XML tag back to disk.
Definition: BlamTag.cpp:542
BlamPlugin
Class representing a Plugin.
Definition: tags.h:79
BlamTagField_Int
Class representing an integer tag field.
Definition: int.h:32
BlamTagField_Block::CreateNewEntry
BlamTagBlockEntry * CreateNewEntry()
Creates a new block entry based on the plugin's entry template.
Definition: BlamTagField_Block.cpp:99
BlamTagField_Vector
Class representing a vector tag field.
Definition: vector.h:35
GuerillaBitmapFormat::GIF
@ GIF
BlamTagField_Dataref::data_address
void * data_address
The address of the referenced data.
Definition: dataref.h:46
GuerillaBitmapFormat::PCX
@ PCX
vector.h
Guerilla::Tags::Importers::Bitmap::ImportBitmap
GUERILLA_LIB_API bool ImportBitmap(std::string file_path, std::string output_directory)
Definition: bitmap.cpp:66
GUERILLA_LIB_API
#define GUERILLA_LIB_API
Definition: bitmap.h:8
GuerillaPixelFormat
GuerillaPixelFormat
Definition: bitmap.h:11
BlamPlugin::CreateNewTag
BlamTag * CreateNewTag()
Creates a new tag using the plugin.
Definition: BlamPlugin.cpp:338
BlamPlugin::GetField
BlamPluginField * GetField(std::string id)
Attempts to locate a field with a given ID.
Definition: BlamPlugin.cpp:377
validate_image_pixel_format
bool validate_image_pixel_format(sail_image **image_pointer)
Ensures that the provided image is converted to a supported pixel format.
Definition: bitmap.cpp:31
BlamTagFieldType::Vector2
@ Vector2
Indicates that the field is a vector2.
ascii.h
BlamTagField_Int::value
int64_t value
The value of the field, represented as a 32-bit integer.
Definition: int.h:37
GuerillaBitmapFormat::PNG
@ PNG
int.h
BlamTagFieldType::Enum32
@ Enum32
Indicates that the field is an Enum32.
BlamTagField_Ascii::value
std::string value
The value of the field.
Definition: ascii.h:39
enum.h
BlamTagField_Ascii
Class representing an ascii tag field.
Definition: ascii.h:34