Public Member Functions | |
PtFBODataRW () | |
void | CreateBuffer (int width, int height, int inFormat, int format, bool useDepthBuffer) |
void | CreateBuffer (int width, int height, int inFormat, int format, int minFilter, int magFilter, bool useDepthBuffer) |
void | ReleaseBuffer () |
void | CheckFrameBufferStatus (String phase) |
void | ActivateFrameBuffer () |
void | SwapTextureBuffer () |
void | DeActivateFrameBuffer () |
void | BindTexture () |
void | BindAndActivateTexture (int target) |
void | BindBackTexture () |
void | UnBindFBOTexture () |
void | UnBindAndDeactivateTexture (int target) |
void | RenderTextureToViewPort (int width, int height) |
float[] | GetTextureData () |
void | GetTextureData (out float[] data, out int width, out int height) |
void | GetTextureData (ref float[] data) |
void | SetTextureData (float[] data) |
Properties | |
int | Width [get] |
int | Height [get] |
Powertek.OpenGl.PtFBODataRW.PtFBODataRW | ( | ) |
PtFBODataRW FBO Data (float) with ReadWrite Access (GPGPU Ping Pong).
void Powertek.OpenGl.PtFBODataRW.ActivateFrameBuffer | ( | ) |
Activate the FrameBuffer.
void Powertek.OpenGl.PtFBODataRW.BindAndActivateTexture | ( | int | target | ) |
BindAndActivateTexture.
target |
void Powertek.OpenGl.PtFBODataRW.BindBackTexture | ( | ) |
BindBackTexture.
void Powertek.OpenGl.PtFBODataRW.BindTexture | ( | ) |
BindTexture.
void Powertek.OpenGl.PtFBODataRW.CheckFrameBufferStatus | ( | String | phase | ) |
Check Status of the FBO.
phase |
void Powertek.OpenGl.PtFBODataRW.CreateBuffer | ( | int | width, | |
int | height, | |||
int | inFormat, | |||
int | format, | |||
int | minFilter, | |||
int | magFilter, | |||
bool | useDepthBuffer | |||
) |
CreateBuffer minMagFilter = Gl.GL_NEAREST, Gl.GL_LINEAR.
width | ||
height | ||
inFormat | ||
format | ||
minFilter | ||
magFilter | ||
useDepthBuffer |
void Powertek.OpenGl.PtFBODataRW.CreateBuffer | ( | int | width, | |
int | height, | |||
int | inFormat, | |||
int | format, | |||
bool | useDepthBuffer | |||
) |
CreateBuffer minMagFilter = Gl.GL_NEAREST, Gl.GL_LINEAR.
width | ||
height | ||
inFormat | ||
format | ||
useDepthBuffer |
void Powertek.OpenGl.PtFBODataRW.DeActivateFrameBuffer | ( | ) |
DeActivate the FrameBuffer.
void Powertek.OpenGl.PtFBODataRW.GetTextureData | ( | ref float[] | data | ) |
Returns the data of the current read Buffer.
data |
void Powertek.OpenGl.PtFBODataRW.GetTextureData | ( | out float[] | data, | |
out int | width, | |||
out int | height | |||
) |
Returns the data of the current read Buffer.
data | ||
width | ||
height |
float [] Powertek.OpenGl.PtFBODataRW.GetTextureData | ( | ) |
Returns the data of the current read Buffer.
void Powertek.OpenGl.PtFBODataRW.ReleaseBuffer | ( | ) |
Release the Buffer.
void Powertek.OpenGl.PtFBODataRW.RenderTextureToViewPort | ( | int | width, | |
int | height | |||
) |
RenderTextureToViewPort.
width | ||
height |
void Powertek.OpenGl.PtFBODataRW.SetTextureData | ( | float[] | data | ) |
Set the data of both Buffers.
data |
void Powertek.OpenGl.PtFBODataRW.SwapTextureBuffer | ( | ) |
SwapTextureBuffer.
void Powertek.OpenGl.PtFBODataRW.UnBindAndDeactivateTexture | ( | int | target | ) |
UnBindAndDeactivateTexture.
target |
void Powertek.OpenGl.PtFBODataRW.UnBindFBOTexture | ( | ) |
UnBindFBOTexture.
int Powertek.OpenGl.PtFBODataRW.Height [get] |
FBO Height.
int Powertek.OpenGl.PtFBODataRW.Width [get] |
FBO Width.