3#include "renderers/Renderer.hpp"
4#include "input/Camera.hpp"
6#include "processing/SSAO.hpp"
7#include "resources/Mesh.hpp"
30 void resize(uint width, uint height)
override;
This class represents a camera as used in real-time rendering APIs. It provides a view and projection...
Definition: Camera.hpp:11
Renders the main game scene.
Definition: GameRenderer.hpp:13
void drawPlayer(const Player &player, Texture &dst) const
Definition: GameRenderer.cpp:39
Camera _playerCamera
The player camera (fixed).
Definition: GameRenderer.hpp:52
const Texture * _cubemap
Environment map for reflections.
Definition: GameRenderer.hpp:53
std::unique_ptr< SSAO > _ssaoPass
Screen space ambient occlusion pass.
Definition: GameRenderer.hpp:42
Program * _compositingProgram
Lighting program.
Definition: GameRenderer.hpp:46
Texture _sceneNormal
Scene normal texture.
Definition: GameRenderer.hpp:38
Texture _lighting
Texture containing the lit result.
Definition: GameRenderer.hpp:41
Program * _fxaaProgram
Antialiasing program.
Definition: GameRenderer.hpp:44
const Mesh * _bodyElement
Body elements and items mesh.
Definition: GameRenderer.hpp:50
void resize(uint width, uint height) override
Definition: GameRenderer.cpp:123
Texture _sceneMaterial
Scene material texture.
Definition: GameRenderer.hpp:39
const Mesh * _ground
Terrain mesh.
Definition: GameRenderer.hpp:48
void drawScene(const Player &player) const
Definition: GameRenderer.cpp:75
const Mesh * _head
Snake head mesh.
Definition: GameRenderer.hpp:49
Program * _coloredProgram
Base scene rendering program.
Definition: GameRenderer.hpp:45
Texture _sceneDepth
Scene depth texture.
Definition: GameRenderer.hpp:40
Represents a geometric mesh composed of vertices, other attributes and triangles.
Definition: Mesh.hpp:15
Player state and animations.
Definition: Player.hpp:8
Represents a group of shaders used for rendering.
Definition: Program.hpp:31
Base structure of a renderer.
Definition: Renderer.hpp:10
Represents a texture containing one or more images, stored on the CPU and/or GPU.
Definition: Texture.hpp:12