Go to the source code of this file.
◆ LOAD_ASSET
#define LOAD_ASSET |
( |
| path | ) |
|
Value:
bool GameEngine_OTRSigCheck(const char *data)
Definition Engine.cpp:717
#define NULL
Definition miniaudio.h:3851
◆ LOAD_ASSET_RAW
#define LOAD_ASSET_RAW |
( |
| path | ) |
|
Value:ResourceGetDataByName((const char*) path)
◆ GameEngine_GetAspectRatio()
float GameEngine_GetAspectRatio |
( |
| ) |
|
◆ GameEngine_GetSampleRate()
uint32_t GameEngine_GetSampleRate |
( |
| ) |
|
◆ GameEngine_GetSamplesPerFrame()
uint32_t GameEngine_GetSamplesPerFrame |
( |
| ) |
|
◆ GameEngine_GetSequenceCount()
uint32_t GameEngine_GetSequenceCount |
( |
| ) |
|
◆ GameEngine_IsBankLoaded()
uint8_t GameEngine_IsBankLoaded |
( |
uint8_t | bankId | ) |
|
◆ GameEngine_IsSequenceLoaded()
uint8_t GameEngine_IsSequenceLoaded |
( |
uint8_t | seqId | ) |
|
◆ GameEngine_LoadBank()
struct CtlEntry * GameEngine_LoadBank |
( |
uint8_t | bankId | ) |
|
◆ GameEngine_LoadSequence()
◆ GameEngine_ProcessGfxCommands()
void GameEngine_ProcessGfxCommands |
( |
Gfx * | commands | ) |
|
◆ GameEngine_ResourceGetTexTypeByName()
int32_t GameEngine_ResourceGetTexTypeByName |
( |
const char * | name | ) |
|
◆ GameEngine_UnloadBank()
void GameEngine_UnloadBank |
( |
uint8_t | bankId | ) |
|
◆ GameEngine_UnloadSequence()
void GameEngine_UnloadSequence |
( |
uint8_t | seqId | ) |
|
◆ OTRCalculateCenterOfAreaFromLeftEdge()
uint32_t OTRCalculateCenterOfAreaFromLeftEdge |
( |
int32_t | center | ) |
|
◆ OTRCalculateCenterOfAreaFromRightEdge()
uint32_t OTRCalculateCenterOfAreaFromRightEdge |
( |
int32_t | center | ) |
|
Centers an item in a given area.
Adds the number of extended screen pixels to the location to center. This allows stretching the game window really wide, and the item will stay in-place.
This is not for centering in the direct center of the screen.
How to use:
s32 center = OTRCalculateCenterOfAreaFromRightEdge((SCREEN_WIDTH / 4) + (SCREEN_WIDTH / 2)); x = center - (texWidth / 2) x2 = center + (texWidth / 2)
◆ OTRGetAspectRatio()
float OTRGetAspectRatio |
( |
void | | ) |
|
◆ OTRGetDimensionFromLeftEdge()
float OTRGetDimensionFromLeftEdge |
( |
float | v | ) |
|
◆ OTRGetDimensionFromRightEdge()
float OTRGetDimensionFromRightEdge |
( |
float | v | ) |
|
◆ OTRGetGameRenderHeight()
uint32_t OTRGetGameRenderHeight |
( |
void | | ) |
|
◆ OTRGetGameRenderWidth()
uint32_t OTRGetGameRenderWidth |
( |
void | | ) |
|
◆ OTRGetGameViewportHeight()
uint32_t OTRGetGameViewportHeight |
( |
| ) |
|
◆ OTRGetGameViewportWidth()
uint32_t OTRGetGameViewportWidth |
( |
| ) |
|
◆ OTRGetRectDimensionFromLeftEdge()
int16_t OTRGetRectDimensionFromLeftEdge |
( |
float | v | ) |
|
◆ OTRGetRectDimensionFromRightEdge()
int16_t OTRGetRectDimensionFromRightEdge |
( |
float | v | ) |
|