HomeSort by: relevance | last modified time | path
    Searched refs:Light (Results 1 - 25 of 140) sorted by relevancy

1 2 3 4 5 6

  /xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
light.c 32 #include "light.h"
47 if (ctx->Light.ShadeModel == mode)
56 ctx->Light.ShadeModel = mode;
76 if (ctx->Light.ProvokingVertex == mode)
89 ctx->Light.ProvokingVertex = mode;
95 * per-light state.
103 struct gl_light *light; local
106 light = &ctx->Light.Light[lnum]
627 struct gl_light *light = &ctx->Light.Light[i]; local
637 struct gl_light *light = &ctx->Light.Light[i]; local
661 struct gl_light *light = &ctx->Light.Light[i]; local
671 struct gl_light *light = &ctx->Light.Light[i]; local
682 struct gl_light *light = &ctx->Light.Light[i]; local
692 struct gl_light *light = &ctx->Light.Light[i]; local
892 struct gl_light *light = &ctx->Light.Light[i]; local
963 struct gl_light *light = &ctx->Light.Light[i]; local
    [all...]
state.h 77 if (ctx->Light.Enabled &&
78 ctx->Light.Model.ColorControl == GL_SEPARATE_SPECULAR_COLOR)
115 return ctx->Light.Enabled && ctx->Light.Model.TwoSide;
  /xsrc/external/mit/MesaLib/dist/src/mesa/main/
light.c 31 #include "light.h"
46 if (ctx->Light.ShadeModel == mode)
55 ctx->Light.ShadeModel = mode;
75 if (ctx->Light.ProvokingVertex == mode)
88 ctx->Light.ProvokingVertex = mode;
94 * per-light state.
102 struct gl_light *light; local
105 light = &ctx->Light.Light[lnum]
691 struct gl_light *light = &ctx->Light.Light[i]; local
702 struct gl_light *light = &ctx->Light.Light[i]; local
727 struct gl_light *light = &ctx->Light.Light[i]; local
738 struct gl_light *light = &ctx->Light.Light[i]; local
750 struct gl_light *light = &ctx->Light.Light[i]; local
761 struct gl_light *light = &ctx->Light.Light[i]; local
967 struct gl_light *light = &ctx->Light.Light[i]; local
1045 struct gl_light *light = &ctx->Light.Light[i]; local
    [all...]
state.h 71 if (ctx->Light.Enabled &&
72 ctx->Light.Model.ColorControl == GL_SEPARATE_SPECULAR_COLOR)
109 return ctx->Light.Enabled && ctx->Light.Model.TwoSide;
  /xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/nouveau/
nv10_state_tnl.c 61 unsigned mask = get_material_bitmask(ctx->Light._ColorMaterialBitmask);
64 PUSH_DATA (push, ctx->Light.ColorMaterialEnabled ? mask : 0);
186 en_lights |= get_light_mode(&ctx->Light.Light[i]) << 2 * i;
191 PUSH_DATAb(push, ctx->Light.Enabled);
200 struct gl_lightmodel *m = &ctx->Light.Model;
210 (!ctx->Light.Enabled && ctx->Fog.ColorSumEnabled ?
286 struct gl_light *l = &ctx->Light.Light[i];
287 struct gl_light_uniforms *lu = &ctx->Light.LightSource[i]
    [all...]
nv20_state_tnl.c 93 unsigned mask = get_material_bitmask(ctx->Light._ColorMaterialBitmask);
96 PUSH_DATA (push, ctx->Light.ColorMaterialEnabled ? mask : 0);
180 struct gl_lightmodel *m = &ctx->Light.Model;
194 PUSH_DATAb(push, ctx->Light.Model.TwoSide);
202 struct gl_light *l = &ctx->Light.Light[i];
203 struct gl_light_uniforms *lu = &ctx->Light.LightSource[i];
233 (ctx->Light.ColorMaterialEnabled && \
234 ctx->Light._ColorMaterialBitmask & (1 << MAT_ATTRIB_##attr(side)))
241 float (*mat)[4] = ctx->Light.Material.Attrib
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/nouveau/
nv10_state_tnl.c 61 unsigned mask = get_material_bitmask(ctx->Light._ColorMaterialBitmask);
64 PUSH_DATA (push, ctx->Light.ColorMaterialEnabled ? mask : 0);
186 en_lights |= get_light_mode(&ctx->Light.Light[i]) << 2 * i;
191 PUSH_DATAb(push, ctx->Light.Enabled);
200 struct gl_lightmodel *m = &ctx->Light.Model;
210 (!ctx->Light.Enabled && ctx->Fog.ColorSumEnabled ?
286 struct gl_light *l = &ctx->Light.Light[i];
316 (ctx->Light.ColorMaterialEnabled &&
    [all...]
nv20_state_tnl.c 93 unsigned mask = get_material_bitmask(ctx->Light._ColorMaterialBitmask);
96 PUSH_DATA (push, ctx->Light.ColorMaterialEnabled ? mask : 0);
180 struct gl_lightmodel *m = &ctx->Light.Model;
194 PUSH_DATAb(push, ctx->Light.Model.TwoSide);
202 struct gl_light *l = &ctx->Light.Light[i];
232 (ctx->Light.ColorMaterialEnabled && \
233 ctx->Light._ColorMaterialBitmask & (1 << MAT_ATTRIB_##attr(side)))
240 float (*mat)[4] = ctx->Light.Material.Attrib;
246 COPY_3V(c_factor, ctx->Light.Model.Ambient)
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/program/
prog_statevars.c 67 const struct gl_material *mat = &ctx->Light.Material;
101 /* state[1] is the light number */
103 /* state[2] is the light attribute */
106 COPY_4V(value, ctx->Light.Light[ln].Ambient);
109 COPY_4V(value, ctx->Light.Light[ln].Diffuse);
112 COPY_4V(value, ctx->Light.Light[ln].Specular);
115 COPY_4V(value, ctx->Light.Light[ln].EyePosition)
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/mesa/tnl/
t_vb_lighttmp.h 52 GLfloat (*base)[3] = ctx->Light._BaseColor;
76 sumA[0] = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_DIFFUSE][3];
81 sumA[1] = ctx->Light.Material.Attrib[MAT_ATTRIB_BACK_DIFFUSE][3];
94 sumA[0] = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_DIFFUSE][3];
96 sumA[1] = ctx->Light.Material.Attrib[MAT_ATTRIB_BACK_DIFFUSE][3];
108 /* Add contribution from each enabled light source */
109 mask = ctx->Light._EnabledLights;
112 struct gl_light *light = &ctx->Light.Light[l] local
292 struct gl_light *light = &ctx->Light.Light[l]; local
428 const struct gl_light *light = local
587 const struct gl_light *light = &ctx->Light.Light[l]; local
    [all...]
t_vb_rendertmp.h 85 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
110 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
133 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
141 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
149 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
175 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
182 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
207 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT) {
233 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
269 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT
    [all...]
t_vb_light.c 28 #include "main/light.h"
99 * P = light source position
104 * // light at infinity
179 shininess = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_SHININESS][0];
183 shininess = ctx->Light.Material.Attrib[MAT_ATTRIB_BACK_SHININESS][0];
209 /* recompute derived light/material values */
235 if (ctx->Light.ColorMaterialEnabled) {
236 GLbitfield bitmask = ctx->Light._ColorMaterialBitmask;
256 store->mat[j].current = ctx->Light.Material.Attrib[attr];
337 if (!ctx->Light.Enabled || ctx->VertexProgram._Current
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/tnl/
t_vb_lighttmp.h 52 GLfloat (*base)[3] = ctx->Light._BaseColor;
76 sumA[0] = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_DIFFUSE][3];
81 sumA[1] = ctx->Light.Material.Attrib[MAT_ATTRIB_BACK_DIFFUSE][3];
94 sumA[0] = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_DIFFUSE][3];
96 sumA[1] = ctx->Light.Material.Attrib[MAT_ATTRIB_BACK_DIFFUSE][3];
108 /* Add contribution from each enabled light source */
109 mask = ctx->Light._EnabledLights;
112 struct gl_light *light = &ctx->Light.Light[l] local
291 struct gl_light *light = &ctx->Light.Light[l]; local
426 const struct gl_light *light = local
585 const struct gl_light *light = &ctx->Light.Light[l]; local
    [all...]
t_vb_rendertmp.h 85 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
110 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
133 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
141 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
149 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
175 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
182 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
207 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT) {
233 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT)
269 if (ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION_EXT
    [all...]
t_vb_light.c 28 #include "main/light.h"
99 * P = light source position
104 * // light at infinity
179 shininess = ctx->Light.Material.Attrib[MAT_ATTRIB_FRONT_SHININESS][0];
183 shininess = ctx->Light.Material.Attrib[MAT_ATTRIB_BACK_SHININESS][0];
209 /* recompute derived light/material values */
235 if (ctx->Light.ColorMaterialEnabled) {
236 GLbitfield bitmask = ctx->Light._ColorMaterialBitmask;
256 store->mat[j].current = ctx->Light.Material.Attrib[attr];
337 if (!ctx->Light.Enabled || ctx->VertexProgram._Current
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/x86/
gen_matypes.c 118 OFFSET( "CTX_LIGHT_ENABLED ", struct gl_context, Light.Enabled );
119 OFFSET( "CTX_LIGHT_SHADE_MODEL ", struct gl_context, Light.ShadeModel );
120 OFFSET( "CTX_LIGHT_COLOR_MAT_FACE ", struct gl_context, Light.ColorMaterialFace );
121 OFFSET( "CTX_LIGHT_COLOR_MAT_MODE ", struct gl_context, Light.ColorMaterialMode );
122 OFFSET( "CTX_LIGHT_COLOR_MAT_MASK ", struct gl_context, Light._ColorMaterialBitmask );
123 OFFSET( "CTX_LIGHT_COLOR_MAT_ENABLED ", struct gl_context, Light.ColorMaterialEnabled );
124 OFFSET( "CTX_LIGHT_ENABLED_LIGHTS ", struct gl_context, Light._EnabledLights );
125 OFFSET( "CTX_LIGHT_NEED_VERTS ", struct gl_context, Light._NeedVertices );
126 OFFSET( "CTX_LIGHT_BASE_COLOR ", struct gl_context, Light._BaseColor );
  /xsrc/external/mit/MesaLib/dist/src/mesa/tnl_dd/
t_dd_unfilled.h 48 if (ctx->Light.ShadeModel == GL_FLAT && HAVE_HW_FLATSHADE) {
86 if (ctx->Light.ShadeModel == GL_FLAT && HAVE_HW_FLATSHADE) {
116 if (ctx->Light.ShadeModel == GL_FLAT && HAVE_HW_FLATSHADE) {
149 if (ctx->Light.ShadeModel == GL_FLAT && HAVE_HW_FLATSHADE) {
t_dd_dmatmp.h 319 } else if (ctx->Light.ShadeModel == GL_SMOOTH ||
320 ctx->Light.ProvokingVertex == GL_FIRST_VERTEX_CONVENTION) {
335 if (ctx->Light.ShadeModel == GL_SMOOTH) {
373 if (ctx->Light.ShadeModel == GL_SMOOTH ||
374 ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION) {
466 ok = (HAVE_POLYGONS) || ctx->Light.ShadeModel == GL_SMOOTH ||
467 ctx->Light.ProvokingVertex == GL_FIRST_VERTEX_CONVENTION;
470 ok = VB->Elts || ctx->Light.ShadeModel == GL_SMOOTH;
473 ok = ctx->Light.ShadeModel == GL_SMOOTH ||
474 ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/tnl_dd/
t_dd_unfilled.h 48 if (ctx->Light.ShadeModel == GL_FLAT && HAVE_HW_FLATSHADE) {
86 if (ctx->Light.ShadeModel == GL_FLAT && HAVE_HW_FLATSHADE) {
116 if (ctx->Light.ShadeModel == GL_FLAT && HAVE_HW_FLATSHADE) {
149 if (ctx->Light.ShadeModel == GL_FLAT && HAVE_HW_FLATSHADE) {
t_dd_dmatmp.h 319 } else if (ctx->Light.ShadeModel == GL_SMOOTH ||
320 ctx->Light.ProvokingVertex == GL_FIRST_VERTEX_CONVENTION) {
335 if (ctx->Light.ShadeModel == GL_SMOOTH) {
373 if (ctx->Light.ShadeModel == GL_SMOOTH ||
374 ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION) {
466 ok = (HAVE_POLYGONS) || ctx->Light.ShadeModel == GL_SMOOTH ||
467 ctx->Light.ProvokingVertex == GL_FIRST_VERTEX_CONVENTION;
470 ok = VB->Elts || ctx->Light.ShadeModel == GL_SMOOTH;
473 ok = ctx->Light.ShadeModel == GL_SMOOTH ||
474 ctx->Light.ProvokingVertex == GL_LAST_VERTEX_CONVENTION
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/mesa/program/
prog_statevars.c 93 const struct gl_material *mat = &ctx->Light.Material;
108 /* state[1] is the light number */
110 /* state[2] is the light attribute */
114 COPY_4V(value, (float*)&ctx->Light.LightSource[ln] + index * 4);
116 value[0] = ctx->Light.LightSource[ln].SpotCutoff;
124 STATIC_ASSERT(ARRAY_SIZE(ctx->Light.LightSourceData) == 29 * MAX_LIGHTS);
127 assert(state[1] + state[2] <= ARRAY_SIZE(ctx->Light.LightSourceData));
128 memcpy(value, &ctx->Light.LightSourceData[state[1]],
137 &ctx->Light.LightSource[first + i].ConstantAttenuation);
143 COPY_4V(value, ctx->Light.Model.Ambient)
196 unsigned light = first_light + i; local
222 unsigned light = first_light + i; local
248 unsigned light = first_light + i; local
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/radeon/
radeon_state_init.c 218 TCL_CHECK( tcl_lighting, ctx->Light.Enabled, 0 )
219 TCL_CHECK( tcl_lighting_add4, ctx->Light.Enabled, 4 )
220 TCL_CHECK( tcl_eyespace_or_lighting_add4, ctx->_NeedEyeCoords || ctx->Light.Enabled, 4 )
221 TCL_CHECK( tcl_lit0_add6, ctx->Light.Enabled && ctx->Light.Light[0].Enabled, 6 )
222 TCL_CHECK( tcl_lit1_add6, ctx->Light.Enabled && ctx->Light.Light[1].Enabled, 6 )
223 TCL_CHECK( tcl_lit2_add6, ctx->Light.Enabled && ctx->Light.Light[2].Enabled, 6
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/radeon/
radeon_state_init.c 217 TCL_CHECK( tcl_lighting, ctx->Light.Enabled, 0 )
218 TCL_CHECK( tcl_lighting_add4, ctx->Light.Enabled, 4 )
219 TCL_CHECK( tcl_eyespace_or_lighting_add4, ctx->_NeedEyeCoords || ctx->Light.Enabled, 4 )
220 TCL_CHECK( tcl_lit0_add6, ctx->Light.Enabled && ctx->Light.Light[0].Enabled, 6 )
221 TCL_CHECK( tcl_lit1_add6, ctx->Light.Enabled && ctx->Light.Light[1].Enabled, 6 )
222 TCL_CHECK( tcl_lit2_add6, ctx->Light.Enabled && ctx->Light.Light[2].Enabled, 6
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/mesa/drivers/dri/i965/
brw_clip.c 112 key.pv_first = (ctx->Light.ProvokingVertex == GL_FIRST_VERTEX_CONVENTION);
190 if (ctx->Light.Model.TwoSide &&
198 if (ctx->Light.Model.TwoSide &&
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/dri/i965/
brw_clip.c 112 key.pv_first = (ctx->Light.ProvokingVertex == GL_FIRST_VERTEX_CONVENTION);
190 if (ctx->Light.Model.TwoSide &&
198 if (ctx->Light.Model.TwoSide &&

Completed in 27 milliseconds

1 2 3 4 5 6