|
@@ -6,7 +6,6 @@
|
|
|
#include "anki/util/ConstCharPtrHashMap.h"
|
|
#include "anki/util/ConstCharPtrHashMap.h"
|
|
|
#include "anki/util/StringList.h"
|
|
#include "anki/util/StringList.h"
|
|
|
#include "anki/math/Math.h"
|
|
#include "anki/math/Math.h"
|
|
|
-#include "anki/util/Variant.h"
|
|
|
|
|
#include <GL/glew.h>
|
|
#include <GL/glew.h>
|
|
|
#include <boost/ptr_container/ptr_vector.hpp>
|
|
#include <boost/ptr_container/ptr_vector.hpp>
|
|
|
#include <boost/array.hpp>
|
|
#include <boost/array.hpp>
|
|
@@ -24,17 +23,14 @@ class ShaderProgram;
|
|
|
class ShaderProgramUniformVariable;
|
|
class ShaderProgramUniformVariable;
|
|
|
|
|
|
|
|
|
|
|
|
|
-typedef Variant<float, Vec2, Vec3, Vec4, Mat3,
|
|
|
|
|
- Mat4, TextureResourcePointer> MaterialVariableVariant;
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
/// Holds the shader variables. Its a container for shader program variables
|
|
/// Holds the shader variables. Its a container for shader program variables
|
|
|
/// that share the same name
|
|
/// that share the same name
|
|
|
class MaterialVariable: public boost::noncopyable
|
|
class MaterialVariable: public boost::noncopyable
|
|
|
{
|
|
{
|
|
|
public:
|
|
public:
|
|
|
/// The data union (limited to a few types at the moment)
|
|
/// The data union (limited to a few types at the moment)
|
|
|
- typedef MaterialVariableVariant Variant;
|
|
|
|
|
|
|
+ typedef boost::variant<float, Vec2, Vec3, Vec4, Mat3,
|
|
|
|
|
+ Mat4, TextureResourcePointer> Variant;
|
|
|
|
|
|
|
|
/// Given a pair of pass and level it returns a pointer to a
|
|
/// Given a pair of pass and level it returns a pointer to a
|
|
|
/// shader program uniform variable. The pointer may be null
|
|
/// shader program uniform variable. The pointer may be null
|