forked from coronalabs/corona
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRtt_FrameBufferObject.cpp
39 lines (29 loc) · 1.11 KB
/
Rtt_FrameBufferObject.cpp
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
33
34
35
36
37
38
39
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: [email protected]
//
//////////////////////////////////////////////////////////////////////////////
#include "Renderer/Rtt_FrameBufferObject.h"
// ----------------------------------------------------------------------------
namespace Rtt
{
// ----------------------------------------------------------------------------
FrameBufferObject::FrameBufferObject( Rtt_Allocator* allocator, Texture* texture )
: CPUResource( allocator ),
fTexture( texture )
{
}
CPUResource::ResourceType FrameBufferObject::GetType() const
{
return CPUResource::kFrameBufferObject;
}
Texture* FrameBufferObject::GetTexture() const
{
return fTexture;
}
// ----------------------------------------------------------------------------
} // namespace Rtt
// ----------------------------------------------------------------------------