SaturnRingLibrary 0.6
SGL wrapper
 
Loading...
Searching...
No Matches
SRL::VDP1::TextureMetadata Struct Reference

Detailed Description

Metadata for texture.

#include <srl_vdp1.hpp>

Public Member Functions

 TextureMetadata ()
 Construct a new Texture Metadata object.
 
 TextureMetadata (VDP1::Texture *texture, CRAM::TextureColorMode colorMode, uint32_t palette)
 Construct a new Texture Metadata object.
 
uint8_t * GetData ()
 Get texture image data.
 

Public Attributes

CRAM::TextureColorMode ColorMode
 Texture color mode.
 
uint16_t PaletteId
 Identifier of the palette (not used in RGB555)
 
VDP1::TextureTexture
 Pointer to texture.
 

Constructor & Destructor Documentation

◆ TextureMetadata()

SRL::VDP1::TextureMetadata::TextureMetadata ( VDP1::Texture * texture,
CRAM::TextureColorMode colorMode,
uint32_t palette )
inline

Construct a new Texture Metadata object.

Parameters
textureTexture info
colorModeTexture color mode
paletteId of the pallet (not used in RGB555 mode)

Member Function Documentation

◆ GetData()

uint8_t * SRL::VDP1::TextureMetadata::GetData ( )
inline

Get texture image data.

Returns
Pointer to image data