Questions tagged [openglraw]

OpenGLRaw is a raw Haskell binding for the OpenGL 3.2 graphics system and lots of OpenGL extensions.

OpenGLRaw is a raw Haskell binding for the OpenGL 3.2 graphics system and lots of OpenGL extensions. It is basically a 1:1 mapping of OpenGL's C API, intended as a basis for a nicer interface. OpenGLRaw offers access to all necessary functions, tokens and types plus a general facility for loading extension entries. The module hierarchy closely mirrors the naming structure of the OpenGL extensions, making it easy to find the right module to import. All API entries are loaded dynamically, so no special C header files are needed for building this package. If an API entry is not found at runtime, a userError is thrown.

Source:

http://hackage.haskell.org/package/OpenGLRaw

4 questions
11
votes
1 answer

"* Missing C library: GL" when installing gloss (specifically the OpenGLRaw dependency) on Ubuntu

I get the following error when trying to install gloss: Configuring OpenGLRaw-1.5.0.1... Failed to install OpenGLRaw-1.5.0.1 Build log ( /home//.cabal/logs/OpenGLRaw-1.5.0.1.log ): Configuring…
Gareth Charnock
  • 1,166
  • 7
  • 17
2
votes
1 answer

Should I be removing vertex buffer objects on every draw?

I have some Haskell / OpenGLRaw code that does something like this: verticesPtr <- newArray ... glVertexPointer 3 gl_DOUBLE 0 verticesPtr buffersPtr <- malloc glGenBuffers 1 buffersPtr buffer <- peek buffersPtr glBindBuffer gl_ARRAY_BUFFER…
sdasdadas
  • 23,917
  • 20
  • 63
  • 148
1
vote
1 answer

Can't load OpenGL procs, but only from Haskell

I've had a problem after converting some C++ code to Haskell on Windows. The code in C++ works fine, but in Haskell any OpenGL function fails to load, i.e. user error (unknown OpenGL extension entry glGenVertexArrays, check for OpenGL 3.1) Whereas…
Dan
  • 12,409
  • 3
  • 50
  • 87
0
votes
1 answer

Haskell GL Raw Binding Texture Trouble

I'm using two textures on two different objects that each have their own shader program. However, the second object renders with both textures applied and with some strange distortion. I will focus on the second object's code as the first object and…