OpenGL in DOS?

can I write an OpenGL program in DOS?
I intend to write a PaintBrush-like app for use in DOS.
Can OpenGL be used here (to be specific can i use GLUT)?
If not what other libraries can be used for the same.
The app is to support only 2D operations.

[This message has been edited by princeoflightning (edited 02-11-2004).]

Mesa (www.mesa3d.org) had support for DOS in the past, I am not sure if it is still supported.

Do not expect to find hardware accelerated OpenGL for dos though, you will have to stick to software rendering.

Mikael

Originally posted by princeoflightning:
can I write an OpenGL program in DOS?
DOS from a window or the old DOS6.x no one is using now?
Originally posted by princeoflightning:Can OpenGL be used here (to be specific can i use GLUT)?[/b]
Pure DOS: never tried, I guess not. Emulated dos: sure, glut works only in that way and this also applied so SDL as well.

Maybe this should be posted in windows-specific forum?