gfx/bytecode.h header reference
[Lightweight 2d graphic module]

The source code of this header can be browsed online.

Members  

Types  

Functions  

Macros  

Members detail  

#define GFX_BC_IS_GFX_OP(op)  

This macro is declared in gfx/bytecode.h source file, line 197.

This macro tests if the return status of bc_run is gfx opcode.

#define GFX_SURFACE(width, height, fmt)  

This macro is declared in gfx/bytecode.h source file, line 61.

This macro packs surface attributes as a 32 bits value for use in a bytecode programm.

#define GFX_TILEMAP(width, height, offset)  

This macro is declared in gfx/bytecode.h source file, line 66.

This macro packs tilemap attributes as a 32 bits value for use in a bytecode programm.

#define GFX_XY(x, y)  

This macro is declared in gfx/bytecode.h source file, line 46.

This macro packs 11 bits integer coordinates as a 32 bits value.

in: XXX XXXXXXXX
YYY YYYYYYYY
out: xxxxxyyy yyXXXYYY YYYYYYYY XXXXXXXX

#define GFX_XYF(x, y)  

This macro is declared in gfx/bytecode.h source file, line 56.

This macro packs Q11.5 fixed point coordinates as a 32 bits value for use in a bytecode programm.

in: XXXXXXXXXXXxxxxx
YYYYYYYYYYYyyyyy
out: xxxxxyyy yyXXXYYY YYYYYYYY XXXXXXXX

#define _GFX_BYTECODE_H_  

This macro is declared in gfx/bytecode.h source file, line 29.

typedef uint32_t gfx_2dvector_t  

This typedef is declared in gfx/bytecode.h source file, line 38.

struct gfx_bc_context_s  

This struct is declared in gfx/bytecode.h source file, line 178.

This struct contains the fours surfaces and the single tilemap available to the bytecode program.

FieldDescription
struct gfx_surface_s s[4];surface pool
struct gfx_tilemap_s tilemap;currently selected tilemap
gfx_pixel_t attr;current drawing attribute

void gfx_bc_init(struct gfx_bc_context_s *ctx)  

This function initializes a gfx bytecode context.

error_t gfx_bc_run(struct bc_context_s *vm, struct gfx_bc_context_s *ctx, uint16_t op)  

This function executes a single gfx bytecode operation.

typedef uint32_t gfx_bc_surface_desc_t  

This typedef is declared in gfx/bytecode.h source file, line 36.

typedef uint32_t gfx_bc_tilemap_desc_t  

This typedef is declared in gfx/bytecode.h source file, line 37.

This function is declared in gfx/bytecode.h source file, line 77.

in: xxxxxyyy yyXXXYYY YYYYYYYY XXXXXXXX
out: YYYYYYYY YYYyyyyy XXXXXXXX XXXxxxxx

This function is for internal use only.

This function is declared in gfx/bytecode.h source file, line 127.

in: xxxxxyyy yyXXXYYY YYYYYYYY XXXXXXXX
out: XXX XXXXXXXX xxxxx

This function is for internal use only.

This function is declared in gfx/bytecode.h source file, line 116.

in: xxxxxyyy yyXXXYYY YYYYYYYY XXXXXXXX
out: XXX XXXXXXXX

This function is for internal use only.

gfx_2dvector_t gfx_vector_xint2p(uint_fast16_t x)  

This function is declared in gfx/bytecode.h source file, line 138.

in: XXX XXXXXXXX
out: xxxxxyyy yyXXXYYY YYYYYYYY XXXXXXXX

This function is for internal use only.

This function is declared in gfx/bytecode.h source file, line 91.

in: YYYYYYYY YYYyyyyy XXXXXXXX XXXxxxxx
out: xxxxxyyy yyXXXYYY YYYYYYYY XXXXXXXX

This function is for internal use only.

gfx_2dvector_t gfx_vector_xy_2p(gfx_pos_t x, gfx_pos_t y)  

This function is declared in gfx/bytecode.h source file, line 104.

out: xxxxxyyy yyXXXYYY YYYYYYYY XXXXXXXX

This function is for internal use only.

This function is declared in gfx/bytecode.h source file, line 160.

in: xxxxxyyy yyXXXYYY YYYYYYYY XXXXXXXX
out: YYY YYYYYYYY yyyyy

This function is for internal use only.

This function is declared in gfx/bytecode.h source file, line 149.

in: xxxxxyyy yyXXXYYY YYYYYYYY XXXXXXXX
out: YYY YYYYYYYY

This function is for internal use only.

gfx_2dvector_t gfx_vector_yint2p(uint_fast16_t y)  

This function is declared in gfx/bytecode.h source file, line 171.

in: YYY YYYYYYYY
out: xxxxxyyy yyXXXYYY YYYYYYYY XXXXXXXX

This function is for internal use only.

Valid XHTML 1.0 StrictGenerated by diaxen on Wed Oct 17 21:18:38 2018 using MkDoc