about summary refs log tree commit diff
path: root/src/game/client/gc_render.h
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-06-12 12:09:34 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-06-12 12:09:34 +0000
commit3705064b109580103a3d13f44693503da9927281 (patch)
tree0de409d2c67e74866e2bbe0b53a3791c20dab80d /src/game/client/gc_render.h
parentf6c67c29cd10d41b877ee1319801edc01b625e72 (diff)
downloadzcatch-3705064b109580103a3d13f44693503da9927281.tar.gz
zcatch-3705064b109580103a3d13f44693503da9927281.zip
renamed .h to .hpp in game because they are c++ headers
Diffstat (limited to 'src/game/client/gc_render.h')
-rw-r--r--src/game/client/gc_render.h82
1 files changed, 0 insertions, 82 deletions
diff --git a/src/game/client/gc_render.h b/src/game/client/gc_render.h
deleted file mode 100644
index 508ab195..00000000
--- a/src/game/client/gc_render.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
-#ifndef GAME_CLIENT_RENDER_H
-#define GAME_CLIENT_RENDER_H
-
-#include "../g_vmath.h"
-#include "../g_mapitems.h"
-#include "gc_ui.h"
-
-struct TEE_RENDER_INFO
-{
-	TEE_RENDER_INFO()
-	{
-		texture = -1;
-		color_body = vec4(1,1,1,1);
-		color_feet = vec4(1,1,1,1);
-		size = 1.0f;
-		got_airjump = 1;
-	};
-	
-	int texture;
-	vec4 color_body;
-	vec4 color_feet;
-	float size;
-	int got_airjump;
-};
-
-// sprite renderings
-enum
-{
-	SPRITE_FLAG_FLIP_Y=1,
-	SPRITE_FLAG_FLIP_X=2,
-	
-	LAYERRENDERFLAG_OPAQUE=1,
-	LAYERRENDERFLAG_TRANSPARENT=2,
-	
-	TILERENDERFLAG_EXTEND=4,
-};
-
-typedef struct SPRITE;
-
-void select_sprite(SPRITE *spr, int flags=0, int sx=0, int sy=0);
-void select_sprite(int id, int flags=0, int sx=0, int sy=0);
-
-void draw_sprite(float x, float y, float size);
-
-// rects
-void draw_round_rect(float x, float y, float w, float h, float r);
-void draw_round_rect_ext(float x, float y, float w, float h, float r, int corners);
-void ui_draw_rect(const RECT *r, vec4 color, int corners, float rounding);
-
-// larger rendering methods
-void menu_render();
-void render_game();
-void render_world(float center_x, float center_y, float zoom);
-void render_loading(float percent);
-
-void render_damage_indicators();
-void render_particles();
-
-void render_tilemap_generate_skip();
-
-// object render methods (gc_render_obj.cpp)
-void render_tee(class ANIM_STATE *anim, TEE_RENDER_INFO *info, int emote, vec2 dir, vec2 pos);
-void render_flag(const struct NETOBJ_FLAG *prev, const struct NETOBJ_FLAG *current);
-void render_pickup(const struct NETOBJ_PICKUP *prev, const struct NETOBJ_PICKUP *current);
-void render_projectile(const struct NETOBJ_PROJECTILE *current, int itemid);
-void render_laser(const struct NETOBJ_LASER *current);
-void render_player(
-	const struct NETOBJ_PLAYER_CHARACTER *prev_char, const struct NETOBJ_PLAYER_CHARACTER *player_char,
-	const struct NETOBJ_PLAYER_INFO *prev_info, const struct NETOBJ_PLAYER_INFO *player_info);
-	
-// map render methods (gc_render_map.cpp)
-void render_eval_envelope(ENVPOINT *points, int num_points, int channels, float time, float *result);
-void render_quads(QUAD *quads, int num_quads, void (*eval)(float time_offset, int env, float *channels), int flags);
-void render_tilemap(TILE *tiles, int w, int h, float scale, vec4 color, int flags);
-
-// helpers
-void mapscreen_to_world(float center_x, float center_y, float parallax_x, float parallax_y,
-	float offset_x, float offset_y, float aspect, float zoom, float *points);
-
-
-#endif