UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ugdk::graphic::RenderTexture Class Reference

#include <ugdk/graphic/rendertexture.h>

Inheritance diagram for ugdk::graphic::RenderTexture:
Collaboration diagram for ugdk::graphic::RenderTexture:

Public Member Functions

 RenderTexture (std::unique_ptr< graphic::GLTexture > &&texture)
 
 RenderTexture (const math::Integer2D &size)
 
 ~RenderTexture ()
 
virtual math::Vector2D size () const override
 
graphic::GLTexture * texture () const
 
void set_projection_matrix (const math::Geometry &)
 
- Public Member Functions inherited from ugdk::graphic::RenderTarget
virtual ~RenderTarget ()
 
bool IsActive () const
 
const math::Geometryprojection_matrix () const
 
void Clear (structure::Color)
 

Protected Member Functions

virtual void Bind () override
 
virtual void Unbind () override
 
- Protected Member Functions inherited from ugdk::graphic::RenderTarget
 RenderTarget ()
 

Additional Inherited Members

- Protected Attributes inherited from ugdk::graphic::RenderTarget
math::Geometry projection_matrix_
 

Constructor & Destructor Documentation

ugdk::graphic::RenderTexture::RenderTexture ( std::unique_ptr< graphic::GLTexture > &&  texture)
ugdk::graphic::RenderTexture::RenderTexture ( const math::Integer2D size)
ugdk::graphic::RenderTexture::~RenderTexture ( )

Member Function Documentation

virtual void ugdk::graphic::RenderTexture::Bind ( )
overrideprotectedvirtual

Reimplemented from ugdk::graphic::RenderTarget.

void ugdk::graphic::RenderTexture::set_projection_matrix ( const math::Geometry )
virtual math::Vector2D ugdk::graphic::RenderTexture::size ( ) const
overridevirtual
graphic::GLTexture* ugdk::graphic::RenderTexture::texture ( ) const
inline
virtual void ugdk::graphic::RenderTexture::Unbind ( )
overrideprotectedvirtual

Reimplemented from ugdk::graphic::RenderTarget.


The documentation for this class was generated from the following file: