Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
bitmap Struct Reference

#include <bitmap.h>

+ Collaboration diagram for bitmap:

Public Member Functions

 TAG_ENUM (format, { BF_RGBA8_UNORM, BF_UNUSED, })
 The fields below contain the raw bitmap data. More...
 
 TAG_BLOCK (import_info, { int64_t source_filesize;ascii source_filename;ascii source_file_format;ascii source_pixel_format;ascii parsed_pixel_format;})
 

Public Attributes

bitmap_filtering_mode filtering_mode_min
 
bitmap_filtering_mode filtering_mode_mag
 
bitmap_filtering_mode filtering_mode_mip
 
bitfield8 flags
 
data_reference pixel_data
 The raw pixel data for the bitmap. More...
 
vector2 size
 The resolution of the bitmap. More...
 
int16_t bytes_per_line
 The amount of bytes needed for a single line/row of pixels for this bitmap. More...
 

Member Function Documentation

◆ TAG_BLOCK()

bitmap::TAG_BLOCK ( import_info  ,
{ int64_t source_filesize;ascii source_filename;ascii source_file_format;ascii source_pixel_format;ascii parsed_pixel_format;}   
)

◆ TAG_ENUM()

bitmap::TAG_ENUM ( format  ,
{ BF_RGBA8_UNORM, BF_UNUSED, }   
)

The fields below contain the raw bitmap data.

It is updated when you reimport the bitmap.

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.

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. The pixel format of the bitmap data.

Member Data Documentation

◆ bytes_per_line

int16_t bitmap::bytes_per_line

The amount of bytes needed for a single line/row of pixels for this bitmap.

◆ filtering_mode_mag

bitmap_filtering_mode bitmap::filtering_mode_mag

◆ filtering_mode_min

bitmap_filtering_mode bitmap::filtering_mode_min

◆ filtering_mode_mip

bitmap_filtering_mode bitmap::filtering_mode_mip

◆ flags

bitfield8 bitmap::flags

◆ pixel_data

data_reference bitmap::pixel_data

The raw pixel data for the bitmap.

◆ size

vector2 bitmap::size

The resolution of the bitmap.


The documentation for this struct was generated from the following file: