Home -> IFrameBuffer -> BindTexture

Description

The BindTexture method binds the specified texture to the framebuffer.

Usage

SuccessToken BindTexture(ITextureBuffer2D* texture, AttachmentType type, size_t index = 0);

Argument list

texture [ITextureBuffer2D*]
The texture to attach to the framebuffer.
type [AttachmentType]
The attachment type to bind.
index [size_t]
The attachment index within the specified attachment type.

Return value

[SuccessToken]
True if the operation succeeded, false otherwise. An assertion will be raised in debug builds if the result is not tested.

See also