Games With Go 39 – Intro OpenGL & Golang



Games With Go 39 – Intro OpenGL & Golang

Games With Go 39 - Intro OpenGL & Golang

For more info on games with go, see: https://gameswithgo.org/

The error around halfway with shader compiling is due to not adding a null terminator to the shader source strings. You can fix this by adding:
+ “x00”
after the final back tick on the shader strings.

Computers with older gpus may need to set the opengl version to 3.3 in order to get things working, you can use this code before the call to createwindow:

sdl.GLSetAttribute(sdl.GL_CONTEXT_PROFILE_MASK, sdl.GL_CONTEXT_PROFILE_CORE) sdl.GLSetAttribute(sdl.GL_CONTEXT_MAJOR_VERSION, 3) sdl.GLSetAttribute(sdl.GL_CONTEXT_MINOR_VERSION, 3)

— Watch live at https://www.twitch.tv/jackmott42

Comments are closed.