OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
snes.h File Reference

OpenSNES common-case master header. More...

#include <snes/types.h>
#include <snes/registers.h>
#include <snes/console.h>
#include <snes/video.h>
#include <snes/sprite.h>
#include <snes/background.h>
#include <snes/input.h>
#include <snes/dma.h>
#include <snes/text.h>
#include <snes/interrupt.h>
#include <snes/system.h>
#include <snes/mode7.h>
#include <snes/hdma.h>
#include <snes/window.h>
#include <snes/colormath.h>
#include <snes/mosaic.h>
#include <snes/map.h>
#include <snes/debug.h>

Go to the source code of this file.

Macros

#define OPENSNES_VERSION_MAJOR   0
 OpenSNES major version.
#define OPENSNES_VERSION_MINOR   35
 OpenSNES minor version.
#define OPENSNES_VERSION_PATCH   0
 OpenSNES patch version.
#define OPENSNES_VERSION_STRING   "0.35.0"
 OpenSNES version string.

Detailed Description

OpenSNES common-case master header.

Pulls every module a typical project needs (console, video, sprite, background, input, dma, text, interrupt, system, mode7, hdma, window, colormath, mosaic, map, debug). Specialty modules are opt-in — include them separately when your project actually uses them, to keep compile times down and the dependency graph honest:

The Doxygen list at the bottom of this header repeats the same split for IDE / cross-reference tooling.

#include <snes.h>
int main(void) {
// Your game code here
while (1) {
}
}
int main(void)
Definition main.c:66
void consoleInit(void)
Initialize SNES hardware.
void WaitForVBlank(void)
Wait for next VBlank period.
OpenSNES common-case master header.
Author
OpenSNES Team

Macro Definition Documentation

◆ OPENSNES_VERSION_MAJOR

#define OPENSNES_VERSION_MAJOR   0

OpenSNES major version.

◆ OPENSNES_VERSION_MINOR

#define OPENSNES_VERSION_MINOR   35

OpenSNES minor version.

◆ OPENSNES_VERSION_PATCH

#define OPENSNES_VERSION_PATCH   0

OpenSNES patch version.

◆ OPENSNES_VERSION_STRING

#define OPENSNES_VERSION_STRING   "0.35.0"

OpenSNES version string.