61 float cx,
float cy,
float cz,
62 float width,
float depth,
float height,
75 float cx,
float cy,
float cz,
76 float radius,
int slices,
int stacks,
90 float cx,
float cy,
float cz,
91 float radius,
float height,
106 float cx,
float cy,
float cz,
107 float radius,
float height,
122 float cx,
float cy,
float cz,
123 float major_r,
float minor_r,
124 int rings,
int sides,
141 float ox,
float oy,
float oz,
142 float cell_w,
float cell_h,
144 const float *heights,
157 float cx,
float cy,
float cz,
159 float param1,
float param2,
160 int u_steps,
int v_steps,
182 const float *xs,
const float *ys,
int n_pts,
183 float dir_x,
float dir_y,
float dir_z,
184 int cap_start,
int cap_end,
#define BGI_DEFAULT_ARG(value)
Definition bgi_types.h:26
#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_solid_sphere(float cx, float cy, float cz, float radius, int slices, int stacks, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
Draw a UV sphere centred at (cx, cy, cz).
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, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
Draw a parametric surface.
BGI_API void BGI_CALL wxbgi_solid_cone(float cx, float cy, float cz, float radius, float height, int slices, int cap, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
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, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
Draw a height-map surface.
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_set_face_color(int color)
Set the face fill colour (BGI palette index) for subsequently created solids.
BGI_API void BGI_CALL wxbgi_solid_torus(float cx, float cy, float cz, float major_r, float minor_r, int rings, int sides, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
Draw a torus (donut) centred at (cx, cy, cz) in the XY plane.
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_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, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
Extrude a 2-D polygon profile along a direction vector.
BGI_API void BGI_CALL wxbgi_solid_box(float cx, float cy, float cz, float width, float depth, float height, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
Draw an axis-aligned box centred at (cx, cy, cz).
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.
BGI_API void BGI_CALL wxbgi_solid_cylinder(float cx, float cy, float cz, float radius, float height, int slices, int caps, int rb BGI_DEFAULT_ARG(0), const char *layerName BGI_DEFAULT_ARG(nullptr))
Draw a Z-aligned cylinder centred at (cx, cy, cz).