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

Method loadIdentityMatrix

core/base/Director.cpp:519–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519void Director::loadIdentityMatrix(MATRIX_STACK_TYPE type)
520{
521 if (MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW == type)
522 {
523 _modelViewMatrixStack.top() = Mat4::IDENTITY;
524 }
525 else if (MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION == type)
526 {
527 _projectionMatrixStack.top() = Mat4::IDENTITY;
528 }
529 else if (MATRIX_STACK_TYPE::MATRIX_STACK_TEXTURE == type)
530 {
531 _textureMatrixStack.top() = Mat4::IDENTITY;
532 }
533 else
534 {
535 AXASSERT(false, "unknown matrix stack type");
536 }
537}
538
539void Director::loadMatrix(MATRIX_STACK_TYPE type, const Mat4& mat)
540{

Callers 1

set2DProjectionMethod · 0.80

Calls 1

topMethod · 0.45

Tested by

no test coverage detected