Functions | |
void | _mesa_render_texture (GLcontext *ctx, struct gl_framebuffer *fb, struct gl_renderbuffer_attachment *att) |
Called when rendering to a texture image begins, or when changing the dest mipmap level, cube face, etc. | |
void | _mesa_finish_render_texture (GLcontext *ctx, struct gl_renderbuffer_attachment *att) |
void _mesa_finish_render_texture | ( | GLcontext * | ctx, | |
struct gl_renderbuffer_attachment * | att | |||
) |
void _mesa_render_texture | ( | GLcontext * | ctx, | |
struct gl_framebuffer * | fb, | |||
struct gl_renderbuffer_attachment * | att | |||
) |
Called when rendering to a texture image begins, or when changing the dest mipmap level, cube face, etc.
This is a fallback routine for software render-to-texture.
Called via the glRenderbufferTexture1D/2D/3D() functions and elsewhere (such as glTexImage2D).
The image we're rendering into is att->Texture->Image[att->CubeMapFace][att->TextureLevel]; It'll never be NULL.
fb | the framebuffer object the texture is being bound to | |
att | the fb attachment point of the texture |