Public Member Functions | |
PtFBO () | |
PtFBO (String bufferName) | |
object | Clone () |
void | CreateBuffer (int width, int height) |
void | CreateBuffer (int width, int height, int inFormat, int format) |
void | CreateBuffer (int width, int height, int inFormat, int format, int minFilter, int magFilter) |
void | CreateBuffer (PtFBO fbo, bool swapY) |
void | ReleaseBuffer () |
void | CheckFrameBufferStatus (String phase) |
void | ActivateFrameBuffer () |
void | SetViewPortToBuffer () |
void | SetViewPortToBuffer (double camPerspective, double zNear, double zFar, Vertex3f clearColor) |
void | DeActivateFrameBuffer () |
void | BindTexture () |
void | BindAndActivateTexture (int target) |
void | UnBindFBOTexture () |
void | ClearBuffer (Vertex3f clearColor) |
void | CopyTexture (PtFBO fbo, bool swapY) |
void | RenderTextureToViewPort (int width, int height, bool invert) |
void | GetTextureData (out Byte[] data, out int width, out int height) |
Byte[] | GetTextureData () |
void | SetTextureData (Byte[] data) |
Static Public Member Functions | |
static void | UnBindAndDeactivateTexture (int target) |
Properties | |
bool | IsInitialized [get] |
bool | IsEmpty [get] |
int | Width [get] |
int | Height [get] |
int | TextureID [get] |
int | FrameBufferID [get] |
int | InternalFormat [get] |
int | Format [get] |
int | MinFilter [get] |
int | MagFilter [get] |
String | BufferName [get] |
Powertek.OpenGl.PtFBO.PtFBO | ( | ) |
Powertek.OpenGl.PtFBO.PtFBO | ( | String | bufferName | ) |
void Powertek.OpenGl.PtFBO.ActivateFrameBuffer | ( | ) |
ActivateFrameBuffer.
void Powertek.OpenGl.PtFBO.BindAndActivateTexture | ( | int | target | ) |
BindAndActivateTexture.
target |
void Powertek.OpenGl.PtFBO.BindTexture | ( | ) |
BindTexture.
void Powertek.OpenGl.PtFBO.CheckFrameBufferStatus | ( | String | phase | ) |
CheckFrameBufferStatus.
phase |
void Powertek.OpenGl.PtFBO.ClearBuffer | ( | Vertex3f | clearColor | ) |
ClearBuffer.
clearColor |
object Powertek.OpenGl.PtFBO.Clone | ( | ) |
Clone object, deep copy object...
void Powertek.OpenGl.PtFBO.CopyTexture | ( | PtFBO | fbo, | |
bool | swapY | |||
) |
CopyTexture.
fbo | ||
swapY |
void Powertek.OpenGl.PtFBO.CreateBuffer | ( | PtFBO | fbo, | |
bool | swapY | |||
) |
CreateBuffer.
fbo | ||
swapY |
void Powertek.OpenGl.PtFBO.CreateBuffer | ( | int | width, | |
int | height, | |||
int | inFormat, | |||
int | format, | |||
int | minFilter, | |||
int | magFilter | |||
) |
Create the buffer.
width | ||
height | ||
inFormat | GL_RGB8 etc | |
format | GL_BGRA or GL_RGBA | |
minFilter | GL_NEAREST, GL_LINEAR | |
magFilter | GL_NEAREST, GL_LINEAR |
void Powertek.OpenGl.PtFBO.CreateBuffer | ( | int | width, | |
int | height, | |||
int | inFormat, | |||
int | format | |||
) |
Create the buffer, minFilter = GL_NEAREST, magFilter = GL_NEAREST;.
width | ||
height | ||
inFormat | GL_RGB8 etc | |
format | GL_BGRA or GL_RGBA |
void Powertek.OpenGl.PtFBO.CreateBuffer | ( | int | width, | |
int | height | |||
) |
Create the buffer, GL_RGB8, GL_BGRA, minFilter = GL_NEAREST, magFilter = GL_NEAREST;.
width | ||
height |
void Powertek.OpenGl.PtFBO.DeActivateFrameBuffer | ( | ) |
DeActivateFrameBuffer.
Byte [] Powertek.OpenGl.PtFBO.GetTextureData | ( | ) |
Return TextureData as Byte Array.
void Powertek.OpenGl.PtFBO.GetTextureData | ( | out Byte[] | data, | |
out int | width, | |||
out int | height | |||
) |
Return TextureData as Byte Array.
data | 4 * Width * Height as Byte | |
width | ||
height |
void Powertek.OpenGl.PtFBO.ReleaseBuffer | ( | ) |
ReleaseBuffer.
void Powertek.OpenGl.PtFBO.RenderTextureToViewPort | ( | int | width, | |
int | height, | |||
bool | invert | |||
) |
RenderTextureToViewPort.
width | ||
height | ||
invert |
void Powertek.OpenGl.PtFBO.SetTextureData | ( | Byte[] | data | ) |
Set Texture Data.
data | 4 * Width * Height |
void Powertek.OpenGl.PtFBO.SetViewPortToBuffer | ( | double | camPerspective, | |
double | zNear, | |||
double | zFar, | |||
Vertex3f | clearColor | |||
) |
SetViewPortToBuffer.
camPerspective | ||
zNear | ||
zFar | ||
clearColor |
void Powertek.OpenGl.PtFBO.SetViewPortToBuffer | ( | ) |
SetViewPortToBuffer.
static void Powertek.OpenGl.PtFBO.UnBindAndDeactivateTexture | ( | int | target | ) | [static] |
UnBindAndDeactivateTexture.
target |
void Powertek.OpenGl.PtFBO.UnBindFBOTexture | ( | ) |
UnBindFBOTexture.
String Powertek.OpenGl.PtFBO.BufferName [get] |
BufferName.
int Powertek.OpenGl.PtFBO.Format [get] |
Return Format.
int Powertek.OpenGl.PtFBO.FrameBufferID [get] |
Return Framebuffer ID.
int Powertek.OpenGl.PtFBO.Height [get] |
Return FBO Height.
int Powertek.OpenGl.PtFBO.InternalFormat [get] |
Return InternalFormat.
bool Powertek.OpenGl.PtFBO.IsEmpty [get] |
Return Buffer Status.
bool Powertek.OpenGl.PtFBO.IsInitialized [get] |
Return IsInitialized.
int Powertek.OpenGl.PtFBO.MagFilter [get] |
MagFilter.
int Powertek.OpenGl.PtFBO.MinFilter [get] |
MinFilter.
int Powertek.OpenGl.PtFBO.TextureID [get] |
Return FBO Texture ID.
int Powertek.OpenGl.PtFBO.Width [get] |
Return FBO Width.