Mario Kart 64
Loading...
Searching...
No Matches
Engine.h File Reference
#include "port/audio/HMAS.h"
Include dependency graph for Engine.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOAD_ASSET(path)
 
#define LOAD_ASSET_RAW(path)
 

Functions

void GameEngine_ProcessGfxCommands (Gfx *commands)
 
uint32_t GameEngine_GetSampleRate ()
 
uint32_t GameEngine_GetSamplesPerFrame ()
 
float GameEngine_GetAspectRatio ()
 
struct CtlEntryGameEngine_LoadBank (uint8_t bankId)
 
uint8_t GameEngine_IsBankLoaded (uint8_t bankId)
 
void GameEngine_UnloadBank (uint8_t bankId)
 
struct AudioSequenceDataGameEngine_LoadSequence (uint8_t seqId)
 
uint32_t GameEngine_GetSequenceCount ()
 
uint8_t GameEngine_IsSequenceLoaded (uint8_t seqId)
 
void GameEngine_UnloadSequence (uint8_t seqId)
 
float OTRGetAspectRatio (void)
 
float OTRGetDimensionFromLeftEdge (float v)
 
float OTRGetDimensionFromRightEdge (float v)
 
int16_t OTRGetRectDimensionFromLeftEdge (float v)
 
int16_t OTRGetRectDimensionFromRightEdge (float v)
 
uint32_t OTRGetGameRenderWidth (void)
 
uint32_t OTRGetGameRenderHeight (void)
 
uint32_t OTRGetGameViewportWidth ()
 
uint32_t OTRGetGameViewportHeight ()
 
uint32_t OTRCalculateCenterOfAreaFromRightEdge (int32_t center)
 
uint32_t OTRCalculateCenterOfAreaFromLeftEdge (int32_t center)
 
int32_t GameEngine_ResourceGetTexTypeByName (const char *name)
 

Macro Definition Documentation

◆ LOAD_ASSET

#define LOAD_ASSET ( path)
Value:
(path == NULL ? NULL \
: (GameEngine_OTRSigCheck((const char*) path) ? ResourceGetDataByName((const char*) path) : path))
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)

Function Documentation

◆ GameEngine_GetAspectRatio()

float GameEngine_GetAspectRatio ( )
Here is the call graph for this function:

◆ 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)
Here is the call graph for this function:

◆ GameEngine_IsSequenceLoaded()

uint8_t GameEngine_IsSequenceLoaded ( uint8_t seqId)
Here is the call graph for this function:

◆ GameEngine_LoadBank()

struct CtlEntry * GameEngine_LoadBank ( uint8_t bankId)
Here is the caller graph for this function:

◆ GameEngine_LoadSequence()

struct AudioSequenceData * GameEngine_LoadSequence ( uint8_t seqId)
Here is the caller graph for this function:

◆ GameEngine_ProcessGfxCommands()

void GameEngine_ProcessGfxCommands ( Gfx * commands)

◆ GameEngine_ResourceGetTexTypeByName()

int32_t GameEngine_ResourceGetTexTypeByName ( const char * name)
Here is the caller graph for this function:

◆ GameEngine_UnloadBank()

void GameEngine_UnloadBank ( uint8_t bankId)
Here is the caller graph for this function:

◆ GameEngine_UnloadSequence()

void GameEngine_UnloadSequence ( uint8_t seqId)
Here is the caller graph for this function:

◆ OTRCalculateCenterOfAreaFromLeftEdge()

uint32_t OTRCalculateCenterOfAreaFromLeftEdge ( int32_t center)
Here is the call graph for this function:

◆ 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)

Here is the call graph for this function:

◆ OTRGetAspectRatio()

float OTRGetAspectRatio ( void )

◆ OTRGetDimensionFromLeftEdge()

float OTRGetDimensionFromLeftEdge ( float v)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OTRGetDimensionFromRightEdge()

float OTRGetDimensionFromRightEdge ( float v)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OTRGetGameRenderHeight()

uint32_t OTRGetGameRenderHeight ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OTRGetGameRenderWidth()

uint32_t OTRGetGameRenderWidth ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OTRGetGameViewportHeight()

uint32_t OTRGetGameViewportHeight ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OTRGetGameViewportWidth()

uint32_t OTRGetGameViewportWidth ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OTRGetRectDimensionFromLeftEdge()

int16_t OTRGetRectDimensionFromLeftEdge ( float v)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ OTRGetRectDimensionFromRightEdge()

int16_t OTRGetRectDimensionFromRightEdge ( float v)
Here is the call graph for this function:
Here is the caller graph for this function: