Enumerations | Functions

rdp.h File Reference

Hardware Display Interface. More...

#include "display.h"
#include "graphics.h"

Go to the source code of this file.

Enumerations

enum  mirror_t { MIRROR_DISABLED, MIRROR_ENABLED }
 

Mirror settings for textures.

More...
enum  sync_t { SYNC_FULL, SYNC_PIPE, SYNC_LOAD, SYNC_TILE }
 

RDP sync operations.

More...
enum  flush_t { FLUSH_STRATEGY_NONE, FLUSH_STRATEGY_AUTOMATIC }
 

Caching strategy for loaded textures.

More...

Functions

void rdp_init (void)
 Initialize the RDP system.
void rdp_attach_display (display_context_t disp)
 Attach the RDP to a display context.
void rdp_detach_display (void)
 Detach the RDP from a display context.
void rdp_sync (sync_t sync)
 Perform a sync operation.
void rdp_set_clipping (uint32_t tx, uint32_t ty, uint32_t bx, uint32_t by)
 Set the hardware clipping boundary.
void rdp_set_default_clipping (void)
 Set the hardware clipping boundary to the entire screen.
void rdp_enable_primitive_fill (void)
 Enable display of 2D filled (untextured) rectangles.
void rdp_enable_texture_copy (void)
 Enable display of 2D sprites.
uint32_t rdp_load_texture (uint32_t texslot, uint32_t texloc, mirror_t mirror_enabled, sprite_t *sprite)
 Load a sprite into RDP TMEM.
uint32_t rdp_load_texture_stride (uint32_t texslot, uint32_t texloc, mirror_t mirror_enabled, sprite_t *sprite, int offset)
 Load part of a sprite into RDP TMEM.
void rdp_draw_textured_rectangle (uint32_t texslot, int tx, int ty, int bx, int by)
 Draw a textured rectangle.
void rdp_draw_textured_rectangle_scaled (uint32_t texslot, int tx, int ty, int bx, int by, double x_scale, double y_scale)
 Draw a textured rectangle with a scaled texture.
void rdp_draw_sprite (uint32_t texslot, int x, int y)
 Draw a texture to the screen as a sprite.
void rdp_draw_sprite_scaled (uint32_t texslot, int x, int y, double x_scale, double y_scale)
 Draw a texture to the screen as a scaled sprite.
void rdp_set_primitive_color (uint32_t color)
 Set the primitive draw color for subsequent filled primitive operations.
void rdp_draw_filled_rectangle (int tx, int ty, int bx, int by)
 Draw a filled rectangle.
void rdp_set_texture_flush (flush_t flush)
 Set the flush strategy for texture loads.
void rdp_close (void)
 Close the RDP system.

Detailed Description

Hardware Display Interface.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines