libdragon
Loading...
Searching...
No Matches
rdpq_sprite.h
Go to the documentation of this file.
1
12#ifndef LIBDRAGON_RDPQ_SPRITE_H
13#define LIBDRAGON_RDPQ_SPRITE_H
14
15#include <stdint.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
22typedef struct sprite_s sprite_t;
23typedef struct rdpq_texparms_s rdpq_texparms_t;
24typedef struct rdpq_blitparms_s rdpq_blitparms_t;
26
92int rdpq_sprite_upload(rdpq_tile_t tile, sprite_t *sprite, const rdpq_texparms_t *parms);
93
94
121void rdpq_sprite_blit(sprite_t *sprite, float x0, float y0, const rdpq_blitparms_t *parms);
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif
rdpq_tile_t
Tile descriptors.
Definition rdpq.h:249
int rdpq_sprite_upload(rdpq_tile_t tile, sprite_t *sprite, const rdpq_texparms_t *parms)
Upload a sprite to TMEM, making it ready for drawing.
Definition rdpq_sprite.c:126
void rdpq_sprite_blit(sprite_t *sprite, float x0, float y0, const rdpq_blitparms_t *parms)
Blit a sprite to the active framebuffer.
Definition rdpq_sprite.c:131
Blitting parameters for rdpq_tex_blit.
Definition rdpq_tex.h:302
Texture sampling parameters for rdpq_tex_upload.
Definition rdpq_tex.h:39
Sprite structure.
Definition sprite.h:40