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: How was OpenGL written? (For C)

  1. #1
    Newbie Newbie
    Join Date
    Jul 2017
    Posts
    1

    How was OpenGL written? (For C)

    Hey, everyone! As it is my first forum post, I'd like to ask you all how OpenGL for C was written. I don't want to know how it was compiled, but how the graphics were made. I can't figure out how to make a series of dots look like a line, can anyone help me with this? Any help would be very much appreciated and have a great day.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,789
    OpenGL is not a software library.

    OpenGL is a graphics API, typically described as "a software interface to graphics hardware", and it is implemented in the device driver for your graphics hardware. Each GPU vendor has their own implementation.

    Your program makes OpenGL calls, your GPU's device driver takes those calls and converts them to something your GPU can understand, then your GPU does the actual drawing.

    That last part is important. The specific thing you're asking, that doesn't happen in software, it happens in hardware. OpenGL doesn't do it, OpenGL just provides a way for your program to tell your GPU to do it.

  3. #3
    Advanced Member Frequent Contributor arekkusu's Avatar
    Join Date
    Nov 2003
    Posts
    881

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jan 2007
    Posts
    1,789
    Please note that pure software-only implementations will typically give you single digit framerates. They're useful for educational or instructional purposes (or for scenarios where functionality is more important than performance), but you shouldn't view them as being anything like how a hardware-based implementation works.

Posting Permissions

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