I've been trying to get dbPoint to work for the past 10 hours (with a few breaks inbetween). It doesn't seem to work.
The help doc says that dbPoint returns an int but looking on the popup when you are entering the parameters it shows that it outputs a DWORD. After researching what that is, I am under the impression that it would print out the color value in 4 sets of 8 bit numbers. Checking what the output is when I do something like "double d = dbPoint(20,20);" d is usually a number that would be something like 255,0,0,0. I am guessing one of those sets is a value for transparency. Anyways the dbPoint function hasn't seemed to return any value that I could use to check the color of anything on screen.
If there is something I am missing let me know. Here is some test code I have been using to get the value returned by dbPoint. I use a watch on the variable i and a breakpoint on the line i=i (Just useless code to get a breakpoint where I want it.
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
double i = 0;
dbSyncOn ( );
dbSyncRate ( 60 );
dbLoadImage( "Backdrop.bmp", 1 );
dbSprite ( 1, 0, 0, 1 );
while ( LoopGDK ( ) )
{
i = dbPoint(529,322);
dbSync ( );
}
i=i;
return;
---
Is there any other way I could do this (Second paragraph in my OP)?