Saxum/material.hh

32 lines
869 B
C++
Raw Permalink Normal View History

#ifndef MATERIAL_HH_INCLUDED
#define MATERIAL_HH_INCLUDED
2014-10-20 17:09:34 +00:00
#include <string>
2014-10-22 21:17:18 +00:00
#include <ACGL/OpenGL/Creator/Texture2DCreator.hh>
#include <ACGL/OpenGL/Data/TextureLoadStore.hh>
#include <ACGL/OpenGL/Managers.hh>
2014-10-20 17:09:34 +00:00
class Material{
2014-10-20 17:09:34 +00:00
public:
Material(std::string filePath, float ambientFactor,
float diffuseFactor, float specularFactor, float shininess, bool movingTexture = false);
Material();
2014-10-22 21:17:18 +00:00
ACGL::OpenGL::SharedTexture2D getReference();
~Material();
float getAmbientFactor();
float getDiffuseFactor();
float getSpecularFactor();
float getShininess();
bool isMoving();
2014-10-20 17:09:34 +00:00
private:
2014-10-22 21:17:18 +00:00
ACGL::OpenGL::SharedTexture2D reference;
float ambientFactor;
float diffuseFactor;
float specularFactor;
float shininess;
bool movingTexture;
2014-10-20 17:09:34 +00:00
};
#endif