core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

texrender.h File Reference


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)


Function Documentation

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.

Parameters:
fb the framebuffer object the texture is being bound to
att the fb attachment point of the texture
See also:
_mesa_framebuffer_renderbuffer


Generated on Sun Sep 27 06:47:46 2009 for Mesa Main by  doxygen 1.5.4