small cosmetic changes
This commit is contained in:
parent
b50852a3c2
commit
1adcea5920
|
@ -23,7 +23,7 @@ package pixelgl
|
||||||
// shader = NewShader(window)
|
// shader = NewShader(window)
|
||||||
// texture = NewTexture(shader)
|
// texture = NewTexture(shader)
|
||||||
// vertexarray = NewVertexArray(texture)
|
// vertexarray = NewVertexArray(texture)
|
||||||
// // now, somewhere else in your code, instead of calling numerous Begin/Ends, you just calling
|
// // now, somewhere else in your code, instead of calling numerous Begin/Ends, you just call
|
||||||
// vertexarray.Draw()
|
// vertexarray.Draw()
|
||||||
//
|
//
|
||||||
// The final single call to draw a vertex array executes all of the Begins and Ends, because the objects are
|
// The final single call to draw a vertex array executes all of the Begins and Ends, because the objects are
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
package pixelgl
|
package pixelgl
|
||||||
|
|
||||||
import (
|
import "runtime"
|
||||||
"runtime"
|
|
||||||
)
|
|
||||||
|
|
||||||
// Due to the existance and usage of thread-local variables by OpenGL, it's recommended to
|
// Due to the existance and usage of thread-local variables by OpenGL, it's recommended to
|
||||||
// execute all OpenGL calls from a single dedicated thread. This file defines functions to make
|
// execute all OpenGL calls from a single dedicated thread. This file defines functions to make
|
||||||
|
|
Loading…
Reference in New Issue