Irrlicht engine uses 2 Chinese display

Source: Internet
Author: User

Author's Environment: compilation environment: VS2008Irrlicht SDK: Version 1.3
Download here: http://irrlicht.sourceforge.net/downloads.html
FreeType: version 2.2.1
Http://sourceforge.net/projects/freetype/files/
The Code is as follows:
Chinese. cpp: 650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>#include <irrlicht. h>
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> # include "TTFontManager. h"
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> # include "CGUITTFont. h"
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>
Using namespace irr;
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> using namespace irr: core;
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> using namespace irr: video;
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> using namespace irr: scene;
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> using namespace irr: gui;
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>
# Pragma comment (lib, "irrlicht. lib ")
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> # pragma comment (lib," freetype221MT. lib ")
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>
Int main ()
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> {
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> // get the device object, drive type dx9
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> IrrlichtDevice * device = createDevice (EDT_DIRECT3D9, dimension2d <s32> (640,480 ), 16, false, 0 );
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> if (! Device)
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> return 1;
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>
Device-> setWindowCaption (L "Hello world! "); // Set the Form title
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> IVideoDriver * driver = device-> getVideoDriver (); // texture-related
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> ISceneManager * smgr = device-> getSceneManager (); // obtain the scenario manager object
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> IGUIEnvironment * guienv = device-> getGUIEnvironment (); // obtain the GUI environment object (related to the interface)
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> IGUIStaticText * guitxt = guienv-> addStaticText (L" Hello World. ", rect <int> (10, 10,), true );
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>
New TTFontManager (driver );
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \' # \ '"/editer/InBlock.gif" align = "top"/> TTFontManager * ttmgr = TTFontManager: GetSingletonPtr ();
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> IGUIFont * font = ttmgr-> getFont (" simsun. ttc ", 24 );
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>
ISceneNode * cubeNode = smgr-> addCubeSceneNode (100366f); // Add a cube
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> ITexture * tex = driver-> getTexture (" texture.jpg "); // obtain texture
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> cubeNode-> setMaterialTexture (0, tex); // set texture for the cube
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> cubeNode-> setMaterialFlag (EMF_LIGHTING, false); // you can set the texture to be independent of the light source.
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> // cubeNode-> setMaterialType (EMT_TRANSPARENT_ALPHA_CHANNEL); // you can specify a translucent Alpha channel.
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>
ICameraSceneNode * camera = smgr-> addCameraSceneNode (0, vector3df (100,100,-100), vector3df (, 0 ));
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>
// Game Loop
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> while (device-> run ())
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> {
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> driver-> beginScene (true, true, SColor (255,200,200,255 )); // [[Begin
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>
Smgr-> drawAll (); // draw all
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> guienv-> drawAll (); // draw interface elements
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> font-> draw (L" is a Chinese character and the font is! ", Rect <int> (0,200,200, 30), SColor ));
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) "src = \ '# \'"/editer/InBlock.gif "align =" top "/> // font-> draw (L" Chinese font-Chinese character-font file 3 m! ", Rect <s32> (200,340,800,600), SColor (255,255,255, 0 ));
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>
Driver-> endScene (); // End]
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>}
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>
Font-> drop (); // delete a font object
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> delete ttmgr; // delete the font manager object
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>
Device-> drop (); // delete a device object
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/> return 0;
650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = \ '# \' "/editer/InBlock.gif" align = "top"/>}
For other header files, see the attachment.
: 650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'onclick =" window. open ("http://blog.51cto.com/viewpic.php? Refimg = "+ this. src)" src = "../attachment/201005/201005271274947701421 .jpg" border =" 0 "alt =" "/>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.