From: <cn...@us...> - 2009-06-24 06:28:37
|
Revision: 371 http://hgengine.svn.sourceforge.net/hgengine/?rev=371&view=rev Author: cnlohr Date: 2009-06-24 06:27:59 +0000 (Wed, 24 Jun 2009) Log Message: ----------- fix text Modified Paths: -------------- Mercury2/modules/TextNode.cpp Mercury2/scenegraph.xml Modified: Mercury2/modules/TextNode.cpp =================================================================== --- Mercury2/modules/TextNode.cpp 2009-06-24 02:16:55 UTC (rev 370) +++ Mercury2/modules/TextNode.cpp 2009-06-24 06:27:59 UTC (rev 371) @@ -168,6 +168,7 @@ { if( g_AllFonts.get( sFont ) == 0 ) { + m_pThisFont = &g_AllFonts[sFont]; if( !m_pThisFont->LoadFromFile( sFont ) ) { fprintf( stderr, "Error: Could not load font: \"%s\".", sFont.c_str() ); Modified: Mercury2/scenegraph.xml =================================================================== --- Mercury2/scenegraph.xml 2009-06-24 02:16:55 UTC (rev 370) +++ Mercury2/scenegraph.xml 2009-06-24 06:27:59 UTC (rev 371) @@ -8,7 +8,7 @@ </node> <node type="transformnode" movz="-5" > - <node type="TextNode" text="test font 123" font="testfont.hgfont" size=".01" /> + <node type="TextNode" text="test font 123" font="testfont.hgfont" size=".01" alphaPath="true" /> </node> <!-- <asset type="texture" file="screenFBO_0" dynamic="true"/> <asset type="fullscreenquad"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |