Add OSScreen functions to coreinit

This commit is contained in:
shinyquagsire23 2016-07-24 14:03:22 -07:00
parent a3f9fb0564
commit 6f88094f1d
2 changed files with 60 additions and 0 deletions

50
include/coreinit/screen.h Normal file
View File

@ -0,0 +1,50 @@
#pragma once
#include <wut.h>
/**
* \defgroup coreinit_screen Screen
* \ingroup coreinit
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
void
OSScreenInit();
unsigned int
OSScreenGetBufferSizeEx(unsigned int bufferNum);
int
OSScreenSetBufferEx(unsigned int bufferNum, void * addr);
int
OSScreenClearBufferEx(unsigned int bufferNum,
unsigned int temp);
int
OSScreenFlipBuffersEx(unsigned int bufferNum);
int
OSScreenPutFontEx(unsigned int bufferNum,
unsigned int posX,
unsigned int posY,
const char * buffer);
void
OSScreenPutPixelEx(int bufferNum,
uint32_t posX,
uint32_t posY,
uint32_t colour);
int
OSScreenEnableEx(unsigned int bufferNum,
int enable);
#ifdef __cplusplus
}
#endif
/** @} */

View File

@ -203,6 +203,16 @@ EXPORT(OSInitRendezvous);
EXPORT(OSWaitRendezvous);
EXPORT(OSWaitRendezvousWithTimeout);
// coreinit/screen.h
EXPORT(OSScreenInit);
EXPORT(OSScreenGetBufferSizeEx);
EXPORT(OSScreenSetBufferEx);
EXPORT(OSScreenClearBufferEx);
EXPORT(OSScreenFlipBuffersEx);
EXPORT(OSScreenPutFontEx);
EXPORT(OSScreenPutPixelEx);
EXPORT(OSScreenEnableEx);
// coreinit/semaphore.h
EXPORT(OSInitSemaphore);
EXPORT(OSInitSemaphoreEx);