CGVIS Utils
Loading...
Searching...
No Matches
GLDepthBuffer.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "GLEnv.h"
6
18public:
27 GLDepthBuffer(uint32_t width=0, uint32_t height=0);
28
31
36 const GLuint getId() const;
37
40
41 uint32_t getWidth() const {return width;}
43 uint32_t getHeight() const {return height;}
45
54 void setSize(uint32_t width, uint32_t height);
55private:
56 GLuint id;
57 uint32_t width;
58 uint32_t height;
59};
Cross‑platform OpenGL window/context helper for desktop and Emscripten.
void setSize(uint32_t width, uint32_t height)
Reallocate storage to a new size.
Definition GLDepthBuffer.cpp:23
uint32_t getHeight() const
Stored height in pixels.
Definition GLDepthBuffer.h:43
~GLDepthBuffer()
Destroy and delete the GL renderbuffer name.
Definition GLDepthBuffer.cpp:15
uint32_t getWidth() const
Stored width in pixels.
Definition GLDepthBuffer.h:41
GLDepthBuffer(uint32_t width=0, uint32_t height=0)
Construct a depth renderbuffer and allocate storage.
Definition GLDepthBuffer.cpp:4
const GLuint getId() const
Retrieve the OpenGL renderbuffer object name.
Definition GLDepthBuffer.cpp:19