gthreemesh

gthreemesh

Functions

Properties

GthreeGeometry * geometry Read / Write / Construct Only
GPtrArray * materials Read / Write

Types and Values

Object Hierarchy

    GEnum
    ╰── GthreeDrawMode
    GObject
    ╰── GthreeObject
        ╰── GthreeMesh
            ╰── GthreeSkinnedMesh

Includes

#include <gthree/gthree.h>

Description

Functions

gthree_mesh_new ()

GthreeMesh *
gthree_mesh_new (GthreeGeometry *geometry,
                 GthreeMaterial *material);

gthree_mesh_add_material ()

void
gthree_mesh_add_material (GthreeMesh *mesh,
                          GthreeMaterial *material);

gthree_mesh_set_draw_mode ()

void
gthree_mesh_set_draw_mode (GthreeMesh *mesh,
                           GthreeDrawMode mode);

gthree_mesh_get_draw_mode ()

GthreeDrawMode
gthree_mesh_get_draw_mode (GthreeMesh *mesh);

gthree_mesh_set_material ()

void
gthree_mesh_set_material (GthreeMesh *mesh,
                          int index,
                          GthreeMaterial *material);

gthree_mesh_get_material ()

GthreeMaterial *
gthree_mesh_get_material (GthreeMesh *mesh,
                          int index);

gthree_mesh_set_materials ()

void
gthree_mesh_set_materials (GthreeMesh *mesh,
                           GPtrArray *materials);

gthree_mesh_get_n_materials ()

int
gthree_mesh_get_n_materials (GthreeMesh *mesh);

gthree_mesh_set_morph_targets ()

void
gthree_mesh_set_morph_targets (GthreeMesh *mesh,
                               GArray *morph_targets);

gthree_mesh_get_morph_targets ()

GArray *
gthree_mesh_get_morph_targets (GthreeMesh *mesh);

gthree_mesh_has_morph_targets ()

gboolean
gthree_mesh_has_morph_targets (GthreeMesh *mesh);

gthree_mesh_get_geometry ()

GthreeGeometry *
gthree_mesh_get_geometry (GthreeMesh *mesh);

gthree_mesh_update_morph_targets ()

void
gthree_mesh_update_morph_targets (GthreeMesh *mesh);

Types and Values

GthreeMesh

typedef struct _GthreeMesh GthreeMesh;

GthreeMeshClass

typedef struct {
  GthreeObjectClass parent_class;
} GthreeMeshClass;

enum GthreeDrawMode

Members

GTHREE_DRAW_MODE_TRIANGLES

   

GTHREE_DRAW_MODE_TRIANGLE_STRIP

   

GTHREE_DRAW_MODE_TRIANGLE_FAN

   

Property Details

The “geometry” property

  “geometry”                 GthreeGeometry *

Geometry.

Owner: GthreeMesh

Flags: Read / Write / Construct Only


The “materials” property

  “materials”                GPtrArray *

Materials.

Owner: GthreeMesh

Flags: Read / Write