8 #ifndef __diguyViewPainter_H
9 #define __diguyViewPainter_H
14 #define CPLUSPLUS_ONLY
59 virtual void set_line_width(
float width);
68 virtual void set_pen_color(
float red,
float green,
float blue,
float alpha = 1.0f);
76 virtual void set_pen2_color(
float red,
float green,
float blue,
float alpha = 1.0f);
84 virtual void set_brush_color(
float red,
float green,
float blue,
float alpha = 1.0f);
99 virtual void get_viewport_size(
float* width,
float* height);
113 virtual void world_to_screen(
float world_x,
float world_y,
float world_z,
114 float* view_x,
float* view_y,
float* view_z);
138 virtual void draw_line(
float x1,
float y1,
float z1,
139 float x2,
float y2,
float z2);
148 virtual void draw_line_2c(
float x1,
float y1,
float z1,
149 float x2,
float y2,
float z2);
156 virtual void draw_sphere(
float x,
float y,
float z,
167 virtual void draw_box(
float x1,
float y1,
float z1,
168 float x2,
float y2,
float z2,
181 virtual void draw_rotated_box(
float x1,
float y1,
float z1,
182 float x2,
float y2,
float z2,
183 float yaw,
float roll,
float pitch,
184 float xc,
float yc,
float zc,
193 virtual void draw_arrow(
float x1,
float y1,
float z1,
194 float x2,
float y2,
float z2,
195 float shaft_width = 0.02,
196 float arrow_width = 0.05,
205 virtual void draw_disc(
float x,
float y,
float z,
217 virtual void draw_circle(
float x,
float y,
float z,
218 float normal_x,
float normal_y,
float normal_z,
230 virtual void draw_torus(
float x,
float y,
float z,
243 virtual void draw_cylinder(
float x,
float y,
float z,
255 virtual void draw_wedge(
float x,
float y,
float z,
256 float target_x,
float target_y,
float target_z,
262 virtual void draw_wedge_with_normal(
float x,
float y,
float z,
263 float target_x,
float target_y,
float target_z,
264 float nx,
float ny,
float nz,
294 virtual void begin_2d_mode();
301 virtual void begin_2d_text_mode();
312 virtual void end_2d_text_mode();
324 virtual void draw_text(
float screen_x,
float screen_y,
const char* text);
337 virtual void draw_2d_rect(
float x0,
346 virtual void draw_buffered_data();
349 virtual void draw_private_path_shape(
diguyCharacter* diguy_character,
350 int include_waypoints = 0);
352 virtual void debug_pa_add_2d_point(
const char * name,
float x,
float y );
353 virtual void debug_pa_add_3d_point(
const char * name,
float x,
float y,
float z );
354 virtual void debug_pa_set_param_color(
const char * name,
float r,
float g,
float b,
float a = 1.0f );
355 virtual void debug_pa_set_param_style(
const char * name,
const char * param,
int value );
358 virtual void debug_pa_reset(
const char * name);
360 virtual void draw_point_arrays();
362 #ifdef CPLUSPLUS_ONLY
365 int vertex_count,
float * verts,
float * colors = NULL,
float * normals = NULL,
float * uvs = NULL );
366 virtual void draw_opengl_primitive(
int primative_type,
int vertex_count,
float * verts,
367 float * colors = NULL,
float * normals = NULL,
float * uvs = NULL );
387 friend class bdiScenarioApp;
The diguyViewPainter class acts as a helper for drawing various graphics primitives in DI-Guy Scenari...
Definition: diguyViewPainter.h:36
The class that represents a DI-Guy Entity in the world.
Definition: diguyCharacter.h:82
This class implements shader programs for use with DI-Guy character graphics.
Definition: diguyGraphicsShaderProgram.h:94