 |
Blamite Game Engine - Guerilla (Library)
00456.10.01.26.0053.blamite
The tag editor for the Blamite Game Engine.
|
Go to the documentation of this file.
5 #ifdef GUERILLA_LIB_EXPORTS
6 #define GUERILLA_LIB_API __declspec(dllexport)
8 #define GUERILLA_LIB_API __declspec(dllimport)
BlamPluginField * GetField(std::string id)
Locates a field within the entry template with a specified ID.
Definition: BlamPluginField_Block.cpp:25
std::map< SailPixelFormat, std::string > supported_pixel_formats
Definition: bitmap.cpp:24
void SetText(std::string text_value)
Sets the dataref's stored value to a given string.
Definition: BlamTagField_Dataref.cpp:84
std::vector< BlamTagBlockEntry * > entries
The list of entries within this block.
Definition: block.h:175
float srgb_to_linear(float srgb_value)
Converts a single sRGB-encoded color channel value to linear space.
Definition: bitmap.cpp:134
BlamVector4 value
The value of the field, represented as a 4D vector.
Definition: vector.h:48
Data structure representing a tag block entry.
Definition: block.h:30
float linear_to_srgb(float linear_value)
Converts a single linear-space color channel value to sRGB encoding.
Definition: bitmap.cpp:155
Class representing a block plugin field.
Definition: block.h:113
bool mip_chain_is_gpu_addressable(int width, int height, bimg::TextureFormat::Enum format)
Checks whether a complete mip chain for these dimensions can actually be addressed by the GPU in a bl...
Definition: bitmap.cpp:436
Clas representing a bitfield tag field.
Definition: bitfield.h:66
Class representing a block tag field.
Definition: block.h:172
BlamTagField * GetField(std::string field_id)
Locates a field within the entry with a specified ID.
Definition: BlamTagBlockEntry.cpp:16
Class representing a dataref tag field.
Definition: dataref.h:46
Class representing a Tag.
Definition: tags.h:319
bool validate_image_pixel_format(sail_image **image_pointer, SailPixelFormat default_pixel_format=SailPixelFormat::SAIL_PIXEL_FORMAT_BPP32_RGBA)
Ensures that the provided image is converted to a supported pixel format.
Definition: bitmap.cpp:41
void update_format_value(BlamTagField_Enum *format_field, SailPixelFormat pixel_format)
Definition: bitmap.cpp:65
BlamTagField * GetField(std::string field_id)
Locates a tag field with a specific ID.
Definition: BlamTag.cpp:784
int compute_mip_count(int width, int height)
Computes the number of mip levels in a complete chain for the given dimensions.
Definition: bitmap.cpp:252
std::string current_option
The ID of the currently selected option.
Definition: enum.h:83
int data_size
The size of the referenced data.
Definition: dataref.h:50
Class representing a tag enum field.
Definition: enum.h:80
void SaveToDisk(std::string _file_path)
Saves any modifications to the XML tag back to disk.
Definition: BlamTag.cpp:616
bimg::ImageContainer * build_mipped_rgba8_image(bx::AllocatorI *allocator, const bimg::ImageContainer &source, bool treat_as_srgb)
Produces a copy of an image with a complete mip chain attached, ready to be handed to bimg::imageEnco...
Definition: bitmap.cpp:371
Class representing a Plugin.
Definition: tags.h:93
std::map< bimg::TextureFormat::Enum, std::string > supported_pixel_formats_bimg
Definition: bitmap.cpp:25
Class representing an integer tag field.
Definition: int.h:33
BlamTagBlockEntry * CreateNewEntry()
Creates a new block entry based on the plugin's entry template.
Definition: BlamTagField_Block.cpp:99
Class representing a vector tag field.
Definition: vector.h:43
void * build_mip_chain_rgba8(const void *base_pixel_data, int base_width, int base_height, bool treat_as_srgb, int *out_chain_size)
Builds a complete RGBA8 mip chain from a base level.
Definition: bitmap.cpp:316
void * data_address
The address of the referenced data.
Definition: dataref.h:49
void downsample_mip_2x2(const uint8_t *source, int source_width, int source_height, uint8_t *destination, int destination_width, int destination_height, bool treat_as_srgb)
Generates the next mip level for an RGBA8 image by averaging 2x2 pixel blocks.
Definition: bitmap.cpp:183
bool SetBit(std::string flag_id, bool value)
Sets the value of a bitfield flag.
Definition: BlamTagField_Bitfield.cpp:194
#define GUERILLA_LIB_API
Definition: bitmap.h:8
void write_import_info(BlamTagField_Block *import_info, int64_t file_size, std::string file_path, std::string file_format, std::string source_pixel_format, std::string parsed_pixel_format)
Definition: bitmap.cpp:102
bimg::ImageContainer * encode_mipped_image(bx::AllocatorI *allocator, bimg::TextureFormat::Enum destination_format, bimg::Quality::Enum quality, const bimg::ImageContainer &source)
Encodes an image and every mip level it carries into a block-compressed format.
Definition: bitmap.cpp:514
BlamTag * CreateNewTag()
Creates a new tag using the plugin.
Definition: BlamPlugin.cpp:386
BlamPluginField * GetField(std::string id)
Attempts to locate a field with a given ID.
Definition: BlamPlugin.cpp:448
bool GetBitValue(std::string flag_id)
Retrieves the value of a bitfield flag.
Definition: BlamTagField_Bitfield.cpp:181
int64_t value
The value of the field, represented as a 32-bit integer.
Definition: int.h:38
int compute_mip_chain_size_rgba8(int base_width, int base_height)
Computes the total byte count required to hold a complete mip chain for an RGBA8 image of the given b...
Definition: bitmap.cpp:280