Function


mrnTextureInit

Initializes mrnTexture

Syntax

#include <mrn/Texture.h>
void mrnTextureInit( MrnTexture *texture_ptr );

Description

Initializes mrnTexture

See Also

MrnTexture

mrnTextureDrawObjects

Renders objects using the texture

Syntax

#include <mrn/Texture.h>
Gfx *mrnTextureDrawObjects( MrnTexture *texture_ptr,
                            MrnContext *context_ptr,
                            Gfx *gfx_ptr );

Description

Renders objects using the texture

mrnTextureGenerateGfx

Generates a gfx which sets the texture

Syntax

#include <mrn/Texture.h>
Gfx *mrnTextureGenerateGfx( MrnTexture *texture_ptr,
                            MrnContext *context_ptr,
                            Gfx *gfx_ptr );

Description

Generates a gfx which sets the texture

Structure



MrnTexture

#include <mrn/Texture.h>
typedef struct _MrnTexture
{
    struct _MrnTexture          *next_ptr;
    MrnObjectList               object_list;
                                /* A list of object that uses this Group,
                                    internally used for sorting.*/

    u16                         scale_s;
    u16                         scale_t;
    u16                         texel_size;
    u8                          mipmap;
    u8                          detail;
    u8                          filter;
    u8                          perspective_correction;
    u8                          yuv_color_convert;
    u8                          number_of_tiles;
    MrnTextureTile              tile_array[ MRN_TEXTURE_MAX_TILES ];
} MrnTexture;