00001 #include "matrix.h" 00002 00015 #include <glt/error.h> 00016 00017 GltPushMatrix::GltPushMatrix(const bool enable) 00018 : _enable(enable) 00019 { 00020 GLERROR 00021 00022 if (_enable) 00023 glPushMatrix(); 00024 00025 GLERROR 00026 } 00027 00028 GltPushMatrix::~GltPushMatrix() 00029 { 00030 GLERROR 00031 00032 if (_enable) 00033 glPopMatrix(); 00034 00035 GLERROR 00036 }