61 float cx,
float cy,
float cz,
62 float width,
float depth,
float height);
74 float cx,
float cy,
float cz,
75 float radius,
int slices,
int stacks);
88 float cx,
float cy,
float cz,
89 float radius,
float height,
90 int slices,
int caps);
103 float cx,
float cy,
float cz,
104 float radius,
float height,
105 int slices,
int cap);
118 float cx,
float cy,
float cz,
119 float major_r,
float minor_r,
120 int rings,
int sides);
136 float ox,
float oy,
float oz,
137 float cell_w,
float cell_h,
139 const float *heights);
151 float cx,
float cy,
float cz,
153 float param1,
float param2,
154 int u_steps,
int v_steps);
175 const float *xs,
const float *ys,
int n_pts,
176 float dir_x,
float dir_y,
float dir_z,
177 int cap_start,
int cap_end);
#define BGI_CALL
Definition bgi_types.h:20
#define BGI_API
Definition bgi_types.h:14
Public C API for the Drawing Description Data Structure (DDS).
BGI_API void BGI_CALL wxbgi_extrude_polygon(const float *xs, const float *ys, int n_pts, float dir_x, float dir_y, float dir_z, int cap_start, int cap_end)
Extrude a 2-D polygon profile along a direction vector.
BGI_API void BGI_CALL wxbgi_solid_cylinder(float cx, float cy, float cz, float radius, float height, int slices, int caps)
Draw a Z-aligned cylinder centred at (cx, cy, cz).
BGI_API void BGI_CALL wxbgi_solid_cone(float cx, float cy, float cz, float radius, float height, int slices, int cap)
Draw a Z-aligned cone.
BGI_API void BGI_CALL wxbgi_surface_heightmap(float ox, float oy, float oz, float cell_w, float cell_h, int rows, int cols, const float *heights)
Draw a height-map surface.
BGI_API void BGI_CALL wxbgi_solid_sphere(float cx, float cy, float cz, float radius, int slices, int stacks)
Draw a UV sphere centred at (cx, cy, cz).
BGI_API void BGI_CALL wxbgi_solid_torus(float cx, float cy, float cz, float major_r, float minor_r, int rings, int sides)
Draw a torus (donut) centred at (cx, cy, cz) in the XY plane.
BGI_API void BGI_CALL wxbgi_solid_set_edge_color(int color)
Set the edge colour (BGI palette index) for subsequently created solids.
BGI_API void BGI_CALL wxbgi_solid_box(float cx, float cy, float cz, float width, float depth, float height)
Draw an axis-aligned box centred at (cx, cy, cz).
BGI_API void BGI_CALL wxbgi_solid_set_face_color(int color)
Set the face fill colour (BGI palette index) for subsequently created solids.
BGI_API void BGI_CALL wxbgi_solid_set_draw_mode(int mode)
Set the draw mode for subsequently created solids.
BGI_API int BGI_CALL wxbgi_solid_get_draw_mode(void)
Returns the current solid draw mode (WXBGI_SOLID_WIREFRAME or WXBGI_SOLID_SOLID).
BGI_API void BGI_CALL wxbgi_surface_parametric(float cx, float cy, float cz, int formula, float param1, float param2, int u_steps, int v_steps)
Draw a parametric surface.
BGI_API void BGI_CALL wxbgi_dds_set_solid_draw_mode(int mode)
Change the draw mode on ALL solid objects currently in the DDS scene.