3 #ifndef GDK_GFX_MATERIAL_H 4 #define GDK_GFX_MATERIAL_H 9 #include <gdk/graphics_types.h> 47 virtual void setFloat(
const std::string& aName,
float aValue) = 0;
50 virtual void setVector2(
const std::string &aName, graphics_vector2_type aValue) = 0;
53 virtual void setVector3(
const std::string &aName, graphics_vector3_type aValue) = 0;
56 virtual void setVector4(
const std::string &aName, graphics_vector4_type aValue) = 0;
59 virtual void setInteger(
const std::string& aName,
int aValue) = 0;
62 virtual void setInteger2(
const std::string& aName,
int aValue1,
int aValue2) = 0;
65 virtual void setInteger3(
const std::string& aName,
int aValue1,
int aValue2,
69 virtual void setInteger4(
const std::string& aName,
int aValue1,
int aValue2,
70 int aValue3,
int aValue4) = 0;
virtual void setInteger2(const std::string &aName, int aValue1, int aValue2)=0
assigns a 2 integer array to the material.
virtual void setVector3(const std::string &aName, graphics_vector3_type aValue)=0
assigns a 3 component vector
cull front and back facing polygons
cull front facing polygons
std::shared_ptr< gdk::texture > texture_ptr_type
textures can be shared among many webgl1es2_materials.
Definition: material.h:40
decides how models using the material should be drawn.
Definition: material.h:20
render_mode
render mode decides transparency etc
Definition: material.h:33
virtual void setVector4(const std::string &aName, graphics_vector4_type aValue)=0
assigns a 4 component vector
cull back facing polygons
FaceCullingMode
specify whether front- or back-facing polygons can be culled
Definition: material.h:24
virtual void setInteger3(const std::string &aName, int aValue1, int aValue2, int aValue3)=0
assigns a 3 integer array to the material.
virtual void setVector2(const std::string &aName, graphics_vector2_type aValue)=0
assigns a 2 component vector
virtual void setInteger(const std::string &aName, int aValue)=0
assigns an integer to the material.
virtual void setInteger4(const std::string &aName, int aValue1, int aValue2, int aValue3, int aValue4)=0
assigns a 4 integer array to the material.
virtual void setTexture(const std::string &aName, texture_ptr_type aTexturePointer)=0
assigns a texture to the material.
virtual void setFloat(const std::string &aName, float aValue)=0
assigns a float to the material.