From 12472ef7f405f5e8eb620059cbf95926a458538a Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 6 Oct 2008 18:05:01 +0000 Subject: major update. continued on ban support. added demo recording (client and server side). added demo player. added demo menu. demos have some quirks and file size optimizations havn't been done yet. some interface tweaks --- docs/output/index/Functions2.html | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'docs/output/index/Functions2.html') diff --git a/docs/output/index/Functions2.html b/docs/output/index/Functions2.html index 34b8d01a..06926d83 100644 --- a/docs/output/index/Functions2.html +++ b/docs/output/index/Functions2.html @@ -11,13 +11,21 @@ if (browserType) {document.write("
");if (browserV -
Function 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
 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
I
 inp_clear_events, INPUT_EVENT
 inp_clear_key_states, INPUT_EVENT
 inp_get_event, INPUT_EVENT
 inp_key_code, INPUT_EVENT
 inp_key_down, INPUT_EVENT
 inp_key_name, INPUT_EVENT
 inp_key_pressed, INPUT_EVENT
 inp_key_presses, INPUT_EVENT
 inp_key_releases, INPUT_EVENT
 inp_key_state, INPUT_EVENT
 inp_key_was_pressed, INPUT_EVENT
 inp_mouse_doubleclick, INPUT_EVENT
 inp_mouse_relative, INPUT_EVENT
 inp_mouse_scroll, INPUT_EVENT
 inp_num_events, INPUT_EVENT
 insert_entity, Game World
 interserct_character, Game World
 io_close
 io_flush
 io_length
 io_open
 io_read
 io_seek
 io_skip
 io_stderr
 io_stdin
 io_stdout
 io_tell
 io_write
+
Function 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
 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_minimize
 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_screenshot_direct
 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
H
 huffman_compress
 huffman_decompress
 huffman_init
I
 inp_clear_events, INPUT_EVENT
 inp_clear_key_states, INPUT_EVENT
 inp_get_event, INPUT_EVENT
 inp_key_code, INPUT_EVENT
 inp_key_down, INPUT_EVENT
 inp_key_name, INPUT_EVENT
 inp_key_pressed, INPUT_EVENT
 inp_key_presses, INPUT_EVENT
 inp_key_releases, INPUT_EVENT
 inp_key_state, INPUT_EVENT
 inp_key_was_pressed, INPUT_EVENT
 inp_mouse_doubleclick, INPUT_EVENT
 inp_mouse_relative, INPUT_EVENT
 inp_mouse_scroll, INPUT_EVENT
 inp_num_events, INPUT_EVENT
 insert_entity, Game World
 interserct_character, Game World
M
 map_find_item
 map_get_data
 map_get_data_swapped
 map_get_item
 map_get_type
 map_is_loaded
 map_num_items
 map_unload_data
 modc_connected
 modc_console_init
 modc_entergame
 modc_init
 modc_message
 modc_net_version
 modc_newsnapshot
 modc_predict
 modc_rcon_line
 modc_render
 modc_save_config
 modc_shutdown
 modc_snap_input
 modc_statechange
 mods_client_direct_input
 mods_client_drop
 mods_client_enter
 mods_client_predicted_input
 mods_connected
 mods_console_init
 mods_init
 mods_message
 mods_net_version
 mods_postsnap
 mods_presnap
 mods_shutdown
 mods_snap
 mods_tick
 mods_version
 msg_pack_end
 msg_pack_int
 msg_pack_raw
 msg_pack_start
 msg_pack_string
 msg_unpack_error
 msg_unpack_int
 msg_unpack_raw
 msg_unpack_string
-
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.
+
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_minimize()
Minimizes the window.
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
void gfx_screenshot_direct(const char *filename)
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.
-
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)
TODO
int inp_key_pressed(int key)
Checks if a key is pressed.
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()
TODO
void inp_mouse_relative(int *x,
int *y)
Fetches the mouse movements.
int inp_mouse_scroll()
TODO
int inp_num_events()
TODO
void insert_entity(ENTITY *entity)
Adds an entity to the world.
Finds the closest character that intersects the line.
int io_close(IOHANDLE io)
Closes a file.
int io_flush(IOHANDLE io)
Empties all buffers and writes all pending data.
long int io_length(IOHANDLE io)
Gets the total length of the file.
IOHANDLE io_open(const char *filename,
int flags)
Opens a file.
unsigned io_read(IOHANDLE io,
void *buffer,
unsigned size)
Reads data into a buffer from a file.
int io_seek(IOHANDLE io,
int offset,
int origin)
Seeks to a specified offset in the file.
unsigned io_skip(IOHANDLE io,
unsigned size)
Skips data in a file.
IOHANDLE io_stderr()
Returns an IOHANDLE to the standard error.
IOHANDLE io_stdin()
Returns an IOHANDLE to the standard input.
IOHANDLE io_stdout()
Returns an IOHANDLE to the standard output.
long int io_tell(IOHANDLE io)
Gets the current position in the file.
unsigned io_write(IOHANDLE io,
const void *buffer,
unsigned size)
Writes data from a buffer to file.
+
int huffman_compress(HUFFMAN_STATE *huff,
const void *input,
int input_size,
void *output,
int output_size)
Compresses a buffer and outputs a compressed buffer.
int huffman_decompress(HUFFMAN_STATE *huff,
const void *input,
int input_size,
void *output,
int output_size)
Decompresses a buffer
void huffman_init(HUFFMAN_STATE *huff,
const unsigned *frequencies)
Inits the compressor/decompressor.
+ + + +
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)
TODO
int inp_key_pressed(int key)
Checks if a key is pressed.
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()
TODO
void inp_mouse_relative(int *x,
int *y)
Fetches the mouse movements.
int inp_mouse_scroll()
TODO
int inp_num_events()
TODO
void insert_entity(ENTITY *entity)
Adds an entity to the world.
Finds the closest character that intersects the line.
+ + + +
void *map_find_item(int type,
int id)
Searches the map for an item.
void *map_get_data(int index)
Fetches a pointer to a raw data chunk in the map.
void *map_get_data_swapped(int index)
TODO
void *map_get_item(int index,
int *type,
int *id)
Gets an item from the loaded map from index.
void map_get_type(int type,
int *start,
int *num)
Gets the index range of an item type.
int map_is_loaded()
Checks if a map is loaded.
int map_num_items()
Checks the number of items in the loaded map.
void map_unload_data(int index)
TODO
void modc_connected()
TODO
void modc_console_init()
TODO
void modc_entergame()
Called when the client has successfully connect to a server and loaded a map.
void modc_init()
Called when the client starts.
void modc_message(int msg)
TODO
const char *modc_net_version()
TODO
void modc_newsnapshot()
Called when the client progressed to a new snapshot.
void modc_predict()
TODO
void modc_rcon_line(const char *line)
TODO
void modc_render()
Called every frame to let the game render it self.
void modc_save_config()
TODO
void modc_shutdown()
Called when the client closes down.
int modc_snap_input(int *data)
TODO
void modc_statechange(int new_state,
int old_state)
Called every time client changes state.
void mods_client_direct_input(int cid,
void *input)
Called when the server recives new input from a client.
void mods_client_drop(int cid)
Called when a client drops from the server.
void mods_client_enter(int cid)
Called when a client has joined the game.
void mods_client_predicted_input(int cid,
void *input)
Called when the server applys the predicted input on the client.
void mods_connected(int client_id)
TODO
void mods_console_init()
TODO
void mods_init()
Called when the server is started.
void mods_message(int msg,
int client_id)
TODO
const char *mods_net_version()
TODO
void mods_postsnap()
Called after the server is done sending the snapshots.
void mods_presnap()
Called before the server starts to construct snapshots for the clients.
void mods_shutdown()
Called when the server quits.
void mods_snap(int cid)
Called to create the snapshot for a client.
void mods_tick()
Called with a regular interval to progress the gameplay.
const char *mods_version()
TODO
void msg_pack_end()
TODO
void msg_pack_int(int i)
TODO
void msg_pack_raw(const void *data,
int size)
TODO
void msg_pack_start(int msg,
int flags)
TODO
void msg_pack_string(const char *p,
int limit)
TODO
int msg_unpack_error()
TODO
int msg_unpack_int()
TODO
const unsigned char *msg_unpack_raw(int size)
TODO
const char *msg_unpack_string()
TODO
@@ -25,9 +33,9 @@ if (browserType) {document.write("
");if (browserV - -- cgit 1.4.1