Shkyera Engine
Easy to use, game engine for Python
Loading...
Searching...
No Matches
DepthCubeMapFrameBuffer.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <glad/glad.h>
4#include <memory>
5
7
8namespace shkyera {
9
11 public:
14
15 void bind();
16 void unbind();
17 void clear();
18 void activate(GLuint texId) const;
19 void setSize(int width, int height);
20
21 GLuint getID() const { return _cubemapTexture; }
22
23 private:
26
27 void setupFramebuffer();
28};
29
30} // namespace shkyera
Definition DepthCubeMapFrameBuffer.hpp:10
GLuint _fbo
Definition DepthCubeMapFrameBuffer.hpp:24
void clear()
Definition DepthCubeMapFrameBuffer.cpp:37
void setSize(int width, int height)
Definition DepthCubeMapFrameBuffer.cpp:46
~DepthCubeMapFrameBuffer()
Definition DepthCubeMapFrameBuffer.cpp:17
void unbind()
Definition DepthCubeMapFrameBuffer.cpp:33
GLuint getID() const
Definition DepthCubeMapFrameBuffer.hpp:21
GLuint _rbo
Definition DepthCubeMapFrameBuffer.hpp:24
void setupFramebuffer()
Definition DepthCubeMapFrameBuffer.cpp:86
DepthCubeMapFrameBuffer()
Definition DepthCubeMapFrameBuffer.cpp:6
uint32_t _height
Definition DepthCubeMapFrameBuffer.hpp:25
void bind()
Definition DepthCubeMapFrameBuffer.cpp:29
void activate(GLuint texId) const
Definition DepthCubeMapFrameBuffer.cpp:41
uint32_t _width
Definition DepthCubeMapFrameBuffer.hpp:25
GLuint _cubemapTexture
Definition DepthCubeMapFrameBuffer.hpp:24
Definition Asset.hpp:6
Definition Clock.hpp:9