|
From: Rick M. <ri...@sw...> - 2003-04-08 04:47:40
|
Posted latest changes to OpenGL code on web site. This week I'm adding
all the old classes to the new code. Hopefully, I have everything back
in its proper place.
Mike, I'm having trouble getting the timer1 function to call
ShipHandeling() and UpdateSensors(). It will work if I just add those
two subroutines to the main loop. The main loop code is as follows:
if (timer1 + (1000 / timecompression) < SDL_GetTicks())
{
timer1 = SDL_GetTicks();
ShipHandeling();
UpdateSensors();
// Testing
cout << Subs[0].BearingToTarget(Subs[1]) << endl;
}
The bearing to the first target seems to be updating, but when you get
time take a look and see what I'm missing.
Also, I've been thinking about the sonar display and think that if we
call a routine similar to the DisplayWidgets() routine in maim.cpp, we
will able to "paste" trace bmps, at an (x,y) on the sonarscreen.bmp that
corresponds to the correct bearing. I've attached a couple of sonar
trace bmp's for the sonar that I think will work. The other bmp that we
will need is a background or noise bmp. I think that if we paste the
trace and noise bmp together with some blending, it might look right.
Rick
|