GUI Controls part 2 version 1
by Phil Carlisle · 02/09/2002 (8:25 am) · 10 comments
Download Code File
Ok, this tutorial is quite low on my list, basically its an old control tutorial about how to create a rotated bitmap compass control.
This was using the old release sdk codebase, so it doesnt actually compile "out of the box".
For this reason I'll just post it as a zipfile, so that if your interested in making a rotated bitmap style object (think things like compass, radar, map etc) then you can use this for information.
I'll post an updated version of this tutorial (hence the version 1 description) when Ive got some spare time to update the code.
See the .doc file for the actual tutorial, it will explain why there are so many classes and what the intention was.
Hope this helps. Its just that I need it off my concience that I didnt release it yet.
Also, look for the fast becoming stupidly large vehicle tutorial very soon (probably early next week now, waiting for the final models and I'm away for most of the weekend).
Phil.
Ok, this tutorial is quite low on my list, basically its an old control tutorial about how to create a rotated bitmap compass control.
This was using the old release sdk codebase, so it doesnt actually compile "out of the box".
For this reason I'll just post it as a zipfile, so that if your interested in making a rotated bitmap style object (think things like compass, radar, map etc) then you can use this for information.
I'll post an updated version of this tutorial (hence the version 1 description) when Ive got some spare time to update the code.
See the .doc file for the actual tutorial, it will explain why there are so many classes and what the intention was.
Hope this helps. Its just that I need it off my concience that I didnt release it yet.
Also, look for the fast becoming stupidly large vehicle tutorial very soon (probably early next week now, waiting for the final models and I'm away for most of the weekend).
Phil.
About the author
#3
If everyone's ok I'll leave things at that and work on something a bit different :))
Still have to think of some more gui controls, but at least for now this combo should do :))
Phil.
02/10/2002 (11:50 am)
Thanks for posting yours Matt, I got so fed up with not getting round to finishing mine that I thought what the hell and released it anyway.If everyone's ok I'll leave things at that and work on something a bit different :))
Still have to think of some more gui controls, but at least for now this combo should do :))
Phil.
#4
guiCompassCtrl.obj : error LNK2001: unresolved external symbol "void __cdecl dglDrawBitmapRotated(class TextureObject *,class RectI const &,class RectI const &,unsigned int,float)" (?dglDrawBitmapRotated@@YAXPAVTextureObject@@ABVRectI@@1IM@Z)
What am I doing wrong?
Thanks
03/11/2002 (2:30 pm)
I get this error when compiling:guiCompassCtrl.obj : error LNK2001: unresolved external symbol "void __cdecl dglDrawBitmapRotated(class TextureObject *,class RectI const &,class RectI const &,unsigned int,float)" (?dglDrawBitmapRotated@@YAXPAVTextureObject@@ABVRectI@@1IM@Z)
What am I doing wrong?
Thanks
#5
03/11/2002 (3:03 pm)
I figured it out. The new dgl.cc file was not compiling when I was building the exe so I compiled it seperately, and it now works. :)
#6
Randy...
04/10/2002 (2:14 am)
Richard how did you compile it seperatly? I am getting the exact error you got.Randy...
#7
04/10/2002 (11:00 am)
@Randy - The reason it doesn't work is that the new dgl.cc file has not been recompiled. To rectify this, right-click on the dgl.cc file and select "compile" from the drop-down menu. If this doesn't work select "Rebuild All" from the "Build" menu just in case there are other files that need compiling. I have found out that linking errors are normally the result of outdated files not being compiled (so the program looks for code that doesn't exist in the old version).
#8
04/10/2002 (2:42 pm)
Ok got it working. Thx.
#9
Randy...
04/10/2002 (3:15 pm)
Question. What if I wanted to put an overlay on that. Say a green box (compass box) with the rotating center bitmap. A green compass box with a red arrow. The center bitmap would rotate around it. Don't know enough about torque yet to do that but just spitting out the idea.Randy...
#10
08/30/2004 (1:43 pm)
I know this is old but where can I get the compass gui control? 
Torque Owner Matt W
His was a bit more complex, so I'll share mine in case anyone has problems with his. It does the same thing, but only updates 2 existing files, and adds 2 more.
Complete compass gui control
This will work fine "out of the box" and has been tested with v1.1 and v1.1.1