attach Texture
fun attachTexture(dc: DrawContext, texture: Texture, attachment: Int, textarget: Int = GL_TEXTURE_2D): Boolean
Attach a texture to the given FBO attachment point. The default textarget is GL_TEXTURE_2D; pass a specific cube-map face target (e.g. GL_TEXTURE_CUBE_MAP_POSITIVE_X) to attach a face of a cube-map texture. The same cube-map texture can be re-attached to the same FBO multiple times with different faces to render into all six faces of one cube map without rebinding the FBO.