SaturnRingLibrary 0.7
SGL wrapper
 
Loading...
Searching...
No Matches
SRL::VDP1::Texture Struct Reference

Detailed Description

VDP1 texture.

#include <srl_vdp1.hpp>

Inheritance diagram for SRL::VDP1::Texture:
SRL::SGL::SglType< Texture, TEXTURE >

Public Member Functions

 Texture ()
 Construct a new Texture object.
 
 Texture (const uint16_t width, const uint16_t height)
 Construct a new Texture object.
 
 Texture (const uint16_t width, const uint16_t height, const uint16_t address)
 Construct a new Texture object.
 
const TEXTURE * SglConstPtr () const
 Get pointer to SGL type.
 
TEXTURE * SglPtr ()
 Get pointer to SGL type.
 

Public Attributes

uint16_t Address
 Address of the texture.
 
uint16_t Height
 Texture height.
 
uint16_t Size
 Size of the texture for hardware.
 
uint16_t Width
 Texture width.
 

Constructor & Destructor Documentation

◆ Texture() [1/2]

SRL::VDP1::Texture::Texture ( const uint16_t width,
const uint16_t height )
inline

Construct a new Texture object.

Parameters
widthTexture width (must be divisible by 8)
heightTexture height

◆ Texture() [2/2]

SRL::VDP1::Texture::Texture ( const uint16_t width,
const uint16_t height,
const uint16_t address )
inline

Construct a new Texture object.

Parameters
widthTexture width (must be divisible by 8)
heightTexture height
addressTexture address

Member Function Documentation

◆ SglConstPtr()

const TEXTURE * SRL::SGL::SglType< Texture , TEXTURE >::SglConstPtr ( ) const
inlineinherited

Get pointer to SGL type.

Returns
Pointer to SGL type

◆ SglPtr()

TEXTURE * SRL::SGL::SglType< Texture , TEXTURE >::SglPtr ( )
inlineinherited

Get pointer to SGL type.

Returns
Pointer to SGL type

Member Data Documentation

◆ Size

uint16_t SRL::VDP1::Texture::Size

Size of the texture for hardware.

Note
Width is divided by 8