Set the active blending mode to additive (src, one).
void gfx_blend_additive()
Disables blending
void gfx_blend_none()
Set the active blending mode to normal (src, 1-src).
void gfx_blend_normal()
Clears the screen with the specified color.
void gfx_clear( float r, float g, float b )
TODO
void gfx_clip_disable()
TODO
void gfx_clip_enable( int x, int y, int w, int h )
Fetches a list of all the available video modes.
int gfx_get_video_modes( VIDEO_MODE * list, int maxcount )
TODO
void gfx_getscreen( float * tl_x, float * tl_y, float * br_x, float * br_y )
TODO
void gfx_lines_begin()
TODO
void gfx_lines_draw( float x0, float y0, float x1, float y1 )
TODO
void gfx_lines_end()
Loads a PNG image from disk.
int gfx_load_png( IMAGE_INFO * img, const char * filename )
Loads a texture from a file.
int gfx_load_texture( const char * filename, int store_format, int flags )
Loads a texture from memory.
int gfx_load_texture_raw( int w, int h, int format, const void * data, int store_format, int flags )
Specifies the coordinate system for the screen.
void gfx_mapscreen( float tl_x, float tl_y, float br_x, float br_y )
TODO
int gfx_memory_usage()
Begins a quad drawing session.
void gfx_quads_begin()
Draws a quad by specifying the center point.
void gfx_quads_draw( float x, float y, float w, float h )
Draws a quad by specifying the corner points.
void gfx_quads_draw_freeform( float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3 )
Draws a quad by specifying the top-left point.
void gfx_quads_drawTL( float x, float y, float width, float height )
Ends a quad session.
void gfx_quads_end()
Sets the rotation to use when drawing a quad.
void gfx_quads_setrotation( float angle )
Sets the uv coordinates to use.
void gfx_quads_setsubset( float tl_u, float tl_v, float br_u, float br_v )
TODO
void gfx_quads_setsubset_free( float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3 )
TODO
void gfx_quads_text( float x, float y, float size, const char * text )
Returns the aspect ratio between width and height.
float gfx_screenaspect()
Returns the screen height.
int gfx_screenheight()
TODO
void gfx_screenshot()
Returns the screen width.
int gfx_screenwidth()
Sets the color of all the vertices.
void gfx_setcolor( float r, float g, float b, float a )
Sets the color of a vertex.
void gfx_setcolorvertex( int i, float r, float g, float b, float a )
TODO
void gfx_text( void * font, float x, float y, float size, const char * text, int max_width )
TODO
void gfx_text_color( float r, float g, float b, float a )
TODO
void gfx_text_set_default_font( void * font )
TODO
float gfx_text_width( void * font, float size, const char * text, int length )
Sets the active texture.
void gfx_texture_set( int id )
Unloads a texture.
int gfx_unload_texture( int id )
TODO
void inp_clear_events()
TODO
void inp_clear_key_states()
TODO
INPUT_EVENT inp_get_event( int index )
TODO
int inp_key_code( const char * key_name )
TODO
int inp_key_down( int key )
TODO
const char *inp_key_name( int k )
Checks if a key is pressed.
int inp_key_pressed( int key )
TODO
int inp_key_presses( int key )
TODO
int inp_key_releases( int key )
TODO
int inp_key_state( int key )
TODO
int inp_key_was_pressed( int key )
TODO
int inp_mouse_doubleclick()
Fetches the mouse movements.
void inp_mouse_relative( int * x, int * y )
TODO
int inp_mouse_scroll()
TODO
int inp_num_events()
Adds an entity to the world.
void insert_entity( ENTITY * entity )
Closes a file.
int io_close( IOHANDLE io )
Empties all buffers and writes all pending data.
int io_flush( IOHANDLE io )
Gets the total length of the file.
long int io_length( IOHANDLE io )
Opens a file.
IOHANDLE io_open( const char * filename, int flags )
Reads data into a buffer from a file.
unsigned io_read( IOHANDLE io, void * buffer, unsigned size )
Seeks to a specified offset in the file.
int io_seek( IOHANDLE io, int offset, int origin )
Skips data in a file.
unsigned io_skip( IOHANDLE io, unsigned size )
Returns an IOHANDLE to the standard error.
IOHANDLE io_stderr()
Returns an IOHANDLE to the standard input.
IOHANDLE io_stdin()
Returns an IOHANDLE to the standard output.
IOHANDLE io_stdout()
Gets the current position in the file.
long int io_tell( IOHANDLE io )
Writes data from a buffer to file.
unsigned io_write( IOHANDLE io, const void * buffer, unsigned size )