Home
last modified time | relevance | path

Searched refs:light (Results 1 – 25 of 76) sorted by relevance

1234

/external/skia/src/effects/
DSkEmbossMaskFilter.cpp41 SkEmbossMaskFilter::Light light; in CreateEmboss() local
43 memcpy(light.fDirection, direction, sizeof(light.fDirection)); in CreateEmboss()
44 light.fAmbient = SkToU8(am); in CreateEmboss()
45 light.fSpecular = SkToU8(sp); in CreateEmboss()
47 return SkNEW_ARGS(SkEmbossMaskFilter, (light, blurRadius)); in CreateEmboss()
61 SkEmbossMaskFilter::SkEmbossMaskFilter(const Light& light, SkScalar blurRadius) in SkEmbossMaskFilter() argument
62 : fLight(light), fBlurRadius(blurRadius) in SkEmbossMaskFilter()
100 Light light = fLight; in filterMask() local
101 matrix.mapVectors((SkVector*)(void*)light.fDirection, (SkVector*)(void*)fLight.fDirection, 1); in filterMask()
105 SkVector* vec = (SkVector*)(void*)light.fDirection; in filterMask()
[all …]
DSkEmbossMask.cpp93 void SkEmbossMask::Emboss(SkMask* mask, const SkEmbossMaskFilter::Light& light) in Emboss() argument
99 int specular = light.fSpecular; in Emboss()
100 int ambient = light.fAmbient; in Emboss()
101 SkFixed lx = SkScalarToFixed(light.fDirection[0]); in Emboss()
102 SkFixed ly = SkScalarToFixed(light.fDirection[1]); in Emboss()
103 SkFixed lz = SkScalarToFixed(light.fDirection[2]); in Emboss()
/external/quake/quake/src/QW/client/
Dgl_rlight.c94 void R_RenderDlight (dlight_t *light) in R_RenderDlight() argument
104 rad = light->radius * 0.35; in R_RenderDlight()
106 VectorSubtract (light->origin, r_origin, v); in R_RenderDlight()
109 AddLightBlend (1, 0.5, 0, light->radius * 0.0003); in R_RenderDlight()
119 glColor4f (light->color[0], light->color[1], light->color[2], in R_RenderDlight()
120 light->color[3]); in R_RenderDlight()
122 v[i] = light->origin[i] - vpn[i]*rad; in R_RenderDlight()
129 v[j] = light->origin[j] + (vright[j]*(*bub_cos) + in R_RenderDlight()
189 void R_MarkLights (dlight_t *light, int bit, mnode_t *node) in R_MarkLights() argument
200 dist = DotProduct (light->origin, splitplane->normal) - splitplane->dist; in R_MarkLights()
[all …]
Dr_surf.c328 int v, i, b, lightstep, lighttemp, light; in R_DrawSurfaceBlock8_mip0() local
349 light = lightright; in R_DrawSurfaceBlock8_mip0()
355 [(light & 0xFF00) + pix]; in R_DrawSurfaceBlock8_mip0()
356 light += lightstep; in R_DrawSurfaceBlock8_mip0()
378 int v, i, b, lightstep, lighttemp, light; in R_DrawSurfaceBlock8_mip1() local
399 light = lightright; in R_DrawSurfaceBlock8_mip1()
405 [(light & 0xFF00) + pix]; in R_DrawSurfaceBlock8_mip1()
406 light += lightstep; in R_DrawSurfaceBlock8_mip1()
428 int v, i, b, lightstep, lighttemp, light; in R_DrawSurfaceBlock8_mip2() local
449 light = lightright; in R_DrawSurfaceBlock8_mip2()
[all …]
Dr_light.c69 void R_MarkLights (dlight_t *light, int bit, mnode_t *node) in R_MarkLights() argument
80 dist = DotProduct (light->origin, splitplane->normal) - splitplane->dist; in R_MarkLights()
82 if (dist > light->radius) in R_MarkLights()
84 R_MarkLights (light, bit, node->children[0]); in R_MarkLights()
87 if (dist < -light->radius) in R_MarkLights()
89 R_MarkLights (light, bit, node->children[1]); in R_MarkLights()
105 R_MarkLights (light, bit, node->children[0]); in R_MarkLights()
106 R_MarkLights (light, bit, node->children[1]); in R_MarkLights()
/external/quake/quake/src/WinQuake/
Dgl_rlight.cpp75 void R_RenderDlight (dlight_t *light) in R_RenderDlight() argument
82 rad = light->radius * 0.35; in R_RenderDlight()
84 VectorSubtract (light->origin, r_origin, v); in R_RenderDlight()
87 AddLightBlend (1, 0.5, 0, light->radius * 0.0003); in R_RenderDlight()
105 *pPos++ = light->origin[i] - vpn[i]*rad; in R_RenderDlight()
114 *pPos++ = light->origin[j] + vright[j]*cos(a)*rad in R_RenderDlight()
127 v[i] = light->origin[i] - vpn[i]*rad; in R_RenderDlight()
134 v[j] = light->origin[j] + vright[j]*cos(a)*rad in R_RenderDlight()
192 void R_MarkLights (dlight_t *light, int bit, mnode_t *node) in R_MarkLights() argument
203 dist = DotProduct (light->origin, splitplane->normal) - splitplane->dist; in R_MarkLights()
[all …]
Dr_surf.cpp345 int v, i, b, lightstep, lighttemp, light; in R_DrawSurfaceBlock8_mip0() local
366 light = lightright; in R_DrawSurfaceBlock8_mip0()
372 [(light & 0xFF00) + pix]; in R_DrawSurfaceBlock8_mip0()
373 light += lightstep; in R_DrawSurfaceBlock8_mip0()
395 int v, i, b, lightstep, lighttemp, light; in R_DrawSurfaceBlock8_mip1() local
416 light = lightright; in R_DrawSurfaceBlock8_mip1()
422 [(light & 0xFF00) + pix]; in R_DrawSurfaceBlock8_mip1()
423 light += lightstep; in R_DrawSurfaceBlock8_mip1()
445 int v, i, b, lightstep, lighttemp, light; in R_DrawSurfaceBlock8_mip2() local
466 light = lightright; in R_DrawSurfaceBlock8_mip2()
[all …]
Dr_light.cpp69 void R_MarkLights (dlight_t *light, int bit, mnode_t *node) in R_MarkLights() argument
80 dist = DotProduct (light->origin, splitplane->normal) - splitplane->dist; in R_MarkLights()
82 if (dist > light->radius) in R_MarkLights()
84 R_MarkLights (light, bit, node->children[0]); in R_MarkLights()
87 if (dist < -light->radius) in R_MarkLights()
89 R_MarkLights (light, bit, node->children[1]); in R_MarkLights()
105 R_MarkLights (light, bit, node->children[0]); in R_MarkLights()
106 R_MarkLights (light, bit, node->children[1]); in R_MarkLights()
Dd_polyse.cpp38 int sfrac, tfrac, light, zi; member
435 d_pedgespanpackage->light = d_light; in D_PolysetScanLeftEdge()
646 llight = pspanpackage->light; in D_PolysetDrawSpans8()
782 d_pedgespanpackage->light = d_light; in D_RasterizeAliasPolySmooth()
880 d_pedgespanpackage->light = d_light; in D_RasterizeAliasPolySmooth()
/external/skia/src/views/
DSkWidgets.cpp235 SkEmbossMaskFilter::Light light;
237 light.fDirection[0] = SK_Scalar1/2;
238 light.fDirection[1] = SK_Scalar1/2;
239 light.fDirection[2] = SK_Scalar1/3;
240 light.fAmbient = 0x48;
241 light.fSpecular = 0x80;
245 light.fDirection[0] = -light.fDirection[0];
246 light.fDirection[1] = -light.fDirection[1];
249 light.fDirection[2] += SK_Scalar1/4;
251 paint->setMaskFilter(new SkEmbossMaskFilter(light, radius))->unref();
/external/quake/quake/src/QW/progs/
Dmisc.qc35 /*QUAKED light (0 1 0) (-8 -8 -8) (8 8 8) START_OFF
36 Non-displayed light.
37 Default light value is 300
41 void() light =
44 { // inert light
60 Non-displayed light.
61 Default light value is 300
82 Non-displayed light.
83 Default light value is 300
97 Sphere globe light.
[all …]
Dmodels.qc426 $frame light
433 $frame light
438 $base light
439 $skin light
440 $frame light
Dsprites.qc24 $load /raid/quake/id1/gfx/sprites/light.lbm
/external/qemu/android/
Dqemulator.c26 qemulator_light_brightness( void* opaque, const char* light, int value ) in qemulator_light_brightness() argument
30 …VERBOSE_PRINT(hw_control,"%s: light='%s' value=%d window=%p", __FUNCTION__, light, value, emulator… in qemulator_light_brightness()
31 if ( !strcmp(light, "lcd_backlight") ) { in qemulator_light_brightness()
Dui-core-protocol.h33 const char* light,
Dhw-control.h26 const char* light,
/external/bzip2/
Dbzip.css8 #eeeeee very light gray pre background
9 #f2f2f9 very light blue nav table background
/external/v8/benchmarks/
Draytrace.js747 var light = scene.lights[i];
751 light.position,
763 light.color,
816 light.position
831 Flog.RayTracer.Color.prototype.multiplyScalar(light.color, glossWeight),
897 var light = new Flog.RayTracer.Light(
908 scene.lights.push(light);
/external/webkit/SunSpider/tests/v8-v4/
Dv8-raytrace.js742 var light = scene.lights[i];
746 light.position,
758 light.color,
811 light.position
826 Flog.RayTracer.Color.prototype.multiplyScalar(light.color, glossWeight),
892 var light = new Flog.RayTracer.Light(
903 scene.lights.push(light);
/external/webkit/WebCore/rendering/
DRenderThemeSafari.cpp708 static float light[4] = { 1.0f, 1.0f, 1.0f, 0.15f }; in TopGradientInterpolate() local
712 outData[i] = (1.0f - a) * dark[i] + a * light[i]; in TopGradientInterpolate()
718 static float light[4] = { 1.0f, 1.0f, 1.0f, 0.3f }; in BottomGradientInterpolate() local
722 outData[i] = (1.0f - a) * dark[i] + a * light[i]; in BottomGradientInterpolate()
728 static float light[4] = { 0.0f, 0.0f, 0.0f, 0.0f }; in MainGradientInterpolate() local
732 outData[i] = (1.0f - a) * dark[i] + a * light[i]; in MainGradientInterpolate()
738 static float light[4] = { 0.0f, 0.0f, 0.0f, 0.13f }; in TrackGradientInterpolate() local
742 outData[i] = (1.0f - a) * dark[i] + a * light[i]; in TrackGradientInterpolate()
/external/skia/include/effects/
DSkEmbossMaskFilter.h35 SkEmbossMaskFilter(const Light& light, SkScalar blurRadius);
/external/qemu/docs/
DANDROID-QEMUD-SERVICES.TXT57 1/ Client sends "power:light:brightness:<lightname>:<val>", where
58 <lightname> is the name of a light and <val> is an decimal value
59 between 0 (off) and 255 (brightest). Valid values for 'light' are:
/external/qemu/distrib/sdl-1.2.12/src/video/
DSDL_glfuncs.h111 SDL_PROC_UNUSED(void,glGetLightfv,(GLenum light, GLenum pname, GLfloat *params))
112 SDL_PROC_UNUSED(void,glGetLightiv,(GLenum light, GLenum pname, GLint *params))
156 SDL_PROC_UNUSED(void,glLightf,(GLenum light, GLenum pname, GLfloat param))
157 SDL_PROC_UNUSED(void,glLightfv,(GLenum light, GLenum pname, const GLfloat *params))
158 SDL_PROC_UNUSED(void,glLighti,(GLenum light, GLenum pname, GLint param))
159 SDL_PROC_UNUSED(void,glLightiv,(GLenum light, GLenum pname, const GLint *params))
/external/webkit/SunSpider/tests/sunspider-0.9.1/
D3d-raytrace.js226 var light = this.lights[i];
227 var toLight = sub(light, hit);
235 addVector(l, scale(light.colour, nl));
/external/webkit/SunSpider/tests/sunspider-0.9/
D3d-raytrace.js226 var light = this.lights[i];
227 var toLight = sub(light, hit);
235 addVector(l, scale(light.colour, nl));

1234