SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
GL1RenderTarget Class Reference
Inheritance diagram for GL1RenderTarget:
Inheritance graph
[legend]

Public Member Functions

 GL1RenderTarget (const irr::core::dimension2du &dimension, const std::string &name)
 
irr::core::dimension2du getTextureSize () const
 
void renderToTexture (irr::scene::ICameraSceneNode *camera, float dt)
 
void draw2DImage (const irr::core::rect< irr::s32 > &dest_rect, const irr::core::rect< irr::s32 > *clip_rect, const irr::video::SColor &colors, bool use_alpha_channel_of_texture) const
 
virtual irr::core::dimension2du getTextureSize () const =0
 
virtual void renderToTexture (irr::scene::ICameraSceneNode *camera, float dt)=0
 
virtual void draw2DImage (const irr::core::rect< irr::s32 > &dest_rect, const irr::core::rect< irr::s32 > *clip_rect, const irr::video::SColor &colors, bool use_alpha_channel_of_texture) const =0
 

Private Attributes

irr::video::ITexture * m_render_target_texture
 A pointer to texture on which a scene is rendered.
 
irr::scene::ISceneNode * m_rtt_main_node
 Main node of the RTT scene.
 

Member Function Documentation

◆ draw2DImage()

void GL1RenderTarget::draw2DImage ( const irr::core::rect< irr::s32 > &  dest_rect,
const irr::core::rect< irr::s32 > *  clip_rect,
const irr::video::SColor &  colors,
bool  use_alpha_channel_of_texture 
) const
virtual

Implements RenderTarget.

◆ getTextureSize()

irr::core::dimension2du GL1RenderTarget::getTextureSize ( ) const
virtual

Implements RenderTarget.

◆ renderToTexture()

void GL1RenderTarget::renderToTexture ( irr::scene::ICameraSceneNode *  camera,
float  dt 
)
virtual

Implements RenderTarget.

Member Data Documentation

◆ m_render_target_texture

irr::video::ITexture* GL1RenderTarget::m_render_target_texture
private

A pointer to texture on which a scene is rendered.

Only used in between beginRenderToTexture() and endRenderToTexture calls.


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