MCPcopy Create free account
hub / github.com/axmolengine/axmol / loadMatrix

Method loadMatrix

core/base/Director.cpp:539–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539void Director::loadMatrix(MATRIX_STACK_TYPE type, const Mat4& mat)
540{
541 if (MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW == type)
542 {
543 _modelViewMatrixStack.top() = mat;
544 }
545 else if (MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION == type)
546 {
547 _projectionMatrixStack.top() = mat;
548 }
549 else if (MATRIX_STACK_TYPE::MATRIX_STACK_TEXTURE == type)
550 {
551 _textureMatrixStack.top() = mat;
552 }
553 else
554 {
555 AXASSERT(false, "unknown matrix stack type");
556 }
557}
558
559void Director::multiplyMatrix(MATRIX_STACK_TYPE type, const Mat4& mat)
560{

Callers 15

visitMethod · 0.80
visitMethod · 0.80
visitMethod · 0.80
visitMethod · 0.80
renderMethod · 0.80
visitMethod · 0.80
visitMethod · 0.80
visitMethod · 0.80
visitMethod · 0.80
onBeginMethod · 0.80
onEndMethod · 0.80
visitMethod · 0.80

Calls 1

topMethod · 0.45

Tested by 1

onDrawMethod · 0.64