Lines Matching refs:GLfloat

38 static const GLfloat gIdentityf[16] = { 1,0,0,0,
238 GLfloat const* fp = rhs.elements();
241 const GLfloat f = *fp++;
254 GLfloat const* const m = lhs.m;
291 void matrixf_t::set(const GLfloat* rhs) {
296 GLfloat* fp = m;
303 void matrixf_t::load(const GLfloat* rhs) {
317 void matrixf_t::translate(GLfloat x, GLfloat y, GLfloat z) {
323 void matrixf_t::scale(GLfloat x, GLfloat y, GLfloat z) {
331 void matrixf_t::rotate(GLfloat a, GLfloat x, GLfloat y, GLfloat z)
334 GLfloat* r = rotation.m;
335 GLfloat c, s;
338 a *= GLfloat(M_PI / 180.0f);
359 const GLfloat len = sqrtf(x*x + y*y + z*z);
361 const GLfloat recipLen = reciprocalf(len);
366 const GLfloat nc = 1.0f - c;
367 const GLfloat xy = x * y;
368 const GLfloat yz = y * z;
369 const GLfloat zx = z * x;
370 const GLfloat xs = x * s;
371 const GLfloat ys = y * s;
372 const GLfloat zs = z * s;
413 void matrix_stack_t::load(const GLfloat* rhs)
425 void matrix_stack_t::translate(GLfloat x, GLfloat y, GLfloat z)
431 void matrix_stack_t::scale(GLfloat x, GLfloat y, GLfloat z)
441 void matrix_stack_t::rotate(GLfloat a, GLfloat x, GLfloat y, GLfloat z)
528 GLfloat det22(GLfloat a, GLfloat b, GLfloat c, GLfloat d) {
533 GLfloat ndet22(GLfloat a, GLfloat b, GLfloat c, GLfloat d) {
538 void invert(GLfloat* inverse, const GLfloat* src)
542 GLfloat tmp[4][4];
545 memcpy(tmp, src, sizeof(GLfloat)*16);
588 GLfloat r[16];
589 const GLfloat* const mv = modelview.top().elements();
601 GLfloat r[16];
602 const GLfloat* const mv = modelview.top().elements();
697 GLfloat sx = div2f(w);
698 GLfloat ox = sx + x;
699 GLfloat sy = div2f(h);
700 GLfloat oy = sy - y + (H - h);
702 GLfloat near = c->transforms.vpt.zNear;
703 GLfloat far = c->transforms.vpt.zFar;
704 GLfloat A = div2f(far - near);
705 GLfloat B = div2f(far + near);
708 GLfloat* const f = c->transforms.vpt.matrix.editElements();
811 GLfloat left, GLfloat right,
812 GLfloat bottom, GLfloat top,
813 GLfloat zNear, GLfloat zFar,
825 const GLfloat r_width = reciprocalf(right - left);
826 const GLfloat r_height = reciprocalf(top - bottom);
827 const GLfloat r_depth = reciprocalf(zNear - zFar);
828 const GLfloat x = mul2f(zNear * r_width);
829 const GLfloat y = mul2f(zNear * r_height);
830 const GLfloat A = mul2f((right + left) * r_width);
831 const GLfloat B = (top + bottom) * r_height;
832 const GLfloat C = (zFar + zNear) * r_depth;
833 const GLfloat D = mul2f(zFar * zNear * r_depth);
834 GLfloat f[16];
853 GLfloat left, GLfloat right,
854 GLfloat bottom, GLfloat top,
855 GLfloat zNear, GLfloat zFar,
865 const GLfloat r_width = reciprocalf(right - left);
866 const GLfloat r_height = reciprocalf(top - bottom);
867 const GLfloat r_depth = reciprocalf(zFar - zNear);
868 const GLfloat x = mul2f(r_width);
869 const GLfloat y = mul2f(r_height);
870 const GLfloat z = -mul2f(r_depth);
871 const GLfloat tx = -(right + left) * r_width;
872 const GLfloat ty = -(top + bottom) * r_height;
873 const GLfloat tz = -(zFar + zNear) * r_depth;
874 GLfloat f[16];
895 GLfloat* const f = c->transforms.vpt.matrix.editElements();
939 void glLoadMatrixf(const GLfloat* m)
954 void glMultMatrixf(const GLfloat* m)
995 GLfloat left, GLfloat right,
996 GLfloat bottom, GLfloat top,
997 GLfloat zNear, GLfloat zFar)
1016 GLfloat left, GLfloat right,
1017 GLfloat bottom, GLfloat top,
1018 GLfloat zNear, GLfloat zFar)
1036 void glRotatef(GLfloat a, GLfloat x, GLfloat y, GLfloat z)
1052 void glScalef(GLfloat x, GLfloat y, GLfloat z)
1067 void glTranslatef(GLfloat x, GLfloat y, GLfloat z)
1113 void glPolygonOffset(GLfloat factor, GLfloat units)
1124 GLfloat const* f = c->transforms.current->top().elements();