 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
86 ascii source_filename;
87 ascii source_file_format;
88 ascii source_pixel_format;
89 ascii parsed_pixel_format;
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.",
179 new Vector2Field(
"size",
"The resolution of the bitmap."),
180 new Int16Field(
"bytes per line",
"The amount of bytes needed for a single line/row of pixels for this bitmap."),
184 "The fields listed below refer to data from the originally imported file, and are not used by the engine directly."),
185 new Int64Field(
"source filesize",
"The file size of the original image, in bytes."),
186 new AsciiField(
"source filename",
"The file name (or file path) of the original image."),
187 new AsciiField(
"source file format",
"The format of the original image."),
188 new AsciiField(
"source pixel format",
"The original pixel format of the source image."),
189 new AsciiField(
"parsed pixel format",
"The pixel format of the interpreted image data during import."),
Class representing an int16 tag field.
Definition: int.h:59
BlamMap< std::string, BlamFontPackage * > font_map
Definition: fonts_new.cpp:18
BLAM Ogre::HlmsUnlitDatablock * CreateDefaultUnlitDatablockForPrimitives(std::string id)
Definition: materials.cpp:916
int resource_id
The resource ID of the bitmap.
Definition: render_stack.h:592
bool visible
Whether or not the object is visible.
Definition: render_stack.h:375
Namespace containing functions related to tag data.
Definition: bitmap.h:196
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
BLAM BlamMap< std::string, BlamFontPackage * > GetFontList()
Definition: fonts_new.cpp:652
int width
Definition: bgfx.cpp:19
ARPHIC PUBLIC LICENSE Ltd Yung Chi Taiwan All rights reserved except as specified below Everyone is permitted to copy and distribute verbatim copies of this license but changing it is forbidden Preamble The licenses for most software are designed to take away your freedom to share and change it By the ARPHIC PUBLIC LICENSE specifically permits and encourages you to use this provided that you give the recipients all the rights that we gave you and make sure they can get the modifications of this software Legal Terms Font means the TrueType fonts AR PL Mingti2L AR PL KaitiM AR PL KaitiM and the derivatives of those fonts created through any modification including modifying glyph
Definition: ARPHICPL.TXT:16
Class representing an ascii tag field.
Definition: ascii.h:18
BLAM void LoadAllFonts()
Definition: fonts_new.cpp:64
BLAM HRESULT DrawBitmapFromResource(int res_id, const char *res_type, D2D1_RECT_F area, int width, int height)
Draws a bitmap pulled from an application resource.
Definition: bitmap.cpp:6
Class representing a vector2 tag field.
Definition: vector.h:34
IMGUI_API bool InputText(const char *label, char *buf, size_t buf_size, ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=NULL, void *user_data=NULL)
Definition: imgui_widgets.cpp:3068
char resource_type_buffer[256]
Resource name buffer for ImGUI editor.
Definition: Bitmap.cpp:10
BLAM ID2D1DeviceContext * GetD2DRenderTarget()
Retrieves the Direct2D render target.
Definition: render_manage.cpp:598
Class representing a data reference, or dataref for short.
Definition: dataref.h:19
BitmapTagClass()
Definition: bitmap.h:97
@ Fonts
Directory used for game engine fonts. Defaults to ./maps/fonts/
bool resolve_glyph_character(std::string xml_glyph, char *character)
Identify the character of the font glyph from the XML attribute.
Definition: fonts.cpp:755
BLAM BlamFontPackage * GetFont(std::string id)
Definition: fonts_new.cpp:662
int16_t bytes_per_line
The amount of bytes needed for a single line/row of pixels for this bitmap.
Definition: bitmap.h:80
TAG_BLOCK(import_info, { int64_t source_filesize;ascii source_filename;ascii source_file_format;ascii source_pixel_format;ascii parsed_pixel_format;})
int glyph_attribute_test_int(bool *out_result, std::string glyph_name, std::string font_name, std::string attribute_name, rapidxml::xml_attribute<> *attribute)
Definition: fonts_new.cpp:22
std::vector< BlamTagClassField * > fields
A series of tag fields that store the layout of the tag.
Definition: tags.h:138
Typedef for a bitfield8 field, used in tag data definitions.
Definition: tags.h:275
BLAM BlamResult LoadFont(std::string font_name)
Definition: fonts_new.cpp:647
bitmap_filtering_mode filtering_mode_mag
Definition: bitmap.h:48
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:137
vector2 size
The resolution of the bitmap.
Definition: bitmap.h:79
BLAM void Cleanup()
Definition: fonts_new.cpp:672
ARPHIC PUBLIC LICENSE Ltd Yung Chi Taiwan All rights reserved except as specified below Everyone is permitted to copy and distribute verbatim copies of this license but changing it is forbidden Preamble The licenses for most software are designed to take away your freedom to share and change it By the ARPHIC PUBLIC LICENSE specifically permits and encourages you to use this provided that you give the recipients all the rights that we gave you and make sure they can get the modifications of this software Legal Terms Font means the TrueType fonts AR PL Mingti2L AR PL KaitiM AR PL KaitiM and the derivatives of those fonts created through any modification including modifying reordering converting format
Definition: ARPHICPL.TXT:16
std::string class_name_short
The short, 4-character name of the tag class.
Definition: tags.h:135
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:36
BLAM ID2D1Factory * GetD2DFactory()
Retrieves the Direct2D factory.
Definition: render_manage.cpp:603
int version
The tag class version. Should be incremented any time a tag class is modified whatsoever.
Definition: tags.h:136
float glyph_attribute_test_float(bool *out_result, std::string glyph_name, std::string font_name, std::string attribute_name, rapidxml::xml_attribute<> *attribute)
Definition: fonts_new.cpp:43
BLAM BlamResult LoadFontPackage(std::string file)
Definition: fonts_new.cpp:69
BLAM Ogre::HlmsUnlitDatablock * CreateDefaultUnlitDatablock(std::string id)
Definition: materials.cpp:905
bitmap_filtering_mode filtering_mode_mip
Definition: bitmap.h:49
std::string class_name_long
The longer class name. Typically shown alongside short name for user-friendliness.
Definition: tags.h:134
void ShowImPropertyEditor()
Shows a set of ImGUI properties associated with the object.
Definition: Bitmap.cpp:28
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 BlamTagData * GetTagData(std::string tag_path)
Retrieves information for a given tag.
Definition: tags.cpp:80
BLAM bitmap * GetBitmapTag(std::string tag_path)
Definition: bitmap.cpp:16
BLAM HRESULT CreateD2DBitmapFromResource(int res_id, const char *res_type, ID2D1Bitmap **bitmap_pointer)
Creates a Direct2D bitmap from an application resource.
Definition: wic.cpp:262
void Draw()
Draws the stack object.
Definition: Bitmap.cpp:13
#define IM_ARRAYSIZE(_ARR)
Definition: imgui.h:75
sock planetquake com All rights reserved Quake III Arena is a registered trademark of id Inc This level may be electronically distributed only at NO CHARGE to the recipient in its current MUST include this txt file
Definition: chiropteraDM.txt:95
D2D1_RECT_F area
The area of the object.
Definition: render_stack.h:369
data_reference pixel_data
The raw pixel data for the bitmap.
Definition: bitmap.h:78
#define BLAM
Definition: bitmap.h:20
bitfield8 flags
Definition: bitmap.h:50
float width
The width of the object.
Definition: render_stack.h:379
int height
Definition: bgfx.cpp:20
Structure representing a data reference.
Definition: tags.h:261
const char * resource_type
The resource type of the bitmap.
Definition: render_stack.h:593
int tag_size
The size of the tag's data. Used on loading/writing tag files.
Definition: tags.h:139
bitmap_filtering_mode
Definition: bitmap.h:23
void * address
The address pointing to the start of the tag's data.
Definition: tags.h:71
float height
The height of the object.
Definition: render_stack.h:380
BLAM std::string GetStringFromHResult(HRESULT hr)
Converts a result handle to a string.
Definition: errors.cpp:120
short int16_t
Definition: stdint.h:12
Class used to contain and access tag data.
Definition: tags.h:68
BLAM Ogre::TextureGpu * LoadTexture2D(std::string id, void *pixel_data, int width, int height, Ogre::PixelFormatGpu format, int bytes_per_line)
Definition: textures.cpp:117
bitmap_filtering_mode filtering_mode_min
Definition: bitmap.h:47
BLAM BlamResult LoadFontDirectory(std::string directory)
Definition: fonts_new.cpp:74
Class representing a tag block field, also sometimes referred to as a struct or reflexive in the modd...
Definition: block.h:21
BLAM bool FontExists(std::string id)
Definition: fonts_new.cpp:657
IMGUI_API bool InputInt(const char *label, int *v, int step=1, int step_fast=100, ImGuiInputTextFlags flags=0)
Definition: imgui_widgets.cpp:3031
Class representing a tag class.
Definition: tags.h:131
TAG_ENUM(format, { BF_RGBA8_UNORM, BF_UNUSED, })
The fields below contain the raw bitmap data.
#define FONTINFO_FILENAME
Definition: fonts.h:20
Class representing a bitfield8 tag field.
Definition: bitfield.h:33