 |
Blamite Game Engine - blam!
00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
104 {1,
"haloman30",
"Initial implementation."},
105 {2,
"haloman30",
"Add test datarefs and tagrefs"},
106 {3,
"haloman30",
"Remove all test fields, actual initial implementation"},
107 {4,
"haloman30",
"Add multiple filtering enums for min, mag, mip, and allow bitmap filter mode to override material filter mode"},
108 {5,
"haloman30",
"Add support for RGBA8_UNORM pixel formats, move format_temp to import info block as parsed_pixel_format"},
117 "The texture filtering mode adjusts how the bitmap is displayed in-game. Below is a list of all filtering modes and their ideal use cases.\n"
121 "* Point - Minimal filtering mode that preserves sharp edges. Ideal for pixel art or other similar cases.\n"
123 "* Linear - Balanced filtering mode that will attempt to blend pixels together to avoid a pixelated appearance, with a minimal performance impact. Ideal for most situations.\n"
125 "* Anisotropic - Best filtering mode. Performs the poorest but gives the best possible image quality.\n"
127 "* None - No filtering is applied. Will often be identical to Point filtering."),
128 new Enum32Field(
"filtering mode (min)",
"The texture filtering mode for minification. See comment above for details.",
135 new Enum32Field(
"filtering mode (mag)",
"The texture filtering mode for magnification. See comment above for details.",
142 new Enum32Field(
"filtering mode (mip)",
"The texture filtering mode for mip-mapping. See comment above for details.",
151 "force mip filtering mode",
152 "force min filtering mode",
153 "force mag filtering mode",
156 "***************************************************************************************************************************\n"
160 "The fields below contain the raw bitmap data. It is updated when you reimport the bitmap.\n"
164 "Any changes you make below will be lost in the next import, and may even cause 'bad things' to happen - such as invalid textures or crashes.\n"
168 "If you wish to make any changes to a bitmap, you should simply re-import the image from its source. If the source image filehas been lost, consult the documentation for methods to export a bitmap tag back into a source image file.\n"
172 "***************************************************************************************************************************"),
173 new Enum32Field(
"format",
"The pixel format of the bitmap data.",
180 new Vector2Field(
"size",
"The resolution of the bitmap."),
181 new Int16Field(
"bytes per line",
"The amount of bytes needed for a single line/row of pixels for this bitmap."),
185 "The fields listed below refer to data from the originally imported file, and are not used by the engine directly."),
186 new Int64Field(
"source filesize",
"The file size of the original image, in bytes."),
187 new DataReferenceField(
"source filename",
"The file name (or file path) of the original image."),
189 new DataReferenceField(
"source pixel format",
"The original pixel format of the source image."),
190 new DataReferenceField(
"parsed pixel format",
"The pixel format of the interpreted image data during import."),
Class representing an int16 tag field.
Definition: int.h:59
Namespace containing functions related to tag data.
Definition: bitmap.h:197
Class representing a vector2 tag field.
Definition: vector.h:34
Class representing a data reference, or dataref for short.
Definition: dataref.h:19
BitmapTagClass()
Definition: bitmap.h:97
int16_t bytes_per_line
The amount of bytes needed for a single line/row of pixels for this bitmap.
Definition: bitmap.h:80
std::vector< BlamTagClassField * > fields
A series of tag fields that store the layout of the tag.
Definition: tags.h:200
Typedef for a bitfield8 field, used in tag data definitions.
Definition: tags.h:344
bitmap_filtering_mode filtering_mode_mag
Definition: bitmap.h:47
std::vector< BlamTagClassRevision > revisions
List of all tag class revisions. Does not get written to tags, but is included in plugin files.
Definition: tags.h:199
vector2 size
The resolution of the bitmap.
Definition: bitmap.h:79
std::string class_name_short
The short, 4-character name of the tag class.
Definition: tags.h:197
int version
The tag class version. Should be incremented any time a tag class is modified whatsoever.
Definition: tags.h:198
bitmap_filtering_mode filtering_mode_mip
Definition: bitmap.h:48
std::string class_name_long
The longer class name. Typically shown alongside short name for user-friendliness.
Definition: tags.h:196
long long int64_t
Definition: stdint.h:14
Class representing an int64 tag field.
Definition: int.h:33
unsigned int uint32_t
Definition: stdint.h:17
BLAM bitmap * GetBitmapTag(std::string tag_path)
Definition: bitmap.cpp:16
TAG_BLOCK(import_info, { int64_t source_filesize;data_reference source_filename;data_reference source_file_format;data_reference source_pixel_format;data_reference parsed_pixel_format;})
data_reference pixel_data
The raw pixel data for the bitmap.
Definition: bitmap.h:78
#define BLAM
Definition: bitmap.h:19
bitfield8 flags
Definition: bitmap.h:49
Structure representing a data reference.
Definition: tags.h:323
TAG_ENUM(format, { BF_RGBA8_UNORM, BF_RGB8_UNORM, BF_UNUSED, })
The fields below contain the raw bitmap data.
int tag_size
The size of the tag's data. Used on loading/writing tag files.
Definition: tags.h:201
bitmap_filtering_mode
Definition: bitmap.h:22
void * address
The address pointing to the start of the tag's data.
Definition: tags.h:130
short int16_t
Definition: stdint.h:12
Class used to contain and access tag data.
Definition: tags.h:124
bitmap_filtering_mode filtering_mode_min
Definition: bitmap.h:46
Class representing a tag block field, also sometimes referred to as a struct or reflexive in the modd...
Definition: block.h:19
Class representing a tag class.
Definition: tags.h:193
Class representing a bitfield8 tag field.
Definition: bitfield.h:33