SaturnRingLibrary 0.9
SGL wrapper
 
Loading...
Searching...
No Matches

◆ Attribute() [3/3]

SRL::Types::Attribute::Attribute ( const FaceVisibility visibility,
const SortMode sort,
const uint16_t texture,
const uint16_t color,
const uint16_t gouraudRamOffset,
const CRAM::TextureColorMode colorMode,
const DisplayMode mode,
const DisplayType type,
const DisplayOption option )
inline

Construct a new custom quad attribute.

Parameters
visibilityIndicates whether to cull quads facing away from camera
sortIndicates sorting option for the drawing of the quad
textureTexture index or 0 for no texture
colorQuad color (Not in use if quad is textured), or texture palette index
gouraudRamOffsetRelative address to the first entry from which to write light gouraud data in SRL::VDP1::GetGouraudTable(). Using 0 here would mean first entry, 2 is second entry in the table, where each entry is 4 color long.
colorModeColor mode of the quad (RGB555, 256, 128, 64, 16 colors)
modeDisplay mode of the quad
typeDisplay type of the quad
optionDisplay options