island-org / gpulib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GpuLib

GpuLib is a public domain C library that uses 65 modern OpenGL AZDO functions to draw 3D geometry, post-process textures and compute arrays of numbers on GPU.

The contract:

  • SDL2, Linux and Windows (Visual Studio 2015) only. Doesn't target macOS, WebGL or OpenGL ES.
  • No multithreaded or asynchronous CPU <-> GPU interactions. No barriers or sync points except for glFinish calls.
  • Not all modern OpenGL extensions are used, only those which are supported on low-end hardware and latest Mesa.

Naming convention:

  • buf: Buffer
  • tex: Texture
  • pix: Pixel
  • img: Image
  • cbm: Cubemap
  • msi: Multisample Image
  • cpi: Compressed Image
  • smp: Sampler
  • pro: Program Object
  • ppo: Pipeline Program Object
  • fbo: Framebuffer Object
  • xfb: Transform Feedback Object

Special thanks to Nicolas @nlguillemot and Andreas @ands for answering my OpenGL questions and Micha @vurtun for suggestions on how to improve the library!

About


Languages

Language:C++ 74.7%Language:C 25.2%Language:Shell 0.1%Language:Batchfile 0.0%