-
Book Overview & Buying
-
Table Of Contents
OpenSceneGraph 3.0: Beginner's Guide
The osg::Matrix is a basic OSG data type which needs not be managed by smart pointers. It supports an interface for 4x4 matrix transformations, such as translate, rotate, scale, and projection operations. It can be set explicitly:
osg::Matrix mat( 1.0f, 0.0f, 0.0f, 0.0f,
0.0f, 1.0f, 0.0f, 0.0f,
0.0f, 0.0f, 1.0f, 0.0f,
0.0f, 0.0f, 0.0f, 1.0f ); // Just an identity matrixOther methods and operators include:
The public methods postMult() and operator*() post multiply the current matrix object with an input matrix or vector parameter. And the method preMult() performs pre-multiplications.
The makeTranslate(), makeRotate(), and makeScale() methods reset the current matrix and create a 4x4 translation, rotation, or scale matrix. Their static versions, translate(), rotate(), and scale(), can be used to allocate a new matrix object with specified parameters.
The public method invert() inverts the matrix. Its static version...
Change the font size
Change margin width
Change background colour