Lines Matching refs:params
516 static void lightxv(GLenum i, GLenum pname, const GLfixed *params, ogles_context_t* c)
538 mv.point4(&mv, &light.position, reinterpret_cast<vec4_t const*>(params));
546 mvui.point3(&mvui, &light.spotDir, reinterpret_cast<vec4_t const*>(params));
548 light.spotDir = *reinterpret_cast<vec4_t const*>(params);
555 lightx(i, pname, params[0], c);
558 what[0] = params[0];
559 what[1] = params[1];
560 what[2] = params[2];
561 what[3] = params[3];
655 void glLightModelfv(GLenum pname, const GLfloat *params)
659 lightModelx(pname, gglFloatToFixed(params[0]), c);
668 c->lighting.lightModel.ambient.r = gglFloatToFixed(params[0]);
669 c->lighting.lightModel.ambient.g = gglFloatToFixed(params[1]);
670 c->lighting.lightModel.ambient.b = gglFloatToFixed(params[2]);
671 c->lighting.lightModel.ambient.a = gglFloatToFixed(params[3]);
675 void glLightModelxv(GLenum pname, const GLfixed *params)
679 lightModelx(pname, params[0], c);
688 c->lighting.lightModel.ambient.r = params[0];
689 c->lighting.lightModel.ambient.g = params[1];
690 c->lighting.lightModel.ambient.b = params[2];
691 c->lighting.lightModel.ambient.a = params[3];
712 void glLightfv(GLenum i, GLenum pname, const GLfloat *params)
721 lightx(i, pname, gglFloatToFixed(params[0]), c);
726 paramsx[0] = gglFloatToFixed(params[0]);
727 paramsx[1] = gglFloatToFixed(params[1]);
728 paramsx[2] = gglFloatToFixed(params[2]);
730 paramsx[3] = gglFloatToFixed(params[3]);
735 void glLightxv(GLenum i, GLenum pname, const GLfixed *params)
738 lightxv(i, pname, params, c);
759 GLenum face, GLenum pname, const GLfloat *params)
778 c->lighting.front.shininess = gglFloatToFixed(params[0]);
785 what[0] = gglFloatToFixed(params[0]);
786 what[1] = gglFloatToFixed(params[1]);
787 what[2] = gglFloatToFixed(params[2]);
788 what[3] = gglFloatToFixed(params[3]);
799 GLenum face, GLenum pname, const GLfixed *params)
818 c->lighting.front.shininess = gglFloatToFixed(params[0]);
825 what[0] = params[0];
826 what[1] = params[1];
827 what[2] = params[2];
828 what[3] = params[3];
857 void glFogfv(GLenum pname, const GLfloat *params)
861 GLfixed paramx = (GLfixed)params[0];
863 paramx = gglFloatToFixed(params[0]);
868 paramsx[0] = gglFloatToFixed(params[0]);
869 paramsx[1] = gglFloatToFixed(params[1]);
870 paramsx[2] = gglFloatToFixed(params[2]);
871 paramsx[3] = gglFloatToFixed(params[3]);
875 void glFogxv(GLenum pname, const GLfixed *params)
879 fogx(pname, params[0], c);
882 c->rasterizer.procs.fogColor3xv(c, params);