⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 colormatrix.cpp

📁 最新osg包
💻 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 + -