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

viewport.c File Reference


Detailed Description

glViewport and glDepthRange functions.

#include "context.h"
#include "macros.h"
#include "viewport.h"

Functions

void GLAPIENTRY _mesa_Viewport (GLint x, GLint y, GLsizei width, GLsizei height)
 Set the viewport.
void _mesa_set_viewport (GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height)
 Set new viewport parameters and update derived state (the _WindowMap matrix).
void GLAPIENTRY _mesa_DepthRange (GLclampd nearval, GLclampd farval)
 Called by glDepthRange.
void _mesa_init_viewport (GLcontext *ctx)
 Initialize the context viewport attribute group.
void _mesa_free_viewport_data (GLcontext *ctx)
 Free the context viewport attribute group data.


Function Documentation

void GLAPIENTRY _mesa_DepthRange ( GLclampd  nearval,
GLclampd  farval 
)

Called by glDepthRange.

Parameters:
nearval specifies the Z buffer value which should correspond to the near clip plane
farval specifies the Z buffer value which should correspond to the far clip plane

void _mesa_free_viewport_data ( GLcontext ctx  ) 

Free the context viewport attribute group data.

Parameters:
ctx the GL context.

void _mesa_init_viewport ( GLcontext ctx  ) 

Initialize the context viewport attribute group.

Parameters:
ctx the GL context.

void _mesa_set_viewport ( GLcontext ctx,
GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)

Set new viewport parameters and update derived state (the _WindowMap matrix).

Usually called from _mesa_Viewport().

Parameters:
ctx GL context.
x,y coordinates of the lower left corner of the viewport rectangle.
width width of the viewport rectangle.
height height of the viewport rectangle.

void GLAPIENTRY _mesa_Viewport ( GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)

Set the viewport.

See also:
Called via glViewport() or display list execution.
Flushes the vertices and calls _mesa_set_viewport() with the given parameters.


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