example
example copied to clipboard
Example programs for the various go-gl packages.
Hi, can I reheat a web page at the created window?
I was checking out the demo (41-cube) and noticed some chopping/lag... I wonder if this is a Go-GL issue or just something with the way to program was written.
Hello! I added SwapInterval(1) to example/gl21-cube and it gives me a nice 60 fps. But if i run a second cube.exe at the same time they both show only 60/2=30...
I like how simple this project is go-gl isn't trying to be a full engine just control over gl, which is nice because I want to build a 3D scene...
Result: 
Hello, In according to that line we create the texture https://github.com/go-gl/example/blob/d71b0d9f823d97c3b5ac2a79fdcdb56ca1677eba/gl21-cube/cube.go#L82 In according to example in documentation on page https://docs.gl/gl2/glGenTextures ``` glGenTextures(1, &texture_id); glBindTexture(GL_TEXTURE_2D, texture_id); .... glBindTexture(GL_TEXTURE_2D, 0); ``` I...
I had issues just following the code when it comes to null termination. Usually in go you don't deal with worrying about strings having them, so I reordered it such...
Modernize examples slightly.
``` % go version go version go1.23.1 darwin/arm64 % go run github.com/go-gl/example/gl21-cube@latest 2024/11/04 05:07:23 Unable to find Go package in your GOPATH, it's needed to load assets: no required module...