console: Format tabs semi-intelligently
[attac-man.git] / include / render.h
blob22516aac14631255e4e4bd90fa45a4648e2a7f5e
1 /*
2 Pacman Arena
3 Copyright (C) 2003 Nuno Subtil
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 /* $Id: render.h,v 1.2 2003/11/22 17:32:10 nsubtil Exp $ */
22 #ifndef _RENDER_H
23 #define _RENDER_H
25 void render_object(struct object *o);
26 void render_object_colored_polygons(struct object *o);
27 void render_object_no_colored_polygons(struct object *o);
28 void render_object_color_tag(struct object *o, GLfloat color[4]);
29 void render_dlist(struct object *o, GLfloat *color);
30 void render_compile_dlist(struct object *o);
31 void render_start_frame(void);
32 void render_setup(struct game *game, int player_no);
33 void render_setup_plane_geometry(struct camera *camera, float size);
34 void render_draw_plane(GLfloat x, GLfloat y, GLfloat z, GLfloat alpha);
35 void render_draw_colored_plane(GLfloat x, GLfloat y, GLfloat z, GLfloat color[3], GLfloat alpha);
36 void render_finish_frame(void);
37 void render_draw_axes(float length);
38 void render_move_camera(struct camera *camera, float x, float y, float z);
39 void render_translate_camera(struct camera *camera, float x, float y, float z);
40 void render_point_camera(struct camera *camera, float x, float y, float z);
41 void render_reset_camera(struct camera *camera);
42 void render_reset_camera_dir(struct camera *camera);
43 void render_advance_camera(struct camera *camera, float x, float y, float z);
44 void render_camera_yaw(struct camera *camera, float angle);
45 void render_camera_roll(struct camera *camera, float angle);
46 void render_camera_pitch(struct camera *camera, float angle);
47 void render_camera_turn(struct camera *camera, float angle);
48 void render_setup_2d(struct viewport *vp);
49 void render_draw_scaled_image(char *image, int ul_x, int ul_y, int lr_x, int lr_y);
50 void render_setup_model_direction(int direction);
52 #endif