Andy Gilbert Posted November 24, 2009 Share Posted November 24, 2009 Unforutnatly im still locked out the forums and i have a questions so this si the only place i can ask. There two things: Ok.. 1st. How can i Show a var as text on the display? I can show text all ok, but dont know who to shows variables. 2nd. Can find any C++ examples on this (why is there such a mix of C++/C/blitzmax examples in the wiki???) anyways, im trying to get the rotation of a mesh, i can see how its done using blitzmax, but i cant seem to get it to work the same way in C++. Thanks Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
wh1sp3r Posted November 24, 2009 Share Posted November 24, 2009 How show ? you mean with DrawText() ? DrawText(1,1, "My string: %s, My Number: %d", mystring,mynum); http://www.leadwerks.com/wiki/index.php?title=DrawText if you need know another %X parameters, just go there http://cplusplus.com/reference/clibrary/cstdio/printf/ good c++ documentation is there http://cplusplus.com/doc/tutorial/ Quote -= Phenom II X4 965 3.4Ghz - ATI HD5870 - 6 GB DDR3 RAM - Windows 8 Pro 64x=- Website: http://www.flamewarestudios.com Link to comment Share on other sites More sharing options...
Andy Gilbert Posted November 24, 2009 Author Share Posted November 24, 2009 Cheers whisper, spot on that. Anyone know about the 2nd problem? Thanks Andy Quote The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do. Leadwerks Game-Ready 3D Models:https://sellfy.com/gib3d Link to comment Share on other sites More sharing options...
wh1sp3r Posted November 24, 2009 Share Posted November 24, 2009 Cheers whisper, spot on that. Anyone know about the 2nd problem? Thanks Andy rotation can be done with TurnEntity Command Try in main lopp TurnEntity(MyModel, Vec3(1,1,1)); Quote -= Phenom II X4 965 3.4Ghz - ATI HD5870 - 6 GB DDR3 RAM - Windows 8 Pro 64x=- Website: http://www.flamewarestudios.com Link to comment Share on other sites More sharing options...
Pixel Perfect Posted November 24, 2009 Share Posted November 24, 2009 im trying to get the rotation of a mesh, i can see how its done using blitzmax, but i cant seem to get it to work the same way in C++. TVec3 meshRotation = EntityRotation(entity,1); use 1 for global, 0 for local 1 Quote Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++ Link to comment Share on other sites More sharing options...
wh1sp3r Posted November 25, 2009 Share Posted November 25, 2009 ah, yes, he said "GET" sorry about it Quote -= Phenom II X4 965 3.4Ghz - ATI HD5870 - 6 GB DDR3 RAM - Windows 8 Pro 64x=- Website: http://www.flamewarestudios.com Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.