Skip to content

Binding texture buffers #91

Description

@gilgamec

The current bindings have 'nice' ways to create and bind texture buffers, but no way that I can see to actually link one with a buffer object, i.e. glTexBuffer or glTexBufferRange. As nearly as I can tell, this should be straightforward, perhaps as simple as

texBuffer :: SettableStateVar (PixelInternalFormat, BufferObject)
texBuffer = makeSettableStateVar $ \(fmt,tbo) ->
  glTexBuffer (marshalBufferTarget TextureBuffer)
              (marshalPixelInternalFormat fmt)
              (bufferID tbo)

modulo available exports.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions