📄 uniform.cpp
字号:
// ***************************************************************************//// Generated automatically by genwrapper.// Please DO NOT EDIT this file!//// ***************************************************************************#include <osgIntrospection/ReflectionMacros>#include <osgIntrospection/TypedMethodInfo>#include <osgIntrospection/StaticMethodInfo>#include <osgIntrospection/Attributes>#include <osg/Array>#include <osg/CopyOp>#include <osg/GL2Extensions>#include <osg/Matrixd>#include <osg/Matrixf>#include <osg/NodeVisitor>#include <osg/Object>#include <osg/StateSet>#include <osg/Uniform>#include <osg/Vec2>#include <osg/Vec3>#include <osg/Vec4>// Must undefine IN and OUT macros defined in Windows headers#ifdef IN#undef IN#endif#ifdef OUT#undef OUT#endifBEGIN_VALUE_REFLECTOR(osg::Matrix2) I_DeclaringFile("osg/Uniform"); I_Constructor0(____Matrix2, "", ""); I_Constructor1(IN, const osg::Matrix2 &, mat, Properties::NON_EXPLICIT, ____Matrix2__C5_Matrix2_R1, "", ""); I_Constructor4(IN, float, a00, IN, float, a01, IN, float, a10, IN, float, a11, ____Matrix2__float__float__float__float, "", ""); I_Method1(void, set, IN, const osg::Matrix2 &, rhs, Properties::NON_VIRTUAL, __void__set__C5_Matrix2_R1, "", ""); I_Method1(void, set, IN, float const *const, ptr, Properties::NON_VIRTUAL, __void__set__float_C5_P1C5, "", ""); I_Method4(void, set, IN, float, a00, IN, float, a01, IN, float, a10, IN, float, a11, Properties::NON_VIRTUAL, __void__set__float__float__float__float, "", ""); I_Method0(float *, ptr, Properties::NON_VIRTUAL, __float_P1__ptr, "", ""); I_Method0(const float *, ptr, Properties::NON_VIRTUAL, __C5_float_P1__ptr, "", ""); I_Method0(void, makeIdentity, Properties::NON_VIRTUAL, __void__makeIdentity, "", "");END_REFLECTORBEGIN_VALUE_REFLECTOR(osg::Matrix3) I_DeclaringFile("osg/Uniform"); I_Constructor0(____Matrix3, "", ""); I_Constructor1(IN, const osg::Matrix3 &, mat, Properties::NON_EXPLICIT, ____Matrix3__C5_Matrix3_R1, "", ""); I_Constructor9(IN, float, a00, IN, float, a01, IN, float, a02, IN, float, a10, IN, float, a11, IN, float, a12, IN, float, a20, IN, float, a21, IN, float, a22, ____Matrix3__float__float__float__float__float__float__float__float__float, "", ""); I_Method1(void, set, IN, const osg::Matrix3 &, rhs, Properties::NON_VIRTUAL, __void__set__C5_Matrix3_R1, "", ""); I_Method1(void, set, IN, float const *const, ptr, Properties::NON_VIRTUAL, __void__set__float_C5_P1C5, "", ""); I_Method9(void, set, IN, float, a00, IN, float, a01, IN, float, a02, IN, float, a10, IN, float, a11, IN, float, a12, IN, float, a20, IN, float, a21, IN, float, a22, Properties::NON_VIRTUAL, __void__set__float__float__float__float__float__float__float__float__float, "", ""); I_Method0(float *, ptr, Properties::NON_VIRTUAL, __float_P1__ptr, "", ""); I_Method0(const float *, ptr, Properties::NON_VIRTUAL, __C5_float_P1__ptr, "", ""); I_Method0(void, makeIdentity, Properties::NON_VIRTUAL, __void__makeIdentity, "", "");END_REFLECTORTYPE_NAME_ALIAS(std::vector< osg::StateSet * >, osg::Uniform::ParentList)BEGIN_ENUM_REFLECTOR(osg::Uniform::Type) I_DeclaringFile("osg/Uniform"); I_EnumLabel(osg::Uniform::FLOAT); I_EnumLabel(osg::Uniform::FLOAT_VEC2); I_EnumLabel(osg::Uniform::FLOAT_VEC3); I_EnumLabel(osg::Uniform::FLOAT_VEC4); I_EnumLabel(osg::Uniform::INT); I_EnumLabel(osg::Uniform::INT_VEC2); I_EnumLabel(osg::Uniform::INT_VEC3); I_EnumLabel(osg::Uniform::INT_VEC4); I_EnumLabel(osg::Uniform::BOOL); I_EnumLabel(osg::Uniform::BOOL_VEC2); I_EnumLabel(osg::Uniform::BOOL_VEC3); I_EnumLabel(osg::Uniform::BOOL_VEC4); I_EnumLabel(osg::Uniform::FLOAT_MAT2); I_EnumLabel(osg::Uniform::FLOAT_MAT3); I_EnumLabel(osg::Uniform::FLOAT_MAT4); I_EnumLabel(osg::Uniform::SAMPLER_1D); I_EnumLabel(osg::Uniform::SAMPLER_2D); I_EnumLabel(osg::Uniform::SAMPLER_3D); I_EnumLabel(osg::Uniform::SAMPLER_CUBE); I_EnumLabel(osg::Uniform::SAMPLER_1D_SHADOW); I_EnumLabel(osg::Uniform::SAMPLER_2D_SHADOW); I_EnumLabel(osg::Uniform::SAMPLER_1D_ARRAY); I_EnumLabel(osg::Uniform::SAMPLER_2D_ARRAY); I_EnumLabel(osg::Uniform::SAMPLER_1D_ARRAY_SHADOW); I_EnumLabel(osg::Uniform::SAMPLER_2D_ARRAY_SHADOW); I_EnumLabel(osg::Uniform::FLOAT_MAT2x3); I_EnumLabel(osg::Uniform::FLOAT_MAT2x4); I_EnumLabel(osg::Uniform::FLOAT_MAT3x2); I_EnumLabel(osg::Uniform::FLOAT_MAT3x4); I_EnumLabel(osg::Uniform::FLOAT_MAT4x2); I_EnumLabel(osg::Uniform::FLOAT_MAT4x3); I_EnumLabel(osg::Uniform::SAMPLER_BUFFER); I_EnumLabel(osg::Uniform::SAMPLER_CUBE_SHADOW); I_EnumLabel(osg::Uniform::UNSIGNED_INT_VEC2); I_EnumLabel(osg::Uniform::UNSIGNED_INT_VEC3); I_EnumLabel(osg::Uniform::UNSIGNED_INT_VEC4); I_EnumLabel(osg::Uniform::INT_SAMPLER_1D); I_EnumLabel(osg::Uniform::INT_SAMPLER_2D); I_EnumLabel(osg::Uniform::INT_SAMPLER_3D); I_EnumLabel(osg::Uniform::INT_SAMPLER_CUBE); I_EnumLabel(osg::Uniform::INT_SAMPLER_2D_RECT); I_EnumLabel(osg::Uniform::INT_SAMPLER_1D_ARRAY); I_EnumLabel(osg::Uniform::INT_SAMPLER_2D_ARRAY); I_EnumLabel(osg::Uniform::INT_SAMPLER_BUFFER); I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_1D); I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_2D); I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_3D); I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_CUBE); I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_2D_RECT); I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_1D_ARRAY); I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_2D_ARRAY); I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_BUFFER); I_EnumLabel(osg::Uniform::UNDEFINED);END_REFLECTORBEGIN_OBJECT_REFLECTOR(osg::Uniform) I_DeclaringFile("osg/Uniform"); I_BaseType(osg::Object); I_Constructor0(____Uniform, "", ""); I_ConstructorWithDefaults3(IN, osg::Uniform::Type, type, , IN, const std::string &, name, , IN, int, numElements, 1, ____Uniform__Type__C5_std_string_R1__int, "", ""); I_ConstructorWithDefaults2(IN, const osg::Uniform &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, ____Uniform__C5_Uniform_R1__C5_CopyOp_R1, "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(bool, setType, IN, osg::Uniform::Type, t, Properties::NON_VIRTUAL, __bool__setType__Type, "Set the type of glUniform, ensuring it is only set once. ", ""); I_Method0(osg::Uniform::Type, getType, Properties::NON_VIRTUAL, __Type__getType, "Get the type of glUniform as enum. ", ""); I_Method1(void, setName, IN, const std::string &, name, Properties::NON_VIRTUAL, __void__setName__C5_std_string_R1, "Set the name of the glUniform, ensuring it is only set once. ", ""); I_Method1(void, setNumElements, IN, unsigned int, numElements, Properties::NON_VIRTUAL, __void__setNumElements__unsigned_int, "Set the length of a uniform, ensuring it is only set once (1==scalar). ", ""); I_Method0(unsigned int, getNumElements, Properties::NON_VIRTUAL, __unsigned_int__getNumElements, "Get the number of GLSL elements of the osg::Uniform (1==scalar). ", ""); I_Method0(unsigned int, getInternalArrayNumElements, Properties::NON_VIRTUAL, __unsigned_int__getInternalArrayNumElements, "Get the number of elements required for the internal data array. ", "Returns 0 if the osg::Uniform is not properly configured. "); I_Constructor2(IN, const char *, name, IN, float, f, ____Uniform__C5_char_P1__float, "convenient scalar (non-array) constructors w/ assignment ", ""); I_Constructor2(IN, const char *, name, IN, int, i, ____Uniform__C5_char_P1__int, "", ""); I_Constructor2(IN, const char *, name, IN, bool, b, ____Uniform__C5_char_P1__bool, "", ""); I_Constructor2(IN, const char *, name, IN, const osg::Vec2 &, v2, ____Uniform__C5_char_P1__C5_osg_Vec2_R1, "", ""); I_Constructor2(IN, const char *, name, IN, const osg::Vec3 &, v3, ____Uniform__C5_char_P1__C5_osg_Vec3_R1, "", ""); I_Constructor2(IN, const char *, name, IN, const osg::Vec4 &, v4, ____Uniform__C5_char_P1__C5_osg_Vec4_R1, "", ""); I_Constructor2(IN, const char *, name, IN, const osg::Matrix2 &, m2, ____Uniform__C5_char_P1__C5_osg_Matrix2_R1, "", ""); I_Constructor2(IN, const char *, name, IN, const osg::Matrix3 &, m3, ____Uniform__C5_char_P1__C5_osg_Matrix3_R1, "", ""); I_Constructor2(IN, const char *, name, IN, const osg::Matrixf &, m4, ____Uniform__C5_char_P1__C5_osg_Matrixf_R1, "", ""); I_Constructor2(IN, const char *, name, IN, const osg::Matrixd &, m4, ____Uniform__C5_char_P1__C5_osg_Matrixd_R1, "", ""); I_Constructor3(IN, const char *, name, IN, int, i0, IN, int, i1, ____Uniform__C5_char_P1__int__int, "", ""); I_Constructor4(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -