Powertek.OpenGl.PtFBOData Class Reference

PtFBOData. More...

List of all members.

Public Member Functions

 PtFBOData ()
 PtFBOData (String bufferName)
void CreateBuffer (int width, int height, int numRenderTargets, PtFBOBufferMode fboBufferMode)
void ReleaseBuffer ()
void CheckFrameBufferStatus (String phase)
void ActivateFrameBuffer (bool setViewPortToBuffer)
void DeActivateFrameBuffer ()
void BindTexture ()
void BindAndActivateTexture (int target)
void BindBackTexture ()
void BindDepthTexture ()
void UnBindTexture ()
void UnBindAndDeactivateTexture (int target)
void ClearBuffer (Vertex3f clearColor)
void RenderTextureToViewPort (int width, int height)
float[] GetTextureData ()
void GetTextureData (out float[] data, out int width, out int height)
Byte[] GetTextureDataBytes ()
void CopyTextureFromFBO (int fromFrameBufferId)
void SetTextureData (float[] data)
float[] GetDepthTextureData (bool activeBuffer)

Properties

int FrameBufferID [get]
int Width [get]
int Height [get]


Detailed Description


Constructor & Destructor Documentation

Powertek.OpenGl.PtFBOData.PtFBOData (  ) 

Powertek.OpenGl.PtFBOData.PtFBOData ( String  bufferName  ) 

PtFBOData.

Parameters:
bufferName 


Member Function Documentation

void Powertek.OpenGl.PtFBOData.ActivateFrameBuffer ( bool  setViewPortToBuffer  ) 

Activate the framebuffer.

Parameters:
setViewPortToBuffer 

void Powertek.OpenGl.PtFBOData.BindAndActivateTexture ( int  target  ) 

Bind Framebuffer Texture and actiave the Texture unit (GL_TEXTURE0 etc).

Parameters:
target 

void Powertek.OpenGl.PtFBOData.BindBackTexture (  ) 

BindBackTexture.

void Powertek.OpenGl.PtFBOData.BindDepthTexture (  ) 

Bind Depthbuffer Texture.

void Powertek.OpenGl.PtFBOData.BindTexture (  ) 

Bind Framebuffer Texture.

void Powertek.OpenGl.PtFBOData.CheckFrameBufferStatus ( String  phase  ) 

Check the Status of the buffer.

Parameters:
phase 

void Powertek.OpenGl.PtFBOData.ClearBuffer ( Vertex3f  clearColor  ) 

Erase the BufferTexture with the given color.

Parameters:
clearColor 

void Powertek.OpenGl.PtFBOData.CopyTextureFromFBO ( int  fromFrameBufferId  ) 

both buffers must have the same dimensions and configurations (textures + depth)

Parameters:
fromFrameBufferId 

void Powertek.OpenGl.PtFBOData.CreateBuffer ( int  width,
int  height,
int  numRenderTargets,
PtFBOBufferMode  fboBufferMode 
)

Default min mag = Gl.GL_NEAREST, for depthbuffer or shadowMapping use Gl.GL_NEAREST.

Parameters:
width 
height 
numRenderTargets 
fboBufferMode 

void Powertek.OpenGl.PtFBOData.DeActivateFrameBuffer (  ) 

Deactivate the buffer.

float [] Powertek.OpenGl.PtFBOData.GetDepthTextureData ( bool  activeBuffer  ) 

This will read the content of the depth buffer We can only read the buffer if it is enabled, if it isnt set active to true.

Parameters:
activeBuffer we can only read the buffer
Returns:
float array, one float per pixel only

void Powertek.OpenGl.PtFBOData.GetTextureData ( out float[]  data,
out int  width,
out int  height 
)

Return Buffer Texture Data as float.

Parameters:
data 4 * Width * Height as float
width 
height 

float [] Powertek.OpenGl.PtFBOData.GetTextureData (  ) 

Return Buffer Texture Data as float.

Returns:
4 * Width * Height as float

Byte [] Powertek.OpenGl.PtFBOData.GetTextureDataBytes (  ) 

Return Buffer Texture Data as Byte (will be converted from internally float 0..1 to 0..255).

Returns:
4 * Width * Height as Byte

void Powertek.OpenGl.PtFBOData.ReleaseBuffer (  ) 

Release the FrameBuffer.

void Powertek.OpenGl.PtFBOData.RenderTextureToViewPort ( int  width,
int  height 
)

RenderTextureToViewPort.

Parameters:
width 
height 

void Powertek.OpenGl.PtFBOData.SetTextureData ( float[]  data  ) 

Set Texture Data.

Parameters:
data 

void Powertek.OpenGl.PtFBOData.UnBindAndDeactivateTexture ( int  target  ) 

UnBindAndDeactivateTexture.

Parameters:
target 

void Powertek.OpenGl.PtFBOData.UnBindTexture (  ) 

UnBind Depthbuffer Texture.


Property Documentation

int Powertek.OpenGl.PtFBOData.FrameBufferID [get]

Return the OpenGL Id of the framebuffer.

int Powertek.OpenGl.PtFBOData.Height [get]

Framebuffer Height.

int Powertek.OpenGl.PtFBOData.Width [get]

Framebuffer Width.


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

Generated on Thu Nov 20 04:46:32 2008 for Powertek.OpenGl, 2.0.6.64 by  doxygen 1.5.7.1