The SGADE Documentation

the SGADE The Socrates Gameboy Advance Development Engine

The SGADE is a development library for the Nintendo Gameboy Advance. It's free for all uses and is distributed without guarantees. For more information visit the SGADE page.


Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

SoDisplay.c File Reference

#include "SoDisplay.h"
#include "SoEffects.h"
#include "SoBkg.h"

Defines

#define DISPCNT_MODE_MASK
#define DISPCNT_MODE(n)
#define DISPCNT_BACKBUFFER
#define DISPCNT_H_BLANK_OAM
#define DISPCNT_OBJ_MAP_1D
#define DISPCNT_OBJ_MAP_2D
#define DISPCNT_FORCE_BLANK
#define DISPCNT_BG0_ENABLE
#define DISPCNT_BG1_ENABLE
#define DISPCNT_BG2_ENABLE
#define DISPCNT_BG3_ENABLE
#define DISPCNT_OBJ_ENABLE
#define DISPCNT_WIN0_ENABLE
#define DISPCNT_WIN1_ENABLE
#define DISPCNT_WINOBJ_ENABLE

Functions

void SoDisplayInitialize (void)
 Initializes the display.

u32 SoDisplayGetVCounter (void)
 Returns the current scanline count.

bool SoDisplayIsInVBlank (void)
 Tests whether we are in VBlank or not.

bool SoDisplayIsInHBlank (void)
 Tests whether we are in HBlank or not.

void SoDisplayWaitForVBlankStart (void)
 Waits until we are at the start of VBlank.

void SoDisplayWaitForVBlankEnd (void)
 Waits until we VBlank has ended.

void SoDisplaySetMode (u32 a_Mode)
 Sets the current video display mode (0..6).

u32 SoDisplayGetMode (void)
 Gets the current video display mode.

void SoDisplayEnable (u32 a_Enable)
 Enables or disables the display.


Variables

u16 SO_REG_DISP_MOSAIC_RW
 GBA display mosaic register backup, so we can both read and write;.


Detailed Description

Copyright (C) 2002 by the SGADE authors For conditions of distribution and use, see copyright notice in SoLicense.txt

Author:
Jaap Suter, Mark T. Price
Date:
April 3, 2003
See the SoDisplay module for more information.


Copyright 2002 by the SGADE authors. See SoLicense.h or Visit the SGADE page for more information.