37 lines
571 B
C
37 lines
571 B
C
#ifndef GFX_H
|
|
#define GFX_H
|
|
|
|
#include <3ds/types.h>
|
|
|
|
typedef enum
|
|
{
|
|
GFX_TOP = 0,
|
|
GFX_BOTTOM = 1
|
|
}gfxScreen_t;
|
|
|
|
typedef enum
|
|
{
|
|
GFX_LEFT = 0,
|
|
GFX_RIGHT = 1,
|
|
// GFX_BOTTOM = 0
|
|
}gfx3dSide_t;
|
|
|
|
//system stuff
|
|
void gfxInit();
|
|
void gfxExit();
|
|
|
|
//control stuff
|
|
void gfxSet3D(bool enable);
|
|
void gfxFlushBuffers();
|
|
void gfxSwapBuffers();
|
|
|
|
//helper stuff
|
|
u8* gfxGetFramebuffer(gfxScreen_t screen, gfx3dSide_t side, u16* width, u16* height);
|
|
|
|
//global variables
|
|
extern u8* gfxTopLeftFramebuffers[2];
|
|
extern u8* gfxSubFramebuffers[2];
|
|
extern u8* gfxBottomFramebuffers[2];
|
|
|
|
#endif
|