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 / dbSpriteGreen (Red & Blue as well) just returning 255!

Author
Message
Nizze
16
Years of Service
User Offline
Joined: 12th Jan 2008
Location: Right here - where else?
Posted: 3rd Nov 2009 16:40 Edited at: 6th Mar 2011 14:23
Hey

So I have this little problem. I'm working on a small project, just for fun, and I'm trying to store the types of various components from the game in sprite diffuse values.
Anyway, when I try to use the command to retrieve this diffuse colour (dbSpriteGreen in this case) it just returns 255! I don't know if I've done anything wrong, if it's a bug, or if it's my graphics card that doesn't like these functions (NVIDIA GeForce 9600M GT). Here's the code in question:



Maybe it's just something I've missed.
On the code, I know it's not the fastest way to complete tasks, and and many of the functions are just test functions, but the code hasn't been optimised yet. Anyway if you find any critical mistake please tell me :p I'm quite new to C++ still.

So what could be the problem? Thanks in advance,
Nizze

-- Nizze

Login to post a reply

Server time is: 2024-10-01 16:29:57
Your offset time is: 2024-10-01 16:29:57