0.3.1
Texture List

Files

file  mic3d.h
 

Data Structures

struct  picture
 Not yet documented. More...
 
struct  texture
 Not yet documented. More...
 
struct  palette
 Not yet documented. More...
 

Typedefs

typedef struct picture picture_t
 Not yet documented.
 
typedef struct texture texture_t
 Not yet documented.
 
typedef struct palette palette_t
 Not yet documented.
 

Functions

void tlist_set (const texture_t *textures, uint16_t count)
 Set the texture list of count.
 
const texture_ttlist_get (void)
 Get the current texture list.
 
void tlist_unset (void)
 Unset the current texture list.
 

Detailed Description


Data Structure Documentation

◆ picture

struct picture

Not yet documented.

Data Fields
const void * data Not yet documented.
uint16_t data_size Not yet documented.
uint16_t width Not yet documented.
uint16_t height Not yet documented.
uint16_t palette_index Not yet documented.

◆ texture

struct texture

Not yet documented.

Data Fields
vdp1_cmdt_color_t color Not yet documented.
uint16_t vram_index Not yet documented.
vdp1_cmdt_size_t size Not yet documented.

◆ palette

struct palette

Not yet documented.

Data Fields
vdp1_cmdt_cm_t color_mode Not yet documented.
const void * data Not yet documented.
uint16_t data_size Not yet documented.

Function Documentation

◆ tlist_set()

void tlist_set ( const texture_t textures,
uint16_t  count 
)

Set the texture list of count.

Set tlist_set before calling render_mesh_xform. This can be set per draw call.

Parameters
[in]textures
count
See also
render_mesh_xform

◆ tlist_get()

const texture_t * tlist_get ( void  )

Get the current texture list.

Returns
The current texture list. If no texture list is set (NULL), then NULL is returned.
See also
tlist_set
tlist_unset

◆ tlist_unset()

void tlist_unset ( void  )

Unset the current texture list.

If a texture list is unset and render_mesh_xform is called, undefined behavior will occur as the necessary fields of the command table will not be set.