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

ss_context.c File Reference

#include "main/glheader.h"
#include "main/imports.h"
#include "main/colormac.h"
#include "tnl/tnl.h"
#include "tnl/t_context.h"
#include "tnl/t_pipeline.h"
#include "tnl/t_vertex.h"
#include "swrast_setup.h"
#include "ss_context.h"
#include "ss_triangle.h"

Defines

#define _SWSETUP_NEW_RENDERINDEX   (_NEW_POLYGON|_NEW_LIGHT|_NEW_PROGRAM)
#define VARYING_EMIT_STYLE   EMIT_4F
#define SWZ   ((SWvertex *)0)
 Helper macros for setup_vertex_format().
#define SWOffset(MEMBER)   (((char *)&(SWZ->MEMBER)) - ((char *)SWZ))
#define EMIT_ATTR(ATTR, STYLE, MEMBER)

Functions

GLboolean _swsetup_CreateContext (GLcontext *ctx)
void _swsetup_DestroyContext (GLcontext *ctx)
static void _swsetup_RenderPrimitive (GLcontext *ctx, GLenum mode)
static void setup_vertex_format (GLcontext *ctx)
 Tell the tnl module how to build SWvertex objects for swrast.
static void _swsetup_RenderStart (GLcontext *ctx)
 Prepare to render a vertex buffer.
static void _swsetup_RenderFinish (GLcontext *ctx)
void _swsetup_InvalidateState (GLcontext *ctx, GLuint new_state)
void _swsetup_Wakeup (GLcontext *ctx)
void _swsetup_Translate (GLcontext *ctx, const void *vertex, SWvertex *dest)
 Populate a swrast SWvertex from an attrib-style vertex.


Define Documentation

#define _SWSETUP_NEW_RENDERINDEX   (_NEW_POLYGON|_NEW_LIGHT|_NEW_PROGRAM)

#define EMIT_ATTR ( ATTR,
STYLE,
MEMBER   ) 

Value:

do {                                            \
   map[e].attrib = (ATTR);                      \
   map[e].format = (STYLE);                     \
   map[e].offset = SWOffset(MEMBER);            \
   e++;                                         \
} while (0)

#define SWOffset ( MEMBER   )     (((char *)&(SWZ->MEMBER)) - ((char *)SWZ))

#define SWZ   ((SWvertex *)0)

Helper macros for setup_vertex_format().

#define VARYING_EMIT_STYLE   EMIT_4F


Function Documentation

GLboolean _swsetup_CreateContext ( GLcontext ctx  ) 

void _swsetup_DestroyContext ( GLcontext ctx  ) 

void _swsetup_InvalidateState ( GLcontext ctx,
GLuint  new_state 
)

static void _swsetup_RenderFinish ( GLcontext ctx  )  [static]

static void _swsetup_RenderPrimitive ( GLcontext ctx,
GLenum  mode 
) [static]

static void _swsetup_RenderStart ( GLcontext ctx  )  [static]

Prepare to render a vertex buffer.

Called via tnl->Driver.Render.Start.

void _swsetup_Translate ( GLcontext ctx,
const void *  vertex,
SWvertex dest 
)

Populate a swrast SWvertex from an attrib-style vertex.

XXX try to limit these loops someday

void _swsetup_Wakeup ( GLcontext ctx  ) 

static void setup_vertex_format ( GLcontext ctx  )  [static]

Tell the tnl module how to build SWvertex objects for swrast.

We'll build the map[] array with that info and pass it to _tnl_install_attrs().


Generated on Sun Sep 27 06:48:07 2009 for Mesa swrast_setup by  doxygen 1.5.4