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

t_dd_dmatmp.h File Reference


Detailed Description

Template for render stages which build and emit vertices directly to fixed-size dma buffers.

Useful for rendering strips and other native primitives where clipping and per-vertex tweaks such as those in t_dd_tritmp.h are not required.

Produces code for both inline triangles and indexed triangles. Where various primitive types are unaccelerated by hardware, the code attempts to fallback to other primitive types (quadstrips to tristrips, lineloops to linestrips), or to indexed vertices.


Defines

#define ELTS_VARS(buf)
#define ALLOC_ELTS(nr)   0
#define EMIT_ELT(offset, elt)
#define EMIT_TWO_ELTS(offset, elt0, elt1)
#define INCR_ELTS(nr)
#define ELT_INIT(prim)
#define GET_CURRENT_VB_MAX_ELTS()   0
#define GET_SUBSEQUENT_VB_MAX_ELTS()   0
#define RELEASE_ELT_VERTS()
#define EMIT_INDEXED_VERTS(ctx, start, count)

Functions

static __inline void *TAG() emit_verts (GLcontext *ctx, GLuint start, GLuint count, void *buf)
static void TAG() render_points_verts (GLcontext *ctx, GLuint start, GLuint count, GLuint flags)
static void TAG() render_lines_verts (GLcontext *ctx, GLuint start, GLuint count, GLuint flags)
static void TAG() render_line_strip_verts (GLcontext *ctx, GLuint start, GLuint count, GLuint flags)
static void TAG() render_line_loop_verts (GLcontext *ctx, GLuint start, GLuint count, GLuint flags)
static void TAG() render_triangles_verts (GLcontext *ctx, GLuint start, GLuint count, GLuint flags)
static void TAG() render_tri_strip_verts (GLcontext *ctx, GLuint start, GLuint count, GLuint flags)
static void TAG() render_tri_fan_verts (GLcontext *ctx, GLuint start, GLuint count, GLuint flags)
static void TAG() render_poly_verts (GLcontext *ctx, GLuint start, GLuint count, GLuint flags)
static void TAG() render_quad_strip_verts (GLcontext *ctx, GLuint start, GLuint count, GLuint flags)
static void TAG() render_quads_verts (GLcontext *ctx, GLuint start, GLuint count, GLuint flags)
static void TAG() render_noop (GLcontext *ctx, GLuint start, GLuint count, GLuint flags)
static tnl_render_func TAG (render_tab_verts)[GL_POLYGON+2]
static GLboolean TAG() validate_render (GLcontext *ctx, struct vertex_buffer *VB)


Define Documentation

#define ALLOC_ELTS ( nr   )     0

#define ELT_INIT ( prim   ) 

#define ELTS_VARS ( buf   ) 

#define EMIT_ELT ( offset,
elt   ) 

#define EMIT_INDEXED_VERTS ( ctx,
start,
count   ) 

#define EMIT_TWO_ELTS ( offset,
elt0,
elt1   ) 

 
#define GET_CURRENT_VB_MAX_ELTS (  )     0

 
#define GET_SUBSEQUENT_VB_MAX_ELTS (  )     0

#define INCR_ELTS ( nr   ) 

 
#define RELEASE_ELT_VERTS (  ) 


Function Documentation

static __inline void* TAG() emit_verts ( GLcontext ctx,
GLuint  start,
GLuint  count,
void *  buf 
) [static]

static void TAG() render_line_loop_verts ( GLcontext ctx,
GLuint  start,
GLuint  count,
GLuint  flags 
) [static]

static void TAG() render_line_strip_verts ( GLcontext ctx,
GLuint  start,
GLuint  count,
GLuint  flags 
) [static]

static void TAG() render_lines_verts ( GLcontext ctx,
GLuint  start,
GLuint  count,
GLuint  flags 
) [static]

static void TAG() render_noop ( GLcontext ctx,
GLuint  start,
GLuint  count,
GLuint  flags 
) [static]

static void TAG() render_points_verts ( GLcontext ctx,
GLuint  start,
GLuint  count,
GLuint  flags 
) [static]

static void TAG() render_poly_verts ( GLcontext ctx,
GLuint  start,
GLuint  count,
GLuint  flags 
) [static]

static void TAG() render_quad_strip_verts ( GLcontext ctx,
GLuint  start,
GLuint  count,
GLuint  flags 
) [static]

static void TAG() render_quads_verts ( GLcontext ctx,
GLuint  start,
GLuint  count,
GLuint  flags 
) [static]

static void TAG() render_tri_fan_verts ( GLcontext ctx,
GLuint  start,
GLuint  count,
GLuint  flags 
) [static]

static void TAG() render_tri_strip_verts ( GLcontext ctx,
GLuint  start,
GLuint  count,
GLuint  flags 
) [static]

static void TAG() render_triangles_verts ( GLcontext ctx,
GLuint  start,
GLuint  count,
GLuint  flags 
) [static]

static tnl_render_func TAG ( render_tab_verts   )  [static]

static GLboolean TAG() validate_render ( GLcontext ctx,
struct vertex_buffer VB 
) [static]


Generated on Sun Sep 27 06:48:12 2009 for Mesa tnl_dd by  doxygen 1.5.4