Lines Matching refs:prog
175 CRServerProgram *prog = crHashtableSearch(cr_server.programTable, id);
176 if (!prog) {
177 prog = (CRServerProgram *) crAlloc(sizeof(CRServerProgram));
178 if (!prog)
180 prog->id = id;
181 prog->projParamStart = cr_server.vpProjectionMatrixParameter;
182 crHashtableAdd(cr_server.programTable, id, prog);
184 return prog;
193 CRServerProgram *prog = LookupProgram(cr_server.currentProgram);
195 if (prog && prog->projParamStart != -1) {
196 if (index >= (GLuint) prog->projParamStart && index <= (GLuint) prog->projParamStart + 3) {
198 const int i = index - prog->projParamStart;
199 prog->projMat[4*0+i] = x;
200 prog->projMat[4*1+i] = y;
201 prog->projMat[4*2+i] = z;
202 prog->projMat[4*3+i] = w;
209 if (index == (GLuint) (prog->projParamStart + 3)) {
216 matmul(mat, baseMat, prog->projMat);
244 CRServerProgram *prog = LookupProgram(cr_server.currentProgram);
246 if (prog && prog->projParamStart != -1) {
247 if (index >= (GLuint) prog->projParamStart && index <= (GLuint) prog->projParamStart + 3) {
249 const int i = index - prog->projParamStart;
250 prog->projMat[4*0+i] = x;
251 prog->projMat[4*1+i] = y;
252 prog->projMat[4*2+i] = z;
253 prog->projMat[4*3+i] = w;
260 if (index == (GLuint) (prog->projParamStart + 3)) {
267 matmul(mat, baseMat, prog->projMat);
300 CRServerProgram *prog = LookupProgram(cr_server.currentProgram);
301 CRASSERT(prog);
302 if (prog) {
316 prog->projParamStart = crStrToInt(number);
342 CRServerProgram *prog = LookupProgram(id);
343 CRASSERT(prog);
344 if (prog) {
358 prog->projParamStart = crStrToInt(number);
380 CRServerProgram *prog = LookupProgram(id);
381 (void) prog;
395 CRServerProgram *prog = LookupProgram(id);
396 (void) prog;