Merge pull request #15 from shinyquagsire23/coreinit-screen

Add OSScreen functions to coreinit
This commit is contained in:
James 2016-07-24 22:09:06 +01:00 committed by GitHub
commit ca75c5b2c6
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);