void ccClipBox::set(const ccBBox& extents, const ccGLMatrix& transformation) { m_box = extents; setGLTransformation(transformation); update(); //send 'modified' signal emit boxModified(&m_box); }
void ccGenericPrimitive::applyTransformationToVertices() { //we apply associated transformation but as a call //to 'applyGLTransformation_recursive' will multiply //this matrix by the new one, we must set the //m_transformation matrix to identity first! (tricky, isn't it?) ccGLMatrix oldTrans = m_transformation; m_transformation.toIdentity(); setGLTransformation(oldTrans); applyGLTransformation_recursive(); }