Game Development Community

Sprite Drawing

by Aaron Murray · in Torque Game Engine · 01/20/2002 (1:46 pm) · 5 replies

Okay, here's the situation... During the player rendering code, I want to draw a sprite on the screen. So I tried using the dglDrawBitmap() function, which is used in a few other places throughout the code. Problem is, nothing gets drawn when I do this. Any ideas?

I have one other question, where would be the best place to insert GUI rendering code that isn't using the GUI system? (For example... A targetting aimer that tracks an enemy across the screen)

Thanks!

#1
01/20/2002 (4:00 pm)
Check out the shape name HUD. It's a GUI, the one that puts the player's name above the model.
#2
01/21/2002 (4:50 pm)
Thanks... I believe that WILL help out rather nicely, and hopefully answer both questions... One thing though, what exactly is it called? I can't find anything like what you typed in in the code...
#3
01/21/2002 (5:16 pm)
check your playgui.gui
its in there shapenamectrl i think or something
#4
01/21/2002 (7:02 pm)
engine/game/fps/guiShapeNameHud.cc
#5
01/22/2002 (2:34 pm)
Ahh, thanks a bunch!