Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Statistics Display?

Author
Message
CokeBoi
15
Years of Service
User Offline
Joined: 19th Jun 2009
Location:
Posted: 22nd Aug 2009 05:52
Hi, I was wondering how I can put the statistics of my game in the upper left corner or the screen (ex. Frame Rates, X, Y, Z, etc). I tried it by using dbText but it didn't allow it. Help please?

LOL
Funkbrotha10
15
Years of Service
User Offline
Joined: 2nd May 2009
Location:
Posted: 22nd Aug 2009 07:28


it was once said that a million monkeys at a million keyboards could re-produce the works of shakespear...
Now thanks to the internet we know that that is not true
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 22nd Aug 2009 07:36
Use this instead because dbStr() causes memory leaks if you don't assign a pointer to what it returns and delete it properly.



How to use sprintf

Your_Health = (My_Mood == HAPPY) ? 100 : NULL;
Todd Riggins
19
Years of Service
User Offline
Joined: 29th Oct 2004
Location: Texas, USA
Posted: 22nd Aug 2009 12:16 Edited at: 22nd Aug 2009 12:18
Hi Bran, since you are using sprintf_s which is the security enhancement version of sprintf:

This has documentation on sprintf_s

hope that helps...

Login to post a reply

Server time is: 2024-10-06 07:26:43
Your offset time is: 2024-10-06 07:26:43