KX_2DFilterOffScreen(EXP_Value)¶
base class — EXP_Value
- class bge.types.KX_2DFilterFrameBuffer¶
2D filter custom off screen (framebuffer in 0.3.0).
- width¶
The off screen width, always canvas width in 0.3.0 (read-only).
- Type:
integer
- height¶
The off screen height, always canvas height in 0.3.0 (read-only).
- Type:
integer
- colorBindCodes¶
The bind code of the color textures attached to the off screen (read-only).
Warning
If the off screen can be resized dynamically (
width
ofheight
equal to -1), the bind codes may change.- Type:
list of 8 integers
- depthBindCode¶
The bind code of the depth texture attached to the off screen (read-only).
Warning
If the off screen can be resized dynamically (
width
ofheight
equal to -1), the bind code may change.- Type:
integer
- getColorTexture(slot=0)¶
- Returns the color buffer as texture.
- Parameters:
slot (integer) – index of the slot (0-7).
- Returns:
Texture object.
- Return type:
- getDepthTexture()¶
- Returns the depth buffer as texture.
- Returns:
Texture object.
- Return type: