Skip to content

spate/gla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

OpenGL utility functions for Go

This package provides utility functions for tighter integration
with Go than a more conservative wrapping might provide. It is
intended to be used in conjunction with such a wrapper.
Currently, it depends lightly on github.com/banthar/gl

Utility function list:

TexImage2DFromImage
 - load texture image from image.Image

TexSubImage2DFromImage (*)
 - load texture subimage from image.Image

CompressedTexImage2DFromImage
 - load texture image from image.Image
 - only accepts Dxt1,Dxt3,Dxt5 (from glimage pkg)
 - see github.com/spate/glimage/dds for a DDS loader

BufferData
BufferSubData (*)
 - wraps glBufferData, glBufferSubData
 - accepts pointers and slices to plain old data

VertexAttribSlice
 - wraps glVertexAttribPointer usage with VBOs

VertexSlice
NormalSlice (*)
ColorSlice (*)
TexCoordSlice
 - wrap equivalent glBlahPointer functions


(*) indicates untested


This package is provided under a Clear BSD License.

About

OpenGL utility functions for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages