📄 colormatrix.cpp
字号:
#include <osg/ColorMatrix>#include <osgDB/Registry>#include <osgDB/Input>#include <osgDB/Output>#include "Matrix.h"using namespace osg;using namespace osgDB;// forward declare functions to use later.bool ColorMatrix_readLocalData(Object& obj, Input& fr);bool ColorMatrix_writeLocalData(const Object& obj, Output& fw);// register the read and write functions with the osgDB::Registry.RegisterDotOsgWrapperProxy g_ColorMatrixProxy( new osg::ColorMatrix, "ColorMatrix", "Object StateAttribute ColorMatrix", &ColorMatrix_readLocalData, &ColorMatrix_writeLocalData);bool ColorMatrix_readLocalData(Object& obj, Input& fr){ ColorMatrix& colorMatrix = static_cast<ColorMatrix&>(obj); return readMatrix(colorMatrix.getMatrix(), fr);}bool ColorMatrix_writeLocalData(const Object& obj, Output& fw){ const ColorMatrix& colorMatrix = static_cast<const ColorMatrix&>(obj); return writeMatrix(colorMatrix.getMatrix(), fw);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -