PDA

View Full Version : File reading and printing in openGL



master21
11-05-2017, 11:38 AM
How to read and print the data from a wad file.. in opengl

mhagain
11-05-2017, 11:45 AM
OpenGL is a graphics API. It has absolutely nothing to do with files or IO. So no, you can't.

silikone
11-06-2017, 02:16 AM
OpenGL is a graphics API. It has absolutely nothing to do with files or IO. So no, you can't.

I guess that's where GLUT comes in, though I am curious to know what it takes to create a Windows interface from scratch that has the bare minimums like window management and file reading.

mhagain
11-06-2017, 02:57 AM
I guess that's where GLUT comes in, though I am curious to know what it takes to create a Windows interface from scratch that has the bare minimums like window management and file reading.

GLUT has nothing to do with file IO either. Nor has the native Windows code equivalent. In all cases you just use whichever file IO API you wish - stdio, ifstream, Windows API, whatever.