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