Loading...
Searching...
No Matches
console.h
Go to the documentation of this file.
1
44#ifndef OPENSNES_CONSOLE_H
45#define OPENSNES_CONSOLE_H
46
47#include <snes/types.h>
48
49/*============================================================================
50 * Initialization
51 *============================================================================*/
52
81void consoleInit(void);
82
92void consoleInitEx(u16 options);
93
94/*============================================================================
95 * Screen Control
96 *============================================================================*/
97
110void setScreenOn(void);
111
124void setScreenOff(void);
125
139void setBrightness(u8 brightness);
140
147
148/*============================================================================
149 * VBlank Synchronization
150 *============================================================================*/
151
179void WaitForVBlank(void);
180
187
188/*============================================================================
189 * Frame Counter
190 *============================================================================*/
191
206
213
214/*============================================================================
215 * System Information
216 *============================================================================*/
217
229u8 isPAL(void);
230
237
238/*============================================================================
239 * Random Number Generation
240 *============================================================================*/
241
253u16 rand(void);
254
265void srand(u16 seed);
266
267#endif /* OPENSNES_CONSOLE_H */
u8 getBrightness(void)
Get current brightness.
u8 isInVBlank(void)
Check if currently in VBlank.
u8 getRegion(void)
Get system region.
u8 isPAL(void)
Check if PAL system.
void setScreenOff(void)
Disable screen display (blank)
void setBrightness(u8 brightness)
Set screen brightness.
void consoleInitEx(u16 options)
Initialize console with options.
void resetFrameCount(void)
Reset frame counter.
u16 getFrameCount(void)
Get frame counter.
void consoleInit(void)
Initialize SNES hardware.
void WaitForVBlank(void)
Wait for next VBlank period.
void srand(u16 seed)
Seed random number generator.
void setScreenOn(void)
Enable screen display.
u16 rand(void)
Get random 16-bit number.
unsigned short u16
16-bit unsigned integer (0 to 65535)
Definition types.h:52
unsigned char u8
8-bit unsigned integer (0 to 255)
Definition types.h:46
OpenSNES Standard Types.