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

Go to the source code of this file.

Data Structures

union  color_t
 
struct  color_t.c16
 
struct  color_t.c16.color
 
struct  color_t.c32
 
struct  color_t.c32.color
 

Macros

#define COLOR_ERASE   0
 
#define COLOR_TINT   1
 

Typedefs

typedef void(* cmd_t) (uint8_t, uint8_t, uint8_t, uint8_t)
 

Functions

void draw_logo ()
 
void draw_cmd_mode (uint8_t, uint8_t, uint8_t, uint8_t)
 
void draw_cmd_color (uint8_t, uint8_t, uint8_t, uint8_t)
 
void draw_cmd_rect (uint8_t, uint8_t, uint8_t, uint8_t)
 
void draw_cmd_line (uint8_t, uint8_t, uint8_t, uint8_t)
 
void draw_queue_burn (uint8_t page)
 
void draw_queue_page (uint8_t page)
 
void draw_queue_push (uint8_t cmd, uint8_t a, uint8_t b, uint8_t c, uint8_t d)
 
cmd_t draw_queue_clojure (uint8_t cmd)
 
uint8_t geoclip_line (int32_t *, int32_t *, int32_t *, int32_t *)
 adjusts a line within the screen
 
uint8_t geoclip_rect (int32_t *, int32_t *, int32_t *, int32_t *)
 adjusts a rectangle within the screen
 
void text_library_install (lua_State *L)
 
void draw_library_install (lua_State *L)
 
void draw_callback_update (lua_State *L, int)
 
void keys_callback_update (lua_State *L, int)
 
void loop_callback_update (lua_State *L, int, uint8_t dt)
 
void runtime (lua_State *L)
 

Variables

uint8_t draw_mode
 
color_t draw_color
 

Data Structure Documentation

◆ color_t

union color_t

Definition at line 10 of file zeebo.h.

Data Fields
uint16_t arr[2]
struct color_t.c16 c16
struct color_t.c32 c32
uint16_t pixel
uint32_t pixel2

◆ color_t.c16

struct color_t.c16

Definition at line 14 of file zeebo.h.

Data Fields
struct color_t.c16.color color

◆ color_t.c16.color

struct color_t.c16.color

Definition at line 15 of file zeebo.h.

Data Fields
uint16_t a: 1
uint16_t b: 5
uint16_t g: 5
uint16_t r: 5

◆ color_t.c32

struct color_t.c32

Definition at line 22 of file zeebo.h.

Data Fields
struct color_t.c32.color color

◆ color_t.c32.color

struct color_t.c32.color

Definition at line 23 of file zeebo.h.

Data Fields
uint8_t a
uint8_t b
uint8_t g
uint8_t r

Macro Definition Documentation

◆ COLOR_ERASE

#define COLOR_ERASE   0

Definition at line 5 of file zeebo.h.

◆ COLOR_TINT

#define COLOR_TINT   1

Definition at line 6 of file zeebo.h.

Typedef Documentation

◆ cmd_t

typedef void(* cmd_t) (uint8_t, uint8_t, uint8_t, uint8_t)

Definition at line 8 of file zeebo.h.

Function Documentation

◆ draw_callback_update()

void draw_callback_update ( lua_State * L,
int callback )

Definition at line 98 of file draw.c.

◆ draw_cmd_color()

void draw_cmd_color ( uint8_t r,
uint8_t g,
uint8_t b,
uint8_t a )

Definition at line 10 of file draw_color.c.

◆ draw_cmd_line()

void draw_cmd_line ( uint8_t x1,
uint8_t y1,
uint8_t x2,
uint8_t y2 )

Definition at line 3 of file draw_line.c.

◆ draw_cmd_mode()

void draw_cmd_mode ( uint8_t drawmode,
uint8_t flushmode,
uint8_t change_mode,
uint8_t change_flush )

Definition at line 40 of file draw_color.c.

◆ draw_cmd_rect()

void draw_cmd_rect ( uint8_t x,
uint8_t y,
uint8_t w,
uint8_t h )

Definition at line 3 of file draw_rect.c.

◆ draw_library_install()

void draw_library_install ( lua_State * L)

Definition at line 104 of file draw.c.

Here is the call graph for this function:

◆ draw_logo()

void draw_logo ( )

Definition at line 12 of file draw_logo.c.

Here is the call graph for this function:

◆ draw_queue_burn()

void draw_queue_burn ( uint8_t page)

Definition at line 50 of file draw_queue.c.

Here is the call graph for this function:

◆ draw_queue_clojure()

cmd_t draw_queue_clojure ( uint8_t cmd)

Definition at line 19 of file draw_queue.c.

Here is the call graph for this function:

◆ draw_queue_page()

void draw_queue_page ( uint8_t page)

Definition at line 36 of file draw_queue.c.

◆ draw_queue_push()

void draw_queue_push ( uint8_t cmd,
uint8_t a,
uint8_t b,
uint8_t c,
uint8_t d )

Definition at line 25 of file draw_queue.c.

◆ geoclip_line()

uint8_t geoclip_line ( int32_t * x1,
int32_t * y1,
int32_t * x2,
int32_t * y2 )

adjusts a line within the screen

Todo
use cohen, liang-barsky, clipping de retA, cos, ou another method do clip drop line.
Parameters
[in,out]x1
[in,out]y1
[in,out]x2
[in,out]y2
Returns
fits on the screen

Definition at line 51 of file geoclip.c.

◆ geoclip_rect()

uint8_t geoclip_rect ( int32_t * posx,
int32_t * posy,
int32_t * width,
int32_t * height )

adjusts a rectangle within the screen

Parameters
[in,out]posx
[in,out]posy
[in,out]width
[in,out]height
Returns
fits on the screen

Definition at line 11 of file geoclip.c.

◆ keys_callback_update()

void keys_callback_update ( lua_State * L,
int callback )
  • 1 released
  • 0 pressing

Definition at line 31 of file keys.c.

Here is the call graph for this function:

◆ loop_callback_update()

void loop_callback_update ( lua_State * L,
int callback,
uint8_t dt )

Definition at line 3 of file loop.c.

◆ runtime()

void runtime ( lua_State * L)

Definition at line 29 of file runtime.c.

Here is the call graph for this function:

◆ text_library_install()

void text_library_install ( lua_State * L)

Definition at line 62 of file text.c.

Here is the call graph for this function:

Variable Documentation

◆ draw_color

color_t draw_color
extern

Definition at line 7 of file draw_color.c.

◆ draw_mode

uint8_t draw_mode
extern

Definition at line 8 of file draw_color.c.