gthreemeshbasicmaterial

gthreemeshbasicmaterial

Functions

Properties

GrapheneVec3 * color Read / Write
GthreeOperation combine Read / Write
GthreeTexture * env-map Read / Write
GthreeTexture * map Read / Write
float reflectivity Read / Write
float refraction-ratio Read / Write

Types and Values

Object Hierarchy

    GEnum
    ╰── GthreeOperation
    GObject
    ╰── GthreeMaterial
        ╰── GthreeMeshMaterial
            ╰── GthreeMeshBasicMaterial

Includes

#include <gthree/gthree.h>

Description

Functions

gthree_mesh_basic_material_new ()

GthreeMeshBasicMaterial *
gthree_mesh_basic_material_new ();

gthree_mesh_basic_material_set_color ()

void
gthree_mesh_basic_material_set_color (GthreeMeshBasicMaterial *basic,
                                      const graphene_vec3_t *color);

gthree_mesh_basic_material_get_color ()

const graphene_vec3_t *
gthree_mesh_basic_material_get_color (GthreeMeshBasicMaterial *basic);

gthree_mesh_basic_material_set_combine ()

void
gthree_mesh_basic_material_set_combine
                               (GthreeMeshBasicMaterial *basic,
                                GthreeOperation combine);

gthree_mesh_basic_material_get_combine ()

GthreeOperation
gthree_mesh_basic_material_get_combine
                               (GthreeMeshBasicMaterial *basic);

gthree_mesh_basic_material_set_env_map ()

void
gthree_mesh_basic_material_set_env_map
                               (GthreeMeshBasicMaterial *basic,
                                GthreeTexture *texture);

gthree_mesh_basic_material_get_env_map ()

GthreeTexture *
gthree_mesh_basic_material_get_env_map
                               (GthreeMeshBasicMaterial *basic);

gthree_mesh_basic_material_set_map ()

void
gthree_mesh_basic_material_set_map (GthreeMeshBasicMaterial *basic,
                                    GthreeTexture *texture);

gthree_mesh_basic_material_get_map ()

GthreeTexture *
gthree_mesh_basic_material_get_map (GthreeMeshBasicMaterial *basic);

gthree_mesh_basic_material_set_reflectivity ()

void
gthree_mesh_basic_material_set_reflectivity
                               (GthreeMeshBasicMaterial *basic,
                                float reflectivity);

gthree_mesh_basic_material_get_reflectivity ()

float
gthree_mesh_basic_material_get_reflectivity
                               (GthreeMeshBasicMaterial *basic);

gthree_mesh_basic_material_set_refraction_ratio ()

void
gthree_mesh_basic_material_set_refraction_ratio
                               (GthreeMeshBasicMaterial *basic,
                                float ratio);

gthree_mesh_basic_material_get_refraction_ratio ()

float
gthree_mesh_basic_material_get_refraction_ratio
                               (GthreeMeshBasicMaterial *basic);

Types and Values

GthreeMeshBasicMaterial

typedef struct _GthreeMeshBasicMaterial GthreeMeshBasicMaterial;

GthreeMeshBasicMaterialClass

typedef struct {
  GthreeMeshMaterialClass parent_class;
} GthreeMeshBasicMaterialClass;

enum GthreeOperation

Members

GTHREE_OPERATION_MULTIPLY

   

GTHREE_OPERATION_MIX

   

GTHREE_OPERATION_ADD

   

Property Details

The “color” property

  “color”                    GrapheneVec3 *

Color.

Owner: GthreeMeshBasicMaterial

Flags: Read / Write


The “combine” property

  “combine”                  GthreeOperation

Combine.

Owner: GthreeMeshBasicMaterial

Flags: Read / Write

Default value: GTHREE_OPERATION_MULTIPLY


The “env-map” property

  “env-map”                  GthreeTexture *

Env Map.

Owner: GthreeMeshBasicMaterial

Flags: Read / Write


The “map” property

  “map”                      GthreeTexture *

Map.

Owner: GthreeMeshBasicMaterial

Flags: Read / Write


The “reflectivity” property

  “reflectivity”             float

Reflectivity.

Owner: GthreeMeshBasicMaterial

Flags: Read / Write

Allowed values: [0,1]

Default value: 1


The “refraction-ratio” property

  “refraction-ratio”         float

Refraction Ratio.

Owner: GthreeMeshBasicMaterial

Flags: Read / Write

Allowed values: [0,1]

Default value: 0.98