go-opengl-pixel/pixelgl/interface.go

12 lines
345 B
Go
Raw Normal View History

2016-11-22 16:18:04 -06:00
package pixelgl
// BeginEnder is an interface for manipulating OpenGL state.
2016-11-22 16:18:04 -06:00
//
2016-12-30 10:53:47 -06:00
// OpenGL is a state machine. Every object can 'enter' it's state and 'leave' it's state. For
// example, you can bind a buffer and unbind a buffer, bind a texture and unbind it, use shader
// and unuse it, and so on.
type BeginEnder interface {
Begin()
End()
2017-01-16 18:24:15 -06:00
}