• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KGLLib

KGLLib::RenderTarget

KGLLib::RenderTarget Class Reference

#include <rendertarget.h>

List of all members.


Detailed Description

Definition at line 30 of file rendertarget.h.


Public Member Functions

bool disable ()
bool enable ()
int height () const
bool isValid () const
 RenderTarget (int width, int height, bool hasDepth=false, GLint textureFormat=GL_RGBA)
 RenderTarget (Texture *color)
QSize size () const
Texture * texture () const
int width () const
virtual ~RenderTarget ()

Static Public Member Functions

static bool isSupported ()

Protected Member Functions

void attachColorTexture (Texture *tex)
void attachDepthBuffer (GLuint buffer)
void attachDepthTexture (Texture *tex)
Texture * createColorTexture (int w, int h, GLint textureFormat=GL_RGBA)
GLuint createDepthBuffer (int w, int h)
Texture * createDepthTexture (int w, int h)
void endInit ()
bool startInit ()

Constructor & Destructor Documentation

KGLLib::RenderTarget::RenderTarget ( Texture *  color  )  [explicit]

Creates RenderTarget object for rendering onto color.

color must be a valid RGBA texture.

Definition at line 33 of file rendertarget.cpp.

KGLLib::RenderTarget::RenderTarget ( int  width,
int  height,
bool  hasDepth = false,
GLint  textureFormat = GL_RGBA 
)

Creates a render target of size width x height.

Internal color texture is created and can be accessed using texture(). The internal format of the color texture can be specified using textureFormat parameter. If depth is true then internal depth renderbuffer is created but you will have no access to it.

Definition at line 46 of file rendertarget.cpp.

KGLLib::RenderTarget::~RenderTarget (  )  [virtual]

Creates RenderTarget object for rendering onto color and depth.

If either of them is null then internal renderbuffer is created for it, but you won't have access to it.

Definition at line 69 of file rendertarget.cpp.


Member Function Documentation

void KGLLib::RenderTarget::attachColorTexture ( Texture *  tex  )  [protected]

Definition at line 150 of file rendertarget.cpp.

void KGLLib::RenderTarget::attachDepthBuffer ( GLuint  buffer  )  [protected]

Definition at line 162 of file rendertarget.cpp.

void KGLLib::RenderTarget::attachDepthTexture ( Texture *  tex  )  [protected]

Definition at line 156 of file rendertarget.cpp.

Texture * KGLLib::RenderTarget::createColorTexture ( int  w,
int  h,
GLint  textureFormat = GL_RGBA 
) [protected]

Definition at line 123 of file rendertarget.cpp.

GLuint KGLLib::RenderTarget::createDepthBuffer ( int  w,
int  h 
) [protected]

Definition at line 140 of file rendertarget.cpp.

Texture * KGLLib::RenderTarget::createDepthTexture ( int  w,
int  h 
) [protected]

Definition at line 134 of file rendertarget.cpp.

bool KGLLib::RenderTarget::disable (  ) 

Definition at line 180 of file rendertarget.cpp.

bool KGLLib::RenderTarget::enable (  ) 

Definition at line 168 of file rendertarget.cpp.

void KGLLib::RenderTarget::endInit (  )  [protected]

Definition at line 104 of file rendertarget.cpp.

int KGLLib::RenderTarget::height (  )  const

Definition at line 198 of file rendertarget.cpp.

bool KGLLib::RenderTarget::isSupported (  )  [static]

Definition at line 28 of file rendertarget.cpp.

bool KGLLib::RenderTarget::isValid (  )  const [inline]

Definition at line 64 of file rendertarget.h.

QSize KGLLib::RenderTarget::size (  )  const

Definition at line 204 of file rendertarget.cpp.

bool KGLLib::RenderTarget::startInit (  )  [protected]

Definition at line 84 of file rendertarget.cpp.

Texture* KGLLib::RenderTarget::texture (  )  const [inline]

Definition at line 59 of file rendertarget.h.

int KGLLib::RenderTarget::width (  )  const

Definition at line 192 of file rendertarget.cpp.


The documentation for this class was generated from the following files:
  • rendertarget.h
  • rendertarget.cpp

KGLLib

Skip menu "KGLLib"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KGLLib
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal