Class: TextureBuffer
Lua
C++
Edit

TextureBuffer:SetColorAttachment

This method sets a texture buffer's color texture.

Syntax

Parameter Description
texture color attachment to set
index color attachment index to use, from 1 to 4

Returns

Returns true of the color attachment is set, otherwise false is returned.

Remarks

The specified texture must use a renderable color format.

The specified texture must have been created with the TEXTURE_BUFFER flag.

The specified texture must be the same dimensions as the texture buffer.

The index value must be between 1 and the value returned by TextureBuffer::CountColorAttachments.

Copyright © 2006-2025 Leadwerks Software.
All rights reserved.
Leadwerks 4 Documentation