SGCT master (487fac4)
Simple Graphics Cluster Toolkit
Loading...
Searching...
No Matches
equirectangular.h
Go to the documentation of this file.
1/*****************************************************************************************
2 * SGCT *
3 * Simple Graphics Cluster Toolkit *
4 * *
5 * Copyright (c) 2012-2026 *
6 * For conditions of distribution and use, see copyright notice in LICENSE.md *
7 ****************************************************************************************/
8
9#ifndef __SGCT__EQUIRECTANGULAR__H__
10#define __SGCT__EQUIRECTANGULAR__H__
11
12#include <sgct/sgctexports.h>
14
15#include <sgct/math.h>
16#include <sgct/shaderprogram.h>
17
18namespace sgct {
19
20namespace config { struct EquirectangularProjection; }
21class BaseViewport;
22class User;
23class Window;
24
25class SGCT_EXPORT EquirectangularProjection final : public NonLinearProjection {
26public:
28 const Window& parent, User& user);
30
31 void render(const BaseViewport& viewport, FrustumMode mode) const override;
32
33 void renderCubemap(FrustumMode frustumMode) const override;
34
35 void update(const vec2& size) const override;
36
37private:
38 void initVBO() override;
39 void initViewports() override;
40 void initShaders() override;
41
42 unsigned int _vao = 0;
43 unsigned int _vbo = 0;
44 ShaderProgram _shader;
45};
46
47} // namespace sgct
48
49#endif // __SGCT__EQUIRECTANGULAR__H__
This class holds and manages viewportdata and calculates frustums.
Definition baseviewport.h:27
EquirectangularProjection(const config::EquirectangularProjection &config, const Window &parent, User &user)
void renderCubemap(FrustumMode frustumMode) const override
void render(const BaseViewport &viewport, FrustumMode mode) const override
void update(const vec2 &size) const override
NonLinearProjection(const Window &parent)
Class for handling compiling, linking and using shader programs.
Definition shaderprogram.h:24
Helper class for setting user variables.
Definition user.h:24
Definition window.h:46
Definition clustermanager.h:22
Definition actions.h:16
FrustumMode
Definition definitions.h:23
Definition math.h:47