Documentation ¶
Index ¶
- Constants
- func CompileShader(source string, shaderType uint32) (uint32, error)
- func DrawImage(windowWidth, windowHeight int, img image.Image, imageRectSpecs RectSpecs)
- func InRectSpecs(rectSpecs RectSpecs, xPos, yPos int) bool
- func MakeProgram(vertexShaderSource, fragmentShaderSource string) (uint32, uint32, uint32)
- func NewWindow(width, height int, title string, resizable bool) *glfw.Window
- func XtoFloat(x, windowWidth int) float32
- func YtoFloat(y, windowHeight int) float32
- type RectSpecs
Constants ¶
View Source
const ( BasicVertexShaderSource = ` #version 410 in vec3 vp; void main() { gl_Position = vec4(vp, 1.0); } ` TextureVertexShaderSrc = `` /* 261-byte string literal not displayed */ TextureFragmentShaderSrc = `` /* 235-byte string literal not displayed */ )
Variables ¶
This section is empty.
Functions ¶
func InRectSpecs ¶
useful for mouse events
func MakeProgram ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.