|
From: Joe V. <jo...@ve...> - 2003-03-06 05:16:01
|
Ah, you should take a look at my font.cpp file in the ssn3d bundle I sent you... I switch to ortho mode to draw the text... gluOrtho2d is just calling glOrtho with near and far set to -1 and 1, respectively, which isn't really much of a reason to use it instead of glOrtho (just pass -1 and 1 into it!) because glut sometimes isn't distributed along with OpenGL (like with windows) and since we're already using SDL for our window creating and event handling, there's no real reason to add GLUT. That's my two cents anyway.... Well, I'm probably the least familiar with the code as it currently is, but perhaps you could modify the main.cpp to use OpenGL, and then we could just take it from there... I might make a class to make the loading and display of 2D graphics a bit easier, for example. Or I could probably convert over one of the other stations... or I could work on implementing some aspect of the code I've got in that ssn3d bundle. Joe Venzon On Wed, 5 Mar 2003 21:04:47 -0600 (CST) MCDANIEL RICKEY D <MC...@hs...> wrote: > Yes, modifying the OpenGL branch main.cpp file to just display the > radar screen sounds like a good plan. Once we get that done, adding > the other screens shouldn't be that diffcult. > > For the sonar screen, I might have to get Mike to explain how the sonar > display does its plotting. The other screens aren't as difficult. > > As for the radar code, if you, Mike or Q see a better way to do things > lets do it. For example, I was kind of wondering in the init.cpp code > that I should have used gluOrtho2D instead of glOrtho since the only > place where 3D is really called for is in the periscope view or maybe > the map view for displaying DEM. So when we want to use the periscope > we can change our projection mode from 2D to 3D. > > I have time this weekend too. So, we should all decide on what parts > we are willing to tackle. > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > Linuxssn-devel mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxssn-devel |