font.cpp

来自「最新osg包」· C++ 代码 · 共 495 行 · 第 1/2 页

CPP
495
字号
	I_Method0(std::string, getFileName,	          Properties::PURE_VIRTUAL,	          __std_string__getFileName,	          "",	          "");	I_Method2(osgText::Font::Glyph *, getGlyph, IN, const osgText::FontResolution &, fontRes, IN, unsigned int, charcode,	          Properties::PURE_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_Method4(osg::Vec2, getKerning, IN, const osgText::FontResolution &, fontRes, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType,	          Properties::PURE_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_Method0(bool, hasVertical,	          Properties::PURE_VIRTUAL,	          __bool__hasVertical,	          "Return true if this font provides vertical alignments and spacing or glyphs. ",	          "");	I_Method3(void, addGlyph, IN, const osgText::FontResolution &, fontRes, IN, unsigned int, charcode, IN, osgText::Font::Glyph *, glyph,	          Properties::NON_VIRTUAL,	          __void__addGlyph__C5_FontResolution_R1__unsigned_int__Glyph_P1,	          "",	          "");	I_SimpleProperty(std::string, FileName, 	                 __std_string__getFileName, 	                 0);	I_PublicMemberProperty(osgText::Font *, _facade);END_REFLECTORBEGIN_OBJECT_REFLECTOR(osgText::Font::Glyph)	I_DeclaringFile("osgText/Font");	I_BaseType(osg::Image);	I_Constructor0(____Glyph,	               "",	               "");	I_Method0(unsigned int, getGlyphCode,	          Properties::NON_VIRTUAL,	          __unsigned_int__getGlyphCode,	          "",	          "");	I_Method1(void, setHorizontalBearing, IN, const osg::Vec2 &, bearing,	          Properties::NON_VIRTUAL,	          __void__setHorizontalBearing__C5_osg_Vec2_R1,	          "",	          "");	I_Method0(const osg::Vec2 &, getHorizontalBearing,	          Properties::NON_VIRTUAL,	          __C5_osg_Vec2_R1__getHorizontalBearing,	          "",	          "");	I_Method1(void, setHorizontalAdvance, IN, float, advance,	          Properties::NON_VIRTUAL,	          __void__setHorizontalAdvance__float,	          "",	          "");	I_Method0(float, getHorizontalAdvance,	          Properties::NON_VIRTUAL,	          __float__getHorizontalAdvance,	          "",	          "");	I_Method1(void, setVerticalBearing, IN, const osg::Vec2 &, bearing,	          Properties::NON_VIRTUAL,	          __void__setVerticalBearing__C5_osg_Vec2_R1,	          "",	          "");	I_Method0(const osg::Vec2 &, getVerticalBearing,	          Properties::NON_VIRTUAL,	          __C5_osg_Vec2_R1__getVerticalBearing,	          "",	          "");	I_Method1(void, setVerticalAdvance, IN, float, advance,	          Properties::NON_VIRTUAL,	          __void__setVerticalAdvance__float,	          "",	          "");	I_Method0(float, getVerticalAdvance,	          Properties::NON_VIRTUAL,	          __float__getVerticalAdvance,	          "",	          "");	I_Method1(void, setTexture, IN, osgText::Font::GlyphTexture *, texture,	          Properties::NON_VIRTUAL,	          __void__setTexture__GlyphTexture_P1,	          "",	          "");	I_Method0(osgText::Font::GlyphTexture *, getTexture,	          Properties::NON_VIRTUAL,	          __GlyphTexture_P1__getTexture,	          "",	          "");	I_Method0(const osgText::Font::GlyphTexture *, getTexture,	          Properties::NON_VIRTUAL,	          __C5_GlyphTexture_P1__getTexture,	          "",	          "");	I_Method2(void, setTexturePosition, IN, int, posX, IN, int, posY,	          Properties::NON_VIRTUAL,	          __void__setTexturePosition__int__int,	          "",	          "");	I_Method0(int, getTexturePositionX,	          Properties::NON_VIRTUAL,	          __int__getTexturePositionX,	          "",	          "");	I_Method0(int, getTexturePositionY,	          Properties::NON_VIRTUAL,	          __int__getTexturePositionY,	          "",	          "");	I_Method1(void, setMinTexCoord, IN, const osg::Vec2 &, coord,	          Properties::NON_VIRTUAL,	          __void__setMinTexCoord__C5_osg_Vec2_R1,	          "",	          "");	I_Method0(const osg::Vec2 &, getMinTexCoord,	          Properties::NON_VIRTUAL,	          __C5_osg_Vec2_R1__getMinTexCoord,	          "",	          "");	I_Method1(void, setMaxTexCoord, IN, const osg::Vec2 &, coord,	          Properties::NON_VIRTUAL,	          __void__setMaxTexCoord__C5_osg_Vec2_R1,	          "",	          "");	I_Method0(const osg::Vec2 &, getMaxTexCoord,	          Properties::NON_VIRTUAL,	          __C5_osg_Vec2_R1__getMaxTexCoord,	          "",	          "");	I_Method0(void, subload,	          Properties::NON_VIRTUAL,	          __void__subload,	          "",	          "");	I_Method1(void, draw, IN, osg::State &, state,	          Properties::NON_VIRTUAL,	          __void__draw__osg_State_R1,	          "",	          "");	I_SimpleProperty(unsigned int, GlyphCode, 	                 __unsigned_int__getGlyphCode, 	                 0);	I_SimpleProperty(float, HorizontalAdvance, 	                 __float__getHorizontalAdvance, 	                 __void__setHorizontalAdvance__float);	I_SimpleProperty(const osg::Vec2 &, HorizontalBearing, 	                 __C5_osg_Vec2_R1__getHorizontalBearing, 	                 __void__setHorizontalBearing__C5_osg_Vec2_R1);	I_SimpleProperty(const osg::Vec2 &, MaxTexCoord, 	                 __C5_osg_Vec2_R1__getMaxTexCoord, 	                 __void__setMaxTexCoord__C5_osg_Vec2_R1);	I_SimpleProperty(const osg::Vec2 &, MinTexCoord, 	                 __C5_osg_Vec2_R1__getMinTexCoord, 	                 __void__setMinTexCoord__C5_osg_Vec2_R1);	I_SimpleProperty(osgText::Font::GlyphTexture *, Texture, 	                 __GlyphTexture_P1__getTexture, 	                 __void__setTexture__GlyphTexture_P1);	I_SimpleProperty(int, TexturePositionX, 	                 __int__getTexturePositionX, 	                 0);	I_SimpleProperty(int, TexturePositionY, 	                 __int__getTexturePositionY, 	                 0);	I_SimpleProperty(float, VerticalAdvance, 	                 __float__getVerticalAdvance, 	                 __void__setVerticalAdvance__float);	I_SimpleProperty(const osg::Vec2 &, VerticalBearing, 	                 __C5_osg_Vec2_R1__getVerticalBearing, 	                 __void__setVerticalBearing__C5_osg_Vec2_R1);END_REFLECTORBEGIN_OBJECT_REFLECTOR(osgText::Font::GlyphTexture)	I_DeclaringFile("osgText/Font");	I_BaseType(osg::Texture2D);	I_Constructor0(____GlyphTexture,	               "",	               "");	I_Method0(const char *, className,	          Properties::VIRTUAL,	          __C5_char_P1__className,	          "Return the name of the attribute's class type. ",	          "");	I_Method1(int, compare, IN, const osg::StateAttribute &, rhs,	          Properties::VIRTUAL,	          __int__compare__C5_osg_StateAttribute_R1,	          "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ",	          "");	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. ",	          "");	I_Method0(unsigned int, getGlyphImageMargin,	          Properties::NON_VIRTUAL,	          __unsigned_int__getGlyphImageMargin,	          "",	          "");	I_Method1(void, setGlyphImageMarginRatio, IN, float, margin,	          Properties::NON_VIRTUAL,	          __void__setGlyphImageMarginRatio__float,	          "",	          "");	I_Method0(float, getGlyphImageMarginRatio,	          Properties::NON_VIRTUAL,	          __float__getGlyphImageMarginRatio,	          "",	          "");	I_Method3(bool, getSpaceForGlyph, IN, osgText::Font::Glyph *, glyph, IN, int &, posX, IN, int &, posY,	          Properties::NON_VIRTUAL,	          __bool__getSpaceForGlyph__Glyph_P1__int_R1__int_R1,	          "",	          "");	I_Method3(void, addGlyph, IN, osgText::Font::Glyph *, glyph, IN, int, posX, IN, int, posY,	          Properties::NON_VIRTUAL,	          __void__addGlyph__Glyph_P1__int__int,	          "",	          "");	I_Method1(void, apply, IN, osg::State &, state,	          Properties::VIRTUAL,	          __void__apply__osg_State_R1,	          "Bind the texture object. ",	          "If the texture object hasn't already been compiled, create the texture mipmap levels. ");	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_SimpleProperty(unsigned int, GlyphImageMargin, 	                 __unsigned_int__getGlyphImageMargin, 	                 __void__setGlyphImageMargin__unsigned_int);	I_SimpleProperty(float, GlyphImageMarginRatio, 	                 __float__getGlyphImageMarginRatio, 	                 __void__setGlyphImageMarginRatio__float);	I_SimpleProperty(bool, ThreadSafeRefUnref, 	                 0, 	                 __void__setThreadSafeRefUnref__bool);END_REFLECTOR

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?