mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 17:21:52 +01:00
Merge pull request #15 from shinyquagsire23/coreinit-screen
Add OSScreen functions to coreinit
This commit is contained in:
commit
ca75c5b2c6
50
include/coreinit/screen.h
Normal file
50
include/coreinit/screen.h
Normal 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
|
||||
|
||||
/** @} */
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user