Static methods

@:value({ type : "unsigned_byte", alphaChannel : true })staticcreate3D(size:Int, alphaChannel:Bool = true, type:String = "unsigned_byte"):FoxFramebufferCubemap

Creates a framebuffer with a cubemap attached, this is 6 textures (one for each face of the cube) for color and depth each

Constructor

new()

Methods

@:value({ withStencil : true })setDepthTexture(?texture:FoxTexture, withStencil:Bool = true):Bool

Attaches a depth cubemap texture to this framebuffer.

Setting texture to null removes the attachment.

Parameters:

texture

A valid FoxTextureCubemap (FoxTexture is allowed only if the wrapped GL texture is a cubemap)

Returns:

Always false since the framebuffer doesn't have any starting attachments

setColorTexture(index:Int, ?texture:FoxTexture):Bool

Attaches a color texture to this cubemap, you can also specify a color buffer output (first attachment MUST be 0)

Setting texture to null removes the attachment.

Parameters:

texture

A valid FoxTextureCubemap (FoxTexture is allowed only if the wrapped GL texture is a cubemap)

Returns:

Always false since the framebuffer doesn't have any starting attachments

Inherited Variables

Defined by FoxFramebuffer

@:value(null)glTexture:Texture = null

@:value(null)stencilBuffer:GLRenderbuffer = null

@:value(null)depthBuffer:FoxTexture = null

@:value([])colorBuffers:Array<FoxTexture> = []

@:value(false)hasDepth:Bool = false

@:value(false)hasStencil:Bool = false

@:value(null)context:Context3D = null

@:value([])drawBuffers:Array<Int> = []

read onlywidth:Int

read onlyheight:Int

Inherited Methods

Defined by FoxFramebuffer

privateget_width():Int

privateget_height():Int

private__initTexture():Void

@:value({ destroyBuffers : false })destroy(destroyBuffers:Bool = false):Void