Top | ![]() |
![]() |
![]() |
![]() |
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 |
GEnum ╰── GthreeOperation GObject ╰── GthreeMaterial ╰── GthreeMeshMaterial ╰── GthreeMeshBasicMaterial
void gthree_mesh_basic_material_set_color (GthreeMeshBasicMaterial *basic
,const graphene_vec3_t *color
);
const graphene_vec3_t *
gthree_mesh_basic_material_get_color (GthreeMeshBasicMaterial *basic
);
void gthree_mesh_basic_material_set_combine (GthreeMeshBasicMaterial *basic
,GthreeOperation combine
);
GthreeOperation
gthree_mesh_basic_material_get_combine
(GthreeMeshBasicMaterial *basic
);
void gthree_mesh_basic_material_set_env_map (GthreeMeshBasicMaterial *basic
,GthreeTexture *texture
);
GthreeTexture *
gthree_mesh_basic_material_get_env_map
(GthreeMeshBasicMaterial *basic
);
void gthree_mesh_basic_material_set_map (GthreeMeshBasicMaterial *basic
,GthreeTexture *texture
);
GthreeTexture *
gthree_mesh_basic_material_get_map (GthreeMeshBasicMaterial *basic
);
void gthree_mesh_basic_material_set_reflectivity (GthreeMeshBasicMaterial *basic
,float reflectivity
);
float
gthree_mesh_basic_material_get_reflectivity
(GthreeMeshBasicMaterial *basic
);
void gthree_mesh_basic_material_set_refraction_ratio (GthreeMeshBasicMaterial *basic
,float ratio
);
float
gthree_mesh_basic_material_get_refraction_ratio
(GthreeMeshBasicMaterial *basic
);
typedef struct { GthreeMeshMaterialClass parent_class; } GthreeMeshBasicMaterialClass;
“color”
property “color” GrapheneVec3 *
Color.
Owner: GthreeMeshBasicMaterial
Flags: Read / Write
“combine”
property“combine” GthreeOperation
Combine.
Owner: GthreeMeshBasicMaterial
Flags: Read / Write
Default value: GTHREE_OPERATION_MULTIPLY
“env-map”
property“env-map” GthreeTexture *
Env Map.
Owner: GthreeMeshBasicMaterial
Flags: Read / Write
“reflectivity”
property “reflectivity” float
Reflectivity.
Owner: GthreeMeshBasicMaterial
Flags: Read / Write
Allowed values: [0,1]
Default value: 1