PDA

View Full Version : Offer source code: basic functionality incl. console, for OGL apps in Win32!



Tytrix
11-12-2002, 01:22 PM
Hello,
I have written a "base system" for an OpenGL/Win32 application in C/C++. It's object-oriented, easily expandable and should be helpful for beginners because I've tried to explain everything important in the code comments. It does several important basic tasks for you and contains a console for basic command-line interactivity (i.e. for easy testing).
The code is executable immediately, and you may simply start experimenting with rendering by manipulating the rendering function!
If you're interested, take a look at it: you can download the code including a short documentation at http://www.danielwytrykus.de.vu
(in section "programming")

I'm currently using this code in one of my own OpenGL projects.

For comments or suggestions, you may answer me here or write a mail (my address is on the site)

Belgy
11-14-2002, 06:30 AM
It seems that your link is dead http://www.opengl.org/discussion_boards/ubb/frown.gif

Vincenz
11-14-2002, 07:36 AM
Hey Tytrix,
it looks great. When I have some time
I'll expand it a little so it will be able to use paintlib and such. And perhaps an actual parser that parses opengl commands :P

Just a thought.

Tytrix
11-17-2002, 12:46 PM
The link should work, I have tested it. Maybe it doesn't work in all cases because it's broken in 2 lines, so here it is again:
http://www.danielwytrykus.de.vu

@Vincenz:
Thanx!
What exactly is paintlib?
I'll think about the thing with OGL commands.

Belgy
11-18-2002, 05:17 AM
It works fine now. Great job btw, this is really usefull.

//Belgy

J P
11-18-2002, 02:22 PM
Here are some suggestions to make it even better.

1) Don't display the mouse cursor in the console window, ShowCursor(false).

2)Entering 1 or more blanks causes the program to crash, it should just return "unkown command".

3)Reset the monitor frequency and resolution to what it was before running your program.

4)Make it do something simple like rotate a cube for illustration purposes and add a tilde (~) function to enter/exit the console mode like Quake.

Tytrix
11-22-2002, 02:57 PM
@JP:
Thanks for the suggestions:
1) You're right
2) Hey, I never tried that out...
3) I do reset the original monitor settings by calling the respective Win32-function (I think it's SetDisplaySettings) with NULL argument, this should reset the settings according to the API documentation (and it works on my system). If it doesn't work: strange...
4) console mode is (de)activated with TAB. I decided to do no real demo rendering because then you have to throw out that demo code first if you want to put in your own stuff. But okay, it would be nice for beginners to have some action there to manipulate.