Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
G
 Game Controller
 Game World
 gfx_blend_additive
 gfx_blend_none
 gfx_blend_normal
 gfx_clear
 gfx_clip_disable
 gfx_clip_enable
 gfx_get_video_modes
 gfx_getscreen
 gfx_lines_begin
 gfx_lines_draw
 gfx_lines_end
 gfx_load_png
 gfx_load_texture
 gfx_load_texture_raw
 gfx_mapscreen
 gfx_memory_usage
 gfx_quads_begin
 gfx_quads_draw
 gfx_quads_draw_freeform
 gfx_quads_drawTL
 gfx_quads_end
 gfx_quads_setrotation
 gfx_quads_setsubset
 gfx_quads_setsubset_free
 gfx_quads_text
 gfx_screenaspect
 gfx_screenheight
 gfx_screenshot
 gfx_screenwidth
 gfx_setcolor
 gfx_setcolorvertex
 gfx_text
 gfx_text_color
 gfx_text_set_default_font
 gfx_text_width
 gfx_texture_set
 gfx_unload_texture
 Graphics
H
 height, IMAGE_INFO
Controls the main game logic.
Tracks all entities in the game.
void gfx_blend_additive()
Set the active blending mode to additive (src, one).
void gfx_blend_none()
Disables blending
void gfx_blend_normal()
Set the active blending mode to normal (src, 1-src).
void gfx_clear(float r,
float g,
float b)
Clears the screen with the specified color.
void gfx_clip_disable()
TODO
void gfx_clip_enable(int x,
int y,
int w,
int h)
TODO
int gfx_get_video_modes(VIDEO_MODE *list,
int maxcount)
Fetches a list of all the available video modes.
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()
TODO
int gfx_load_png(IMAGE_INFO *img,
const char *filename)
Loads a PNG image from disk.
int gfx_load_texture(const char *filename,
int store_format,
int flags)
Loads a texture from a file.
int gfx_load_texture_raw(int w,
int h,
int format,
const void *data,
int store_format,
int flags)
Loads a texture from memory.
void gfx_mapscreen(float tl_x,
float tl_y,
float br_x,
float br_y)
Specifies the coordinate system for the screen.
int gfx_memory_usage()
TODO
void gfx_quads_begin()
Begins a quad drawing session.
void gfx_quads_draw(float x,
float y,
float w,
float h)
Draws a quad by specifying the center point.
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 corner points.
void gfx_quads_drawTL(float x,
float y,
float width,
float height)
Draws a quad by specifying the top-left point.
void gfx_quads_end()
Ends a quad session.
void gfx_quads_setrotation(float angle)
Sets the rotation to use when drawing a quad.
void gfx_quads_setsubset(float tl_u,
float tl_v,
float br_u,
float br_v)
Sets the uv coordinates to use.
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)
TODO
float gfx_screenaspect()
Returns the aspect ratio between width and height.
int gfx_screenheight()
Returns the screen height.
void gfx_screenshot()
TODO
int gfx_screenwidth()
Returns the screen width.
void gfx_setcolor(float r,
float g,
float b,
float a)
Sets the color of all the vertices.
void gfx_setcolorvertex(int i,
float r,
float g,
float b,
float a)
Sets the color of a vertex.
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)
TODO
void gfx_texture_set(int id)
Sets the active texture.
int gfx_unload_texture(int id)
Unloads a texture.
int height
Contains the height of the image
Close