PDA

View Full Version : Open GL with 'normal' C++



adityagaddam
10-19-2002, 03:30 PM
I was just wondering.. can you use Open GL with normal C++? If so would the code be the same?

-Aditya

coredump
10-19-2002, 05:55 PM
just what do you mean by "normal"?

b

nergal
10-20-2002, 09:05 AM
Do you mean like ANSI C and others types of C?

adityagaddam
10-20-2002, 11:42 AM
I mean like some C++ that does not use the Win Main().. you know .. I think it is called a console application... well, let me put it this way, how did open gl programmers program in open gl before VC++ came out with its WinMain thing?

-Aditya

KShots
10-20-2002, 11:47 AM
I have been coding in a console app for quite a while now...I find it to provide a useful debug window while running fullscreen - The console goes to the other monitor

jpummill
10-20-2002, 04:39 PM
How the heck do you get the console to go to the other monitor. I have been wondering how this would work even though I don't have a two monitor system yet.

jpummill

Hazem_vb
10-20-2002, 04:59 PM
If you mean with normal c

Borland C++ Or Turbo C Or Turbo C++

there exits no WinMain in these languages

add to this the system message loop ...

so it will be not easy ...

coredump
10-21-2002, 02:58 AM
use glut

b

nexusone
10-21-2002, 03:54 AM
If you have a dual Monitor ATI card, it come with the software that allows that.

I only have used the multiple desktop feature which can come in handy.



Originally posted by jpummill:
How the heck do you get the console to go to the other monitor. I have been wondering how this would work even though I don't have a two monitor system yet.

jpummill

adityagaddam
10-21-2002, 10:01 AM
ok just wondering since some day I would want to make my engine platform independent...

-Aditya

*Aaron*
10-21-2002, 10:09 AM
There seems to be a bit of confusion about what console apps are. If you can create a window then you can use OpenGL. You can create windows with console apps beginning with the regular old "int main(int argc, char *argv[])". Therefore, you can use OpenGL with console apps.

KShots, I too use the console window for debugging purposes. It's pretty handy, huh?


Originally posted by Hazem_vb:
there exits no WinMain in these languages

add to this the system message loop ...

so it will be not easy ...I'm not sure what you mean. Anything that you can do in WinMain, you can do in main. Windows are created by calling Win32 API functions. The message processing loop is just a couple of API function calls in a loop. All API functions can be called from a console app. It's just a matter of linking the right import libraries (gdi32, etc.).