Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Rendering
RenderTexture.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include "Types.h"
6
#include "GLHelpers.h"
7
8
namespace
Eegeo
9
{
10
namespace
Rendering
11
{
12
class
RenderTexture
:
public
Eegeo::NonCopyable
13
{
14
public
:
15
RenderTexture
(u32 width, u32 height,
bool
useDepth);
16
virtual
~
RenderTexture
();
17
18
void
BeginRendering();
19
void
EndRendering();
20
21
float
Width() {
return
m_textureInfo.width; }
22
float
Height() {
return
m_textureInfo.height; }
23
u32 TextureId() {
return
m_textureInfo.textureId; }
24
private
:
25
u32 m_framebuffer;
26
u32 m_depthBuffer;
27
u32 m_stencilBuffer;
28
u32 m_oldFrameBuffer;
29
bool
m_enabled;
30
31
Helpers::GLHelpers::TextureInfo
m_textureInfo;
32
};
33
}
34
}
Generated on Sat Jun 10 2023 02:00:32 for eeGeo Platform SDK by
1.8.3.1