Home | History | Annotate | Download | only in libagl

Lines Matching refs:depth

386 void matrix_stack_t::init(int depth) {
387 stack = new matrixf_t[depth];
388 ops = new uint8_t[depth];
389 maxDepth = depth;
390 depth = 0;
402 stack[depth].loadIdentity();
403 ops[depth] = OP_IDENTITY;
409 stack[depth].load(rhs);
410 ops[depth] = OP_ALL; // TODO: we should look at the matrix
415 stack[depth].load(rhs);
416 ops[depth] = OP_ALL; // TODO: we should look at the matrix
421 stack[depth].multiply(rhs);
422 ops[depth] = OP_ALL; // TODO: we should look at the matrix
427 stack[depth].translate(x,y,z);
428 ops[depth] |= OP_TRANSLATE;
433 stack[depth].scale(x,y,z);
435 ops[depth] |= OP_UNIFORM_SCALE;
437 ops[depth] |= OP_SCALE;
443 stack[depth].rotate(a,x,y,z);
444 ops[depth] |= OP_ROTATE;
460 if (depth >= (maxDepth-1)) {
463 stack[depth+1] = stack[depth];
464 ops[depth+1] = ops[depth];
465 depth++;
471 if (depth == 0) {
474 depth--;