-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGLfbo.h
More file actions
32 lines (24 loc) · 717 Bytes
/
GLfbo.h
File metadata and controls
32 lines (24 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright © 2008-2012 Pioneer Developers. See AUTHORS.txt for details
// Licensed under the terms of the GPL v3. See licenses/GPL-3.txt
#ifndef __glfbo_h__
#define __glfbo_h__
#include <cstdint>
class CGLfbo
{
private:
uint32_t mFBO;
uint32_t mTexture;
const uint32_t mWidth;
const uint32_t mHeight;
public:
CGLfbo(const uint32_t width, const uint32_t height);
~CGLfbo();
void Bind() const;
void Release() const;
inline uint32_t Width() const { return mWidth; }
inline uint32_t Height() const { return mHeight; }
//void GetData(float *data) const;
void SetTexture(const uint32_t tex) const;
void CopyTexture(const uint32_t target) const;
};
#endif // __glfbo_h__