Signature
glFramebufferTexture(
GLenum (
target
)
,
GLenum (
attachment
)
,
GLuint (
texture
)
,
GLint (
level
)
)-> void
glFramebufferTexture1D(
GLenum (
target
)
,
GLenum (
attachment
)
,
GLenum (
textarget
)
,
GLuint (
texture
)
,
GLint (
level
)
)-> void
glFramebufferTexture2D(
GLenum (
target
)
,
GLenum (
attachment
)
,
GLenum (
textarget
)
,
GLuint (
texture
)
,
GLint (
level
)
)-> void
Parameters
Variables | Description |
---|---|
target |
Specifies the framebuffer target.
target
must be
GL_DRAW_FRAMEBUFFER
,
GL_READ_FRAMEBUFFER
, or
GL_FRAMEBUFFER
.
GL_FRAMEBUFFER
is equivalent to
GL_DRAW_FRAMEBUFFER
.
|
attachment |
Specifies the attachment point of the framebuffer.
attachment
must be
GL_COLOR_ATTACHMENT
i
,
GL_DEPTH_ATTACHMENT
,
GL_STENCIL_ATTACHMENT
or
GL_DEPTH_STENCIL_ATTACHMENT
.
|
textarget |
For
glFramebufferTexture1D
,
glFramebufferTexture2D
and
glFramebufferTexture3D
, specifies what type of texture is expected
in the
texture
parameter, or for cube map textures, which face is to be attached.
|
texture |
Specifies the texture object to attach to the framebuffer attachment point named by
attachment
.
|
level |
Specifies the mipmap level of
texture
to attach.
|
Sample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
glFramebufferTexture2D