Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
RTAttachment.cpp
Go to the documentation of this file.
1
2
4
6
9
11
12namespace Divide {
13
15 : _descriptor(descriptor)
16 , _parent(parent)
17{
18}
19
21{
22 DestroyResource( _resolvedTexture );
23 DestroyResource( _renderTexture );
24}
25
27{
28 return _resolvedTexture;
29}
30
31void RTAttachment::setTexture( const Handle<Texture> renderTexture, const Handle<Texture> resolveTexture ) noexcept
32{
33 assert( renderTexture != INVALID_HANDLE<Texture>);
34
35 _renderTexture = renderTexture;
36 _resolvedTexture = resolveTexture;
37 changed(true);
38}
39
41{
42 return _parent;
43}
44
45const RenderTarget& RTAttachment::parent() const noexcept
46{
47 return _parent;
48}
49
50} //namespace Divide
void setTexture(Handle< Texture > renderTexture, Handle< Texture > resolveTexture) noexcept
Handle< Texture > texture() const
RenderTarget & parent() noexcept
RenderTarget & _parent
Definition: RTAttachment.h:138
RTAttachment(RenderTarget &parent, const RTAttachmentDescriptor &descriptor) noexcept
Handle console commands that start with a forward slash.
Definition: AIProcessor.cpp:7
FORCE_INLINE void DestroyResource(Handle< T > &handle, const bool immediate=false)
Project & parent
Definition: DefaultScene.h:41