Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: File reading and printing in openGL

  1. #1
    Newbie Newbie
    Join Date
    Nov 2017
    Posts
    2

    Question File reading and printing in openGL

    How to read and print the data from a wad file.. in opengl

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,715
    OpenGL is a graphics API. It has absolutely nothing to do with files or IO. So no, you can't.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2017
    Posts
    11
    Quote Originally Posted by mhagain View Post
    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.

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,715
    Quote Originally Posted by silikone View Post
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •