Public Member Functions | |
PtFBOSuperBuffer (String bufferName) | |
void | CreateBuffer (int width, int height, int numRenderTargets) |
void | CreateBuffer (int width, int height, int inFormat, int format, int minFilter, int magFilter, int numRenderTargets) |
void | ReleaseBuffer () |
void | CheckFrameBufferStatus (String phase) |
void | ActivateFrameBuffer () |
void | SwapTextureBuffer () |
void | DeActivateFrameBuffer () |
void | BindTexture (int renderTargetNum) |
void | BindAndActivateTexture (int renderTargetNum, int target) |
void | UnBindFBOTexture () |
void | UnBindAndDeactivateTexture (int target) |
float[] | GetTextureData (int renderTargetNum) |
void | GetTextureData (int renderTargetNum, out float[] data, out int width, out int height) |
void | GetTextureData (int renderTargetNum, ref float[] data) |
void | SetTextureData (int renderTargetNum, float[] data) |
Properties | |
int | NumSubTextures [get] |
int | Width [get] |
int | Height [get] |
Powertek.OpenGl.PtFBOSuperBuffer.PtFBOSuperBuffer | ( | String | bufferName | ) |
void Powertek.OpenGl.PtFBOSuperBuffer.ActivateFrameBuffer | ( | ) |
Activate the framebuffer.
void Powertek.OpenGl.PtFBOSuperBuffer.BindAndActivateTexture | ( | int | renderTargetNum, | |
int | target | |||
) |
Bind Framebuffer texture and activate texture unit.
renderTargetNum | ||
target |
void Powertek.OpenGl.PtFBOSuperBuffer.BindTexture | ( | int | renderTargetNum | ) |
Bind Framebuffer texture.
renderTargetNum |
void Powertek.OpenGl.PtFBOSuperBuffer.CheckFrameBufferStatus | ( | String | phase | ) |
Check the status of the framebuffer.
phase |
void Powertek.OpenGl.PtFBOSuperBuffer.CreateBuffer | ( | int | width, | |
int | height, | |||
int | inFormat, | |||
int | format, | |||
int | minFilter, | |||
int | magFilter, | |||
int | numRenderTargets | |||
) |
CreateBuffer, minMagFilter = Gl.GL_NEAREST, Gl.GL_LINEAR.
width | ||
height | ||
inFormat | ||
format | ||
minFilter | ||
magFilter | ||
numRenderTargets |
void Powertek.OpenGl.PtFBOSuperBuffer.CreateBuffer | ( | int | width, | |
int | height, | |||
int | numRenderTargets | |||
) |
CreateBuffer, minMagFilter = Gl.GL_NEAREST, Gl.GL_LINEAR.
width | ||
height | ||
numRenderTargets |
void Powertek.OpenGl.PtFBOSuperBuffer.DeActivateFrameBuffer | ( | ) |
DeActivateFrameBuffer.
void Powertek.OpenGl.PtFBOSuperBuffer.GetTextureData | ( | int | renderTargetNum, | |
ref float[] | data | |||
) |
Return Texture Data of the target buffer.
renderTargetNum | ||
data | 4 * Width * Height * float |
void Powertek.OpenGl.PtFBOSuperBuffer.GetTextureData | ( | int | renderTargetNum, | |
out float[] | data, | |||
out int | width, | |||
out int | height | |||
) |
Return Texture Data of the target buffer.
renderTargetNum | ||
data | 4 * Width * Height * float | |
width | ||
height |
float [] Powertek.OpenGl.PtFBOSuperBuffer.GetTextureData | ( | int | renderTargetNum | ) |
Return Texture Data of the target buffer.
renderTargetNum |
void Powertek.OpenGl.PtFBOSuperBuffer.ReleaseBuffer | ( | ) |
Release the Buffer.
void Powertek.OpenGl.PtFBOSuperBuffer.SetTextureData | ( | int | renderTargetNum, | |
float[] | data | |||
) |
Set Texture Data of the target buffer.
renderTargetNum | ||
data |
void Powertek.OpenGl.PtFBOSuperBuffer.SwapTextureBuffer | ( | ) |
SwapTextureBuffer.
void Powertek.OpenGl.PtFBOSuperBuffer.UnBindAndDeactivateTexture | ( | int | target | ) |
UnBind Framebuffer texture and deactivate texture unit.
target |
void Powertek.OpenGl.PtFBOSuperBuffer.UnBindFBOTexture | ( | ) |
UnBind Framebuffer texture.
int Powertek.OpenGl.PtFBOSuperBuffer.Height [get] |
Framebuffer Height.
int Powertek.OpenGl.PtFBOSuperBuffer.NumSubTextures [get] |
Return the Number of Sub Textures.
int Powertek.OpenGl.PtFBOSuperBuffer.Width [get] |
Framebuffer Width.