Lines Matching defs:tnl

42 #include "tnl.h"
51 TNLcontext *tnl;
56 ctx->swtnl_context = tnl = calloc(1, sizeof(TNLcontext));
58 if (!tnl) {
64 tnl->vb.Size = ctx->Const.MaxArrayLockSize + MAX_CLIPPED_VERTICES;
67 /* Initialize tnl state.
75 _math_matrix_ctr(&tnl->_WindowMap);
77 tnl->NeedNdcCoords = GL_TRUE;
78 tnl->AllowVertexFog = GL_TRUE;
79 tnl->AllowPixelFog = GL_TRUE;
83 tnl->Driver.Render.PrimTabElts = _tnl_render_tab_elts;
84 tnl->Driver.Render.PrimTabVerts = _tnl_render_tab_verts;
85 tnl->Driver.NotifyMaterialChange = _tnl_validate_shine_tables;
87 tnl->nr_blocks = 0;
90 tnl->_ShineTabList = MALLOC_STRUCT( tnl_shine_tab );
91 make_empty_list( tnl->_ShineTabList );
97 insert_at_tail( tnl->_ShineTabList, s );
104 _tnl_init_inputs(&tnl->draw_arrays);
114 TNLcontext *tnl = TNL_CONTEXT(ctx);
117 foreach_s( s, tmps, tnl->_ShineTabList ) {
120 free( tnl->_ShineTabList );
124 free(tnl);
132 TNLcontext *tnl = TNL_CONTEXT(ctx);
141 assert(tnl->AllowVertexFog || tnl->AllowPixelFog);
142 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST))
143 || !tnl->AllowPixelFog) && !fp;
146 tnl->pipeline.new_state |= new_state;
148 /* Calculate tnl->render_inputs. This bitmask indicates which vertex
151 tnl->render_inputs_bitset = BITFIELD64_BIT(_TNL_ATTRIB_POS);
154 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_COLOR0);
158 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_COLOR1);
164 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_TEX(i));
172 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_FOG);
177 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_EDGEFLAG);
180 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_TEX0);
183 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_POINTSIZE);
191 tnl->render_inputs_bitset |= BITFIELD64_BIT(_TNL_ATTRIB_GENERIC(i));
199 _math_matrix_viewport(&tnl->_WindowMap, scale, translate,
231 TNLcontext *tnl = TNL_CONTEXT(ctx);
232 tnl->NeedNdcCoords = mode;
238 TNLcontext *tnl = TNL_CONTEXT(ctx);
239 tnl->AllowVertexFog = value;
240 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST))
241 || !tnl->AllowPixelFog) && !ctx->FragmentProgram._Current;
248 TNLcontext *tnl = TNL_CONTEXT(ctx);
249 tnl->AllowPixelFog = value;
250 tnl->_DoVertexFog = ((tnl->AllowVertexFog && (ctx->Hint.Fog != GL_NICEST))
251 || !tnl->AllowPixelFog) && !ctx->FragmentProgram._Current;