Add gfxGetScreenFormat().
This commit is contained in:
parent
6aa30b4c3e
commit
edf2c1c139
@ -25,6 +25,7 @@ void gfxExit();
|
|||||||
//control stuff
|
//control stuff
|
||||||
void gfxSet3D(bool enable);
|
void gfxSet3D(bool enable);
|
||||||
void gfxSetScreenFormat(gfxScreen_t screen, GSP_FramebufferFormats format);
|
void gfxSetScreenFormat(gfxScreen_t screen, GSP_FramebufferFormats format);
|
||||||
|
GSP_FramebufferFormats gfxGetScreenFormat(gfxScreen_t screen);
|
||||||
void gfxSetDoubleBuffering(gfxScreen_t screen, bool doubleBuffering);
|
void gfxSetDoubleBuffering(gfxScreen_t screen, bool doubleBuffering);
|
||||||
void gfxFlushBuffers();
|
void gfxFlushBuffers();
|
||||||
void gfxSwapBuffers();
|
void gfxSwapBuffers();
|
||||||
|
@ -36,6 +36,13 @@ void gfxSetScreenFormat(gfxScreen_t screen, GSP_FramebufferFormats format) {
|
|||||||
botFormat = format;
|
botFormat = format;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GSP_FramebufferFormats gfxGetScreenFormat(gfxScreen_t screen) {
|
||||||
|
if(screen==GFX_TOP)
|
||||||
|
return topFormat;
|
||||||
|
else
|
||||||
|
return botFormat;
|
||||||
|
}
|
||||||
|
|
||||||
void gfxSetDoubleBuffering( gfxScreen_t screen, bool doubleBuffering) {
|
void gfxSetDoubleBuffering( gfxScreen_t screen, bool doubleBuffering) {
|
||||||
doubleBuf[screen] = doubleBuffering ? 1 : 0; // make sure they're the integer values '1' and '0'
|
doubleBuf[screen] = doubleBuffering ? 1 : 0; // make sure they're the integer values '1' and '0'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user