VAPOR3 3.9.4
Framebuffer.h
Go to the documentation of this file.
1#pragma once
2
4#include <vapor/Texture.h>
5
6namespace VAPoR {
7
22
24 unsigned int _id = 0;
25 int _width = 0;
26 int _height = 0;
27 bool _hasDepthBuffer = false;
28 Texture2D _colorBuffer;
29 Texture2D _depthBuffer;
30
31public:
33
34 int Generate();
35 bool Initialized() const;
36 bool IsComplete() const;
37 int GetStatus() const;
38 const char *GetStatusString() const;
39 static const char *GetStatusString(int status);
40 void Bind();
41 void UnBind();
42 void SetSize(int width, int height);
43 void GetSize(int *width, int *height) const;
46
47 const Texture2D *GetColorTexture() const;
48 const Texture2D *GetDepthTexture() const;
49};
50}; // namespace VAPoR
Wrapper class for an OpenGL Framebuffer.
Definition: Framebuffer.h:23
void SetSize(int width, int height)
bool IsComplete() const
const char * GetStatusString() const
static const char * GetStatusString(int status)
int GetStatus() const
const Texture2D * GetDepthTexture() const
void GetSize(int *width, int *height) const
bool Initialized() const
const Texture2D * GetColorTexture() const
Mixin class that prevents copying.