wut  v1.5.0
Wii U Toolchain
screen.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
44 typedef enum OSScreenID
45 {
47  SCREEN_TV = 0,
51 
62 void
64 
72 void
74 
85 uint32_t
87 
104 void
106  void *addr);
107 
131 void
133  uint32_t colour);
134 
146 void
148 
177 void
179  uint32_t row,
180  uint32_t column,
181  const char *buffer);
182 
209 void
211  uint32_t x,
212  uint32_t y,
213  uint32_t colour);
214 
224 void
226  BOOL enable);
227 
228 #ifdef __cplusplus
229 }
230 #endif
231 
void OSScreenFlipBuffersEx(OSScreenID screen)
Swap the buffers of the given screen.
void OSScreenEnableEx(OSScreenID screen, BOOL enable)
Enables or disables a given screen.
void OSScreenShutdown()
Cleans up and shuts down the OSScreen library.
uint32_t OSScreenGetBufferSizeEx(OSScreenID screen)
Gets the amount of memory required to fit both buffers of a given screen.
OSScreenID
Defines the ID of a display usable with OSScreen.
Definition: screen.h:45
void OSScreenPutPixelEx(OSScreenID screen, uint32_t x, uint32_t y, uint32_t colour)
Draws a single pixel at the given position.
void OSScreenClearBufferEx(OSScreenID screen, uint32_t colour)
Clear the work buffer of the given screen by setting all of its pixels to a given colour.
void OSScreenInit()
Initialises the OSScreen library for use.
void OSScreenPutFontEx(OSScreenID screen, uint32_t row, uint32_t column, const char *buffer)
Draws text at the given position.
void OSScreenSetBufferEx(OSScreenID screen, void *addr)
Sets the memory location for both buffers of a given screen.
@ SCREEN_TV
Represents the TV connected to the system.
Definition: screen.h:47
@ SCREEN_DRC
Represents the screen in the DRC (gamepad).
Definition: screen.h:49
int32_t BOOL
Definition: wut_types.h:7