Function


mrnViewInit

Initializes mrnView

Syntax

#include <mrn/View.h>
void mrnViewInit( MrnView *view_ptr )

Description

Initializes mrnView

mrnViewGenerateClearGfx

Generates a gfx which clears view

Syntax

#include <mrn/View.h>
Gfx *mrnViewGenerateClearGfx( MrnView *view_ptr,
                              MrnContext *context_ptr,
                              Gfx *gfx_ptr )

Description

Generates a gfx which clears view

mrnViewGenerateSetupGfx

Generates a gfx which sets the view

Syntax

#include <mrn/View.h>
Gfx *mrnViewGenerateSetupGfx( MrnView *view_ptr,
                              MrnContext *context_ptr,
                              Gfx *gfx_ptr )

Description

Generates a gfx which sets the view

mrnViewSetClearColor

Sets the background color when the view is cleared

Syntax

#include <mrn/View.h>
void mrnViewSetClearColor( MrnView *view_ptr, MvmColor4c color )

Description

Sets the background color when the view is cleared
When anti-aliasing is used, the alpha component is 255.

Structure



MrnView


#include <mrn/View.h>
typedef struct _MrnView
{
    u16                         color_depth;
    u16                         z_depth;
    u16                         is_clean;
    u16                         clear_flags;
    u32                         interlace;
    u32                         interlace_mode;
    u32                         clear_color;
    u32                         clear_depth;
    u32                         width;
    u32                         height;
    u32                         frame_buffer_segment;
    u32                         z_buffer_segment;
    MrnViewBufferAddress        frame_buffer_address;
    MrnViewBufferAddress        z_buffer_address;
    MrnViewBufferAddress        number_of_frame_buffers;
    MrnViewBufferAddress        current_field;
} MrnView;

typedef u32 ( *MrnViewBufferAddress )( struct _MrnView *view_ptr );