Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: OpenGL 2.1 example code for C++

  1. #1

    OpenGL 2.1 example code for C++

    I found, under the documentation link, an OpenGL 2.1 Reference Page. This is awesome!

    Does anyone know of some good places where I can find sample C++ code, using OpenGL 2.1 specifically, for doing things like loading, reading and writing images, displaying images in windows that can be resized, etc?
    Last edited by; 09-03-2018 at 07:57 PM. Reason: Subscribing

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Here are just a few of the many possible ways to load image data into OpenGL:

    Image Libraries (OpenGL wiki)

    Once you've got an image loaded as a list of RGB or RGBA pixels, loading the image data into an OpenGL texture is simple. So this is more an exercise in learning how to use an image loading library.

Posting Permissions

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