Core Native GBA 0.0.7
create your own game-engine with just lua for nitendo game boy advance console.
Loading...
Searching...
No Matches
core_native_gba.h File Reference
#include "lua/lua.h"
#include "lua/lualib.h"
#include "lua/lauxlib.h"
Include dependency graph for core_native_gba.h:
This graph shows which files directly or indirectly include this file:

Data Structures

union  color_u
 
struct  color_u.c
 

Macros

#define COLOR_ERASE   0
 
#define COLOR_TINT   1
 

Functions

void native_draw_install (lua_State *L)
 
void native_draw_update_queue (lua_State *L, uint8_t page)
 
void native_draw_update_flush (uint8_t flushmode, uint8_t page)
 
void native_loop_update (lua_State *L, uint8_t dt)
 
void native_pad_update (lua_State *L)
 

Variables

union color_u color_tint
 
union color_u color_erase
 
union color_u color_current
 
uint16_t draw_index_erase
 
uint16_t draw_index_push
 
uint8_t draw_queue [8192]
 

Data Structure Documentation

◆ color_u

union color_u
Data Fields
uint16_t arr[2]
struct color_u.c c
uint16_t pixel
uint32_t pixel2

◆ color_u.c

struct color_u.c
Data Fields
uint8_t a
uint8_t b
uint8_t g
uint8_t r

Macro Definition Documentation

◆ COLOR_ERASE

#define COLOR_ERASE   0

◆ COLOR_TINT

#define COLOR_TINT   1

Function Documentation

◆ native_draw_install()

void native_draw_install ( lua_State * L)
Here is the call graph for this function:

◆ native_draw_update_flush()

void native_draw_update_flush ( uint8_t flushmode,
uint8_t page )
  • 0: clear page 1
  • 1: color page 1
  • 2: clear page 2
  • 3: color page 2
  • 4: erase page 1
  • 5: erase page 2
Here is the call graph for this function:

◆ native_draw_update_queue()

void native_draw_update_queue ( lua_State * L,
uint8_t page )

◆ native_loop_update()

void native_loop_update ( lua_State * L,
uint8_t dt )

◆ native_pad_update()

void native_pad_update ( lua_State * L)
  • 1 released
  • 0 pressing
Here is the call graph for this function:

Variable Documentation

◆ color_current

union color_u color_current
extern

◆ color_erase

union color_u color_erase
extern

◆ color_tint

union color_u color_tint
extern

◆ draw_index_erase

uint16_t draw_index_erase
extern

◆ draw_index_push

uint16_t draw_index_push
extern

◆ draw_queue

uint8_t draw_queue[8192]
extern