gthreegeometry

gthreegeometry

Functions

GthreeGeometry * gthree_geometry_new ()
GthreeGeometry * gthree_geometry_new_box ()
GthreeGeometry * gthree_geometry_new_cylinder ()
GthreeGeometry * gthree_geometry_new_cylinder_full ()
GthreeGeometry * gthree_geometry_new_plane ()
GthreeGeometry * gthree_geometry_new_sphere ()
GthreeGeometry * gthree_geometry_new_sphere_full ()
GthreeGeometry * gthree_geometry_new_torus ()
GthreeGeometry * gthree_geometry_new_torus_full ()
void gthree_geometry_set_bounding_box ()
const graphene_box_t * gthree_geometry_get_bounding_box ()
void gthree_geometry_set_bounding_sphere ()
const graphene_sphere_t * gthree_geometry_get_bounding_sphere ()
GthreeAttribute * gthree_geometry_get_color ()
void gthree_geometry_set_draw_range ()
int gthree_geometry_get_draw_range_count ()
int gthree_geometry_get_draw_range_start ()
void gthree_geometry_add_group ()
GthreeGeometryGroup * gthree_geometry_get_group ()
GthreeGeometryGroup * gthree_geometry_peek_groups ()
void gthree_geometry_set_index ()
GthreeAttribute * gthree_geometry_get_index ()
GthreeAttribute * gthree_geometry_add_attribute ()
void gthree_geometry_add_morph_attribute ()
gboolean gthree_geometry_has_attribute ()
gboolean gthree_geometry_has_morph_attributes ()
GthreeAttribute * gthree_geometry_get_attribute ()
GPtrArray * gthree_geometry_get_morph_attributes ()
GList * gthree_geometry_get_morph_attributes_names ()
void gthree_geometry_remove_attribute ()
void gthree_geometry_remove_morph_attributes ()
void gthree_geometry_clear_groups ()
int gthree_geometry_get_n_groups ()
GthreeAttribute * gthree_geometry_get_normal ()
GthreeAttribute * gthree_geometry_get_position ()
int gthree_geometry_get_position_count ()
GthreeAttribute * gthree_geometry_get_uv ()
int gthree_geometry_get_vertex_count ()
GthreeAttribute * gthree_geometry_get_wireframe_index ()
void gthree_geometry_invalidate_bounds ()
void gthree_geometry_compute_vertex_normals ()
void gthree_geometry_normalize_normals ()

Types and Values

Object Hierarchy

    GObject
    ╰── GthreeGeometry

Includes

#include <gthree/gthree.h>

Description

Functions

gthree_geometry_new ()

GthreeGeometry *
gthree_geometry_new ();

gthree_geometry_new_box ()

GthreeGeometry *
gthree_geometry_new_box (float width,
                         float height,
                         float depth,
                         int width_segments,
                         int height_segments,
                         int depth_segments);

gthree_geometry_new_cylinder ()

GthreeGeometry *
gthree_geometry_new_cylinder (float radius,
                              float length);

gthree_geometry_new_cylinder_full ()

GthreeGeometry *
gthree_geometry_new_cylinder_full (float radiusTop,
                                   float radiusBottom,
                                   float height,
                                   int radialSegments,
                                   int heightSegments,
                                   gboolean openEnded,
                                   float thetaStart,
                                   float thetaLength);

gthree_geometry_new_plane ()

GthreeGeometry *
gthree_geometry_new_plane (float width,
                           float height,
                           int width_segments,
                           int height_segments);

gthree_geometry_new_sphere ()

GthreeGeometry *
gthree_geometry_new_sphere (float radius,
                            int widthSegments,
                            int heightSegments);

gthree_geometry_new_sphere_full ()

GthreeGeometry *
gthree_geometry_new_sphere_full (float radius,
                                 int widthSegments,
                                 int heightSegments,
                                 float phiStart,
                                 float phiLength,
                                 float thetaStart,
                                 float thetaLength);

gthree_geometry_new_torus ()

GthreeGeometry *
gthree_geometry_new_torus (float radius,
                           float tube);

gthree_geometry_new_torus_full ()

GthreeGeometry *
gthree_geometry_new_torus_full (float radius,
                                float tube,
                                int radialSegments,
                                int tubularSegments,
                                float arc);

gthree_geometry_set_bounding_box ()

void
gthree_geometry_set_bounding_box (GthreeGeometry *geometry,
                                  const graphene_box_t *box);

gthree_geometry_get_bounding_box ()

const graphene_box_t *
gthree_geometry_get_bounding_box (GthreeGeometry *geometry);

gthree_geometry_set_bounding_sphere ()

void
gthree_geometry_set_bounding_sphere (GthreeGeometry *geometry,
                                     const graphene_sphere_t *sphere);

gthree_geometry_get_bounding_sphere ()

const graphene_sphere_t *
gthree_geometry_get_bounding_sphere (GthreeGeometry *geometry);

gthree_geometry_get_color ()

GthreeAttribute *
gthree_geometry_get_color (GthreeGeometry *geometry);

gthree_geometry_set_draw_range ()

void
gthree_geometry_set_draw_range (GthreeGeometry *geometry,
                                int start,
                                int count);

gthree_geometry_get_draw_range_count ()

int
gthree_geometry_get_draw_range_count (GthreeGeometry *geometry);

gthree_geometry_get_draw_range_start ()

int
gthree_geometry_get_draw_range_start (GthreeGeometry *geometry);

gthree_geometry_add_group ()

void
gthree_geometry_add_group (GthreeGeometry *geometry,
                           int start,
                           int count,
                           int material_index);

gthree_geometry_get_group ()

GthreeGeometryGroup *
gthree_geometry_get_group (GthreeGeometry *geometry,
                           int index);

gthree_geometry_peek_groups ()

GthreeGeometryGroup *
gthree_geometry_peek_groups (GthreeGeometry *geometry);

gthree_geometry_set_index ()

void
gthree_geometry_set_index (GthreeGeometry *geometry,
                           GthreeAttribute *index);

gthree_geometry_get_index ()

GthreeAttribute *
gthree_geometry_get_index (GthreeGeometry *geometry);

gthree_geometry_add_attribute ()

GthreeAttribute *
gthree_geometry_add_attribute (GthreeGeometry *geometry,
                               const char *name,
                               GthreeAttribute *attribute);

gthree_geometry_add_morph_attribute ()

void
gthree_geometry_add_morph_attribute (GthreeGeometry *geometry,
                                     const char *name,
                                     GthreeAttribute *attribute);

gthree_geometry_has_attribute ()

gboolean
gthree_geometry_has_attribute (GthreeGeometry *geometry,
                               const char *name);

gthree_geometry_has_morph_attributes ()

gboolean
gthree_geometry_has_morph_attributes (GthreeGeometry *geometry);

gthree_geometry_get_attribute ()

GthreeAttribute *
gthree_geometry_get_attribute (GthreeGeometry *geometry,
                               const char *name);

gthree_geometry_get_morph_attributes ()

GPtrArray *
gthree_geometry_get_morph_attributes (GthreeGeometry *geometry,
                                      const char *name);

gthree_geometry_get_morph_attributes_names ()

GList *
gthree_geometry_get_morph_attributes_names
                               (GthreeGeometry *geometry);

gthree_geometry_remove_attribute ()

void
gthree_geometry_remove_attribute (GthreeGeometry *geometry,
                                  const char *name);

gthree_geometry_remove_morph_attributes ()

void
gthree_geometry_remove_morph_attributes
                               (GthreeGeometry *geometry,
                                const char *name);

gthree_geometry_clear_groups ()

void
gthree_geometry_clear_groups (GthreeGeometry *geometry);

gthree_geometry_get_n_groups ()

int
gthree_geometry_get_n_groups (GthreeGeometry *geometry);

gthree_geometry_get_normal ()

GthreeAttribute *
gthree_geometry_get_normal (GthreeGeometry *geometry);

gthree_geometry_get_position ()

GthreeAttribute *
gthree_geometry_get_position (GthreeGeometry *geometry);

gthree_geometry_get_position_count ()

int
gthree_geometry_get_position_count (GthreeGeometry *geometry);

gthree_geometry_get_uv ()

GthreeAttribute *
gthree_geometry_get_uv (GthreeGeometry *geometry);

gthree_geometry_get_vertex_count ()

int
gthree_geometry_get_vertex_count (GthreeGeometry *geometry);

gthree_geometry_get_wireframe_index ()

GthreeAttribute *
gthree_geometry_get_wireframe_index (GthreeGeometry *geometry);

gthree_geometry_invalidate_bounds ()

void
gthree_geometry_invalidate_bounds (GthreeGeometry *geometry);

gthree_geometry_compute_vertex_normals ()

void
gthree_geometry_compute_vertex_normals
                               (GthreeGeometry *geometry);

gthree_geometry_normalize_normals ()

void
gthree_geometry_normalize_normals (GthreeGeometry *geometry);

Types and Values

GthreeGeometry

typedef struct _GthreeGeometry GthreeGeometry;

GthreeGeometryClass

typedef struct {
  GObjectClass parent_class;
} GthreeGeometryClass;

GthreeGeometryGroup

typedef struct {
  int start;
  int count;
  int material_index;
} GthreeGeometryGroup;