chsc/gogl — Issue #3: How to create an offset with Pointer
Author: Agon
Created: 2012-01-16 22:40:11+00:00
State: open

Hello,

I have a buffer structure which contains vertex and texture coordinates.
Within C I could use glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * pointer); and pass for example a 8 as a pointer.
With Go I can't do gl.Pointer(8).
func VertexAttribPointer(index Uint, size Int, type_ Enum, normalized Boolean, stride Sizei, pointer Pointer)

How do you set an byte offset with the pointer value?