gthreemeshphongmaterial

gthreemeshphongmaterial

Functions

Properties

GrapheneVec3 * color Read / Write
GthreeOperation combine Read / Write
GrapheneVec3 * emissive-color Read / Write
GthreeTexture * env-map Read / Write
gboolean flat-shading Read / Write
GthreeTexture * map Read / Write
GthreeTexture * normal-map Read / Write
GthreeNormalMapType normal-map-type Read / Write
GrapheneVec2 * normal-scale Read / Write
float reflectivity Read / Write
float refraction-ratio Read / Write
float shininess Read / Write
GrapheneVec3 * specular-color Read / Write
GthreeTexture * specular-map Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GthreeMaterial
        ╰── GthreeMeshMaterial
            ╰── GthreeMeshPhongMaterial

Includes

#include <gthree/gthree.h>

Description

Functions

gthree_mesh_phong_material_new ()

GthreeMeshPhongMaterial *
gthree_mesh_phong_material_new ();

gthree_mesh_phong_material_set_color ()

void
gthree_mesh_phong_material_set_color (GthreeMeshPhongMaterial *phong,
                                      const graphene_vec3_t *color);

gthree_mesh_phong_material_get_color ()

const graphene_vec3_t *
gthree_mesh_phong_material_get_color (GthreeMeshPhongMaterial *phong);

gthree_mesh_phong_material_set_combine ()

void
gthree_mesh_phong_material_set_combine
                               (GthreeMeshPhongMaterial *phong,
                                GthreeOperation combine);

gthree_mesh_phong_material_get_combine ()

GthreeOperation
gthree_mesh_phong_material_get_combine
                               (GthreeMeshPhongMaterial *phong);

gthree_mesh_phong_material_set_emissive_color ()

void
gthree_mesh_phong_material_set_emissive_color
                               (GthreeMeshPhongMaterial *phong,
                                const graphene_vec3_t *color);

gthree_mesh_phong_material_get_emissive_color ()

const graphene_vec3_t *
gthree_mesh_phong_material_get_emissive_color
                               (GthreeMeshPhongMaterial *phong);

gthree_mesh_phong_material_set_env_map ()

void
gthree_mesh_phong_material_set_env_map
                               (GthreeMeshPhongMaterial *phong,
                                GthreeTexture *texture);

gthree_mesh_phong_material_get_env_map ()

GthreeTexture *
gthree_mesh_phong_material_get_env_map
                               (GthreeMeshPhongMaterial *phong);

gthree_mesh_phong_material_set_flat_shading ()

void
gthree_mesh_phong_material_set_flat_shading
                               (GthreeMeshPhongMaterial *phong,
                                gboolean flat_shading);

gthree_mesh_phong_material_get_flat_shading ()

gboolean
gthree_mesh_phong_material_get_flat_shading
                               (GthreeMeshPhongMaterial *phong);

gthree_mesh_phong_material_set_map ()

void
gthree_mesh_phong_material_set_map (GthreeMeshPhongMaterial *phong,
                                    GthreeTexture *texture);

gthree_mesh_phong_material_get_map ()

GthreeTexture *
gthree_mesh_phong_material_get_map (GthreeMeshPhongMaterial *phong);

gthree_mesh_phong_material_set_reflectivity ()

void
gthree_mesh_phong_material_set_reflectivity
                               (GthreeMeshPhongMaterial *phong,
                                float reflectivity);

gthree_mesh_phong_material_get_reflectivity ()

float
gthree_mesh_phong_material_get_reflectivity
                               (GthreeMeshPhongMaterial *phong);

gthree_mesh_phong_material_set_refraction_ratio ()

void
gthree_mesh_phong_material_set_refraction_ratio
                               (GthreeMeshPhongMaterial *phong,
                                float ratio);

gthree_mesh_phong_material_get_refraction_ratio ()

float
gthree_mesh_phong_material_get_refraction_ratio
                               (GthreeMeshPhongMaterial *phong);

gthree_mesh_phong_material_set_shininess ()

void
gthree_mesh_phong_material_set_shininess
                               (GthreeMeshPhongMaterial *phong,
                                float shininess);

gthree_mesh_phong_material_get_shininess ()

float
gthree_mesh_phong_material_get_shininess
                               (GthreeMeshPhongMaterial *phong);

gthree_mesh_phong_material_set_specular_color ()

void
gthree_mesh_phong_material_set_specular_color
                               (GthreeMeshPhongMaterial *phong,
                                const graphene_vec3_t *color);

gthree_mesh_phong_material_get_specular_color ()

const graphene_vec3_t *
gthree_mesh_phong_material_get_specular_color
                               (GthreeMeshPhongMaterial *phong);

Types and Values

GthreeMeshPhongMaterial

typedef struct _GthreeMeshPhongMaterial GthreeMeshPhongMaterial;

GthreeMeshPhongMaterialClass

typedef struct {
  GthreeMeshMaterialClass parent_class;
} GthreeMeshPhongMaterialClass;

Property Details

The “color” property

  “color”                    GrapheneVec3 *

Color.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write


The “combine” property

  “combine”                  GthreeOperation

Combine.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write

Default value: GTHREE_OPERATION_MULTIPLY


The “emissive-color” property

  “emissive-color”           GrapheneVec3 *

Emissive.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write


The “env-map” property

  “env-map”                  GthreeTexture *

Env Map.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write


The “flat-shading” property

  “flat-shading”             gboolean

Flat shading.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write

Default value: FALSE


The “map” property

  “map”                      GthreeTexture *

Map.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write


The “normal-map” property

  “normal-map”               GthreeTexture *

Normal map.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write


The “normal-map-type” property

  “normal-map-type”          GthreeNormalMapType

Normal map type.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write

Default value: GTHREE_NORMAL_MAP_TYPE_TANGENT_SPACE


The “normal-scale” property

  “normal-scale”             GrapheneVec2 *

Normal scale.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write


The “reflectivity” property

  “reflectivity”             float

Reflectivity.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write

Allowed values: [0,1]

Default value: 1


The “refraction-ratio” property

  “refraction-ratio”         float

Refraction Ratio.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write

Allowed values: [0,1]

Default value: 0.98


The “shininess” property

  “shininess”                float

Shininess.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write

Allowed values: [0,1000]

Default value: 30


The “specular-color” property

  “specular-color”           GrapheneVec3 *

Specular color.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write


The “specular-map” property

  “specular-map”             GthreeTexture *

Specular Map.

Owner: GthreeMeshPhongMaterial

Flags: Read / Write