Propane::TextureRectangleFBOTextureRenderTarget Class Reference

A version of the FBO texture render target that doesn't *have* to have npow2 support (for older cards such as GeForce FX 5200). Instead it uses ARB_texture_rectangle. More...

#include <PropaneFramebuffer.h>

Inheritance diagram for Propane::TextureRectangleFBOTextureRenderTarget:

Propane::TextureRenderTarget List of all members.

Public Member Functions

virtual void begin ()
virtual void end ()
virtual GLuint * getRenderTexture ()
virtual void bindTexture ()
 Call this method to just bind the containing texture directly to the current texture context -- supports texture rectangle and non-standard textures too.
virtual void unbindTexture ()
 Call this method to unbind the containing texture.
virtual void texCoord (float s, float t)

Protected Member Functions

virtual void createTexture (int w, int h)
 Create the proper RGBA + depth texture for this use.

Detailed Description

A version of the FBO texture render target that doesn't *have* to have npow2 support (for older cards such as GeForce FX 5200). Instead it uses ARB_texture_rectangle.


Member Function Documentation

virtual void Propane::TextureRectangleFBOTextureRenderTarget::begin  )  [inline, virtual]
 

Begin rendering to texture; every GL call after this one will render itself into the raw texture handle that we have retained.

Implements Propane::TextureRenderTarget.

virtual void Propane::TextureRectangleFBOTextureRenderTarget::end  )  [inline, virtual]
 

Stop rendering to texture; after this call completes the texture should be updated with whatever calls we made since begin().

Implements Propane::TextureRenderTarget.

virtual GLuint* Propane::TextureRectangleFBOTextureRenderTarget::getRenderTexture  )  [inline, virtual]
 

Get the raw texture for later use

Returns:
A pointer to the raw texture, or NULL if the render failed.

Implements Propane::TextureRenderTarget.

virtual void Propane::TextureRectangleFBOTextureRenderTarget::texCoord float  s,
float  t
[inline, virtual]
 

Call this method to look up the texture coordinate of the FBO's target texture.

It uses glTexCoord2f.

This is required since ARB_texture_rectangle does not use the [0,1] convention for texture coordinates.

Parameters:
s The S-coordinate, from 0.0 to 1.0 inclusive
t The T-coordinate, from 0.0 to 1.0 inclusive

Reimplemented from Propane::TextureRenderTarget.


The documentation for this class was generated from the following file:
Generated on Sun Jan 14 16:49:12 2007 for Propane Injector by  doxygen 1.4.6