2016-11-22 16:18:04 -06:00
|
|
|
package pixelgl
|
|
|
|
|
2016-12-30 18:33:53 -06:00
|
|
|
// 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.
|
2016-12-30 18:33:53 -06:00
|
|
|
type BeginEnder interface {
|
|
|
|
Begin()
|
|
|
|
End()
|
2017-01-16 18:24:15 -06:00
|
|
|
}
|