7 #ifndef ABSTRACTSCENE_H
8 #define ABSTRACTSCENE_H
33 QOpenGLContext*
context()
const {
return mContext; }
52 virtual void update(
float t) = 0;
66 virtual void resize(
int width,
int height) = 0;
75 virtual void rotateAzimuth(
float t) = 0;
77 virtual void rotatePolar(
float t) = 0;
123 virtual void setShadowEnabled(
bool value) = 0;
125 virtual void setContourEnabled(
bool value) = 0;
127 virtual void setContourConstant(
bool value) = 0;
129 virtual void setDepthFactor(
float depthFactor) = 0;
131 virtual void setContourWidth(
float width) = 0;
133 virtual void setAmbientIntensity(
float value) = 0;
135 virtual void switchAmbientOcclusionQuality(
int quality) = 0;
141 QOpenGLContext *mContext;
144 #endif // ABSTRACTSCENE_H
Definition: abstractscene.h:17
virtual void update(float t)=0
A virtual member function that updates the scene (has to be overwritten).
QOpenGLContext * context() const
A member function to get the OpenGL context.
Definition: abstractscene.h:33
virtual void setSpecularFactor(float specularFactor)=0
Set the specular factor for lighting.
virtual bool loadModelFromPath(const std::string absoluteFilePath)=0
A virtual member function that loads a model from a given path(has to be overwritten).
virtual void initialize()=0
A virtual member function that initializes the scene (has to be overwritten).
virtual void setDiffuseFactor(float diffuseFactor)=0
Set the diffuse factor for lighting.
virtual void setAmbientFactor(float ambientFactor)=0
Set the ambient factor for lighting.
virtual void setNearPlane(float nearPlane)=0
Set the near plane of the camera.
virtual void render()=0
A virtual member function that renders the scene(has to be overwritten).
virtual void setFarPlane(float farPlane)=0
Set the far plane of the camera.
virtual void compileShader()=0
A virtual member function that compiles a shader(has to be overwritten).
virtual void setAmbientOcclusion(bool value)=0
Toggle ambient occlusion on/off.
virtual void resize(int width, int height)=0
A virtual member function that resizes the scene(has to be overwritten).
void setContext(QOpenGLContext *context)
A member function to set the OpenGL context.
Definition: abstractscene.h:27