3 #include "GLFWApplication.h"
24 BUNNY, MODEL000, MODEL002, NUM_MODELS
47 void resize(
int width,
int height)
override;
52 void loadModel(
const std::string model_path);
69 float splatSizeFactor = 0.0005f;
70 float filterRadius = 2.0f;
71 bool useLenght =
true;
72 bool useVertexColors =
false;
73 bool autoRotate =
true;
74 float lightDirection[3];
75 float objectRotation[4];
77 Models currentModel = Models::BUNNY;
78 bool enableVertexCulling =
true;
95 std::vector<std::string> model_paths;
The main class of the renderer - the action is here!
Definition: Vis2Application.h:32
Encapsules an OpenGL shader program.
Definition: GLProgram.h:14
Vis2Application(int width, int height, int ctx_major, int ctx_minor)
Creates a new instance with the given parameters.
Definition: Vis2Application.cpp:12
glm::vec3 color
The color of the vertex.
Definition: Vis2Application.h:18
void render() override
Renders the scene.
Definition: Vis2Application.cpp:215
A generic base class for GLFW-applications.
Definition: GLFWApplication.h:11
void initUI() override
Initializes the AntTweakBar.
Definition: Vis2ApplicationGui.cpp:38
void setModel(Models model)
Sets the active model.
Definition: Vis2ApplicationGui.cpp:27
void update() override
Does nothing so far.
Definition: Vis2Application.cpp:211
A quadratic plane, centered at (0,0,0) with size 2, faceing z.
Definition: Quad.h:10
void resize(int width, int height) override
Reallocates the textures to fit the new screen size.
Definition: Vis2Application.cpp:333
glm::vec3 pos
The position of the vertex.
Definition: Vis2Application.h:16
Models getModel()
Returns the active model.
Definition: Vis2ApplicationGui.cpp:33
glm::vec4 splatAxis
The vector of the main-axis(components 1-3) and the major2minor-factor(component 4).
Definition: Vis2Application.h:19
void loadModel(const std::string model_path)
Loads the specified model.
Definition: Vis2Application.cpp:24
void renderUI() override
Renders the AntTweakBar.
Definition: Vis2ApplicationGui.cpp:89
Contains the attributes of a vertex.
Definition: Vis2Application.h:14
glm::vec3 normal
The normal vector of the vertex.
Definition: Vis2Application.h:17
void init() override
Initializes all the OpenGL buffers and loads the bunny-model.
Definition: Vis2Application.cpp:94