font.cpp
来自「最新osg包」· C++ 代码 · 共 495 行 · 第 1/2 页
CPP
495 行
// ***************************************************************************//// Generated automatically by genwrapper.// Please DO NOT EDIT this file!//// ***************************************************************************#include <osgIntrospection/ReflectionMacros>#include <osgIntrospection/TypedMethodInfo>#include <osgIntrospection/StaticMethodInfo>#include <osgIntrospection/Attributes>#include <osg/CopyOp>#include <osg/Object>#include <osg/State>#include <osg/StateAttribute>#include <osg/StateSet>#include <osg/TexEnv>#include <osg/Texture>#include <osg/Vec2>#include <osgText/Font>#include <osgText/KerningType>// Must undefine IN and OUT macros defined in Windows headers#ifdef IN#undef IN#endif#ifdef OUT#undef OUT#endifTYPE_NAME_ALIAS(OpenThreads::Mutex, osgText::Font::FontMutex)BEGIN_OBJECT_REFLECTOR(osgText::Font) I_DeclaringFile("osgText/Font"); I_BaseType(osg::Object); I_ConstructorWithDefaults1(IN, osgText::Font::FontImplementation *, implementation, 0, Properties::NON_EXPLICIT, ____Font__FontImplementation_P1, "", ""); 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 &, x, 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 *, className, Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); 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(std::string, getFileName, Properties::VIRTUAL, __std_string__getFileName, "", ""); I_Method1(void, setTexEnv, IN, osg::TexEnv *, texenv, Properties::NON_VIRTUAL, __void__setTexEnv__osg_TexEnv_P1, "", ""); I_Method0(osg::TexEnv *, getTexEnv, Properties::NON_VIRTUAL, __osg_TexEnv_P1__getTexEnv, "", ""); I_Method0(const osg::TexEnv *, getTexEnv, Properties::NON_VIRTUAL, __C5_osg_TexEnv_P1__getTexEnv, "", ""); I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, Properties::NON_VIRTUAL, __void__setStateSet__osg_StateSet_P1, "", ""); I_Method0(osg::StateSet *, getStateSet, Properties::NON_VIRTUAL, __osg_StateSet_P1__getStateSet, "", ""); I_Method0(const osg::StateSet *, getStateSet, Properties::NON_VIRTUAL, __C5_osg_StateSet_P1__getStateSet, "", ""); I_Method4(osg::Vec2, getKerning, IN, const osgText::FontResolution &, fontSize, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType, Properties::VIRTUAL, __osg_Vec2__getKerning__C5_FontResolution_R1__unsigned_int__unsigned_int__KerningType, "Get a kerning (adjustment of spacing of two adjacent character) for specified charcodes, w.r.t the current font size hint. ", ""); I_Method2(osgText::Font::Glyph *, getGlyph, IN, const osgText::FontResolution &, fontSize, IN, unsigned int, charcode, Properties::VIRTUAL, __Glyph_P1__getGlyph__C5_FontResolution_R1__unsigned_int, "Get a Glyph for specified charcode, and the font size nearest to the current font size hint. ", ""); I_Method0(bool, hasVertical, Properties::VIRTUAL, __bool__hasVertical, "Return true if this font provides vertical alignments and spacing or glyphs. ", ""); I_Method1(void, setGlyphImageMargin, IN, unsigned int, margin, Properties::NON_VIRTUAL, __void__setGlyphImageMargin__unsigned_int, "Set the margin around each glyph, to ensure that texture filtering doesn't bleed adjacent glyph's into each other. ", "Default margin is 1 texels. "); I_Method0(unsigned int, getGlyphImageMargin, Properties::NON_VIRTUAL, __unsigned_int__getGlyphImageMargin, "", ""); I_Method1(void, setGlyphImageMarginRatio, IN, float, margin, Properties::NON_VIRTUAL, __void__setGlyphImageMarginRatio__float, "Set the margin ratio around each glyph, relative to the glyph's size. ", "to ensure that texture filtering doesn't bleed adjacent glyph's into each other. Default margin is 0.05. "); I_Method0(float, getGlyphImageMarginRatio, Properties::NON_VIRTUAL, __float__getGlyphImageMarginRatio, "", ""); I_Method2(void, setTextureSizeHint, IN, unsigned int, width, IN, unsigned int, height, Properties::NON_VIRTUAL, __void__setTextureSizeHint__unsigned_int__unsigned_int, "Set the size of texture to create to store the glyph images when rendering. ", "Note, this doesn't affect already created Texture Glhph's. "); I_Method0(unsigned int, getTextureWidthHint, Properties::NON_VIRTUAL, __unsigned_int__getTextureWidthHint, "", ""); I_Method0(unsigned int, getTextureHeightHint, Properties::NON_VIRTUAL, __unsigned_int__getTextureHeightHint, "", ""); I_Method1(void, setMinFilterHint, IN, osg::Texture::FilterMode, mode, Properties::NON_VIRTUAL, __void__setMinFilterHint__osg_Texture_FilterMode, "Set the minification texture filter to use when creating the texture to store the glyph images when rendering. ", "Note, this doesn't affect already created Texture Glhph's. "); I_Method0(osg::Texture::FilterMode, getMinFilterHint, Properties::NON_VIRTUAL, __osg_Texture_FilterMode__getMinFilterHint, "", ""); I_Method1(void, setMagFilterHint, IN, osg::Texture::FilterMode, mode, Properties::NON_VIRTUAL, __void__setMagFilterHint__osg_Texture_FilterMode, "Set the magnification texture filter to use when creating the texture to store the glyph images when rendering. ", "Note, this doesn't affect already created Texture Glhph's. "); I_Method0(osg::Texture::FilterMode, getMagFilterHint, Properties::NON_VIRTUAL, __osg_Texture_FilterMode__getMagFilterHint, "", ""); I_Method1(void, setImplementation, IN, osgText::Font::FontImplementation *, implementation, Properties::NON_VIRTUAL, __void__setImplementation__FontImplementation_P1, "", ""); I_Method0(osgText::Font::FontImplementation *, getImplementation, Properties::NON_VIRTUAL, __FontImplementation_P1__getImplementation, "", ""); I_Method0(const osgText::Font::FontImplementation *, getImplementation, Properties::NON_VIRTUAL, __C5_FontImplementation_P1__getImplementation, "", ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); I_ProtectedMethod3(void, addGlyph, IN, const osgText::FontResolution &, fontRes, IN, unsigned int, charcode, IN, osgText::Font::Glyph *, glyph, Properties::NON_VIRTUAL, Properties::NON_CONST, __void__addGlyph__C5_FontResolution_R1__unsigned_int__Glyph_P1, "", ""); I_SimpleProperty(std::string, FileName, __std_string__getFileName, 0); I_SimpleProperty(unsigned int, GlyphImageMargin, __unsigned_int__getGlyphImageMargin, __void__setGlyphImageMargin__unsigned_int); I_SimpleProperty(float, GlyphImageMarginRatio, __float__getGlyphImageMarginRatio, __void__setGlyphImageMarginRatio__float); I_SimpleProperty(osgText::Font::FontImplementation *, Implementation, __FontImplementation_P1__getImplementation, __void__setImplementation__FontImplementation_P1); I_SimpleProperty(osg::Texture::FilterMode, MagFilterHint, __osg_Texture_FilterMode__getMagFilterHint, __void__setMagFilterHint__osg_Texture_FilterMode); I_SimpleProperty(osg::Texture::FilterMode, MinFilterHint, __osg_Texture_FilterMode__getMinFilterHint, __void__setMinFilterHint__osg_Texture_FilterMode); I_SimpleProperty(osg::StateSet *, StateSet, __osg_StateSet_P1__getStateSet, __void__setStateSet__osg_StateSet_P1); I_SimpleProperty(osg::TexEnv *, TexEnv, __osg_TexEnv_P1__getTexEnv, __void__setTexEnv__osg_TexEnv_P1); I_SimpleProperty(unsigned int, TextureHeightHint, __unsigned_int__getTextureHeightHint, 0); I_SimpleProperty(unsigned int, TextureWidthHint, __unsigned_int__getTextureWidthHint, 0); I_SimpleProperty(bool, ThreadSafeRefUnref, 0, __void__setThreadSafeRefUnref__bool);END_REFLECTORBEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::FontImplementation) I_DeclaringFile("osgText/Font"); I_BaseType(osg::Referenced); I_Constructor0(____FontImplementation, "", "");
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?