[SDL] Triangle will not render (Justin Agrell)

Justin Agrell justin at u4e.us
Thu Sep 18 14:23:34 PDT 2014


You were both right, I was not specifying shaders at all. I decided to
find another example source and modify it to get things working for my
setup.

(Original source from:
http://www.brandonfoltz.com/2013/12/example-using-opengl-3-0-with-sdl2-and-glew/)

(my modified source)
http://u4e.us/c/main.c
http://u4e.us/c/fs1.glsl
http://u4e.us/c/vs1.glsl

This one renders the triangle finally!

I could not get the triangle to render color-per-vertex like in the
example so I removed it. I'm thinking that it didn't work due to my old
laptop (Intel 3000 graphics/GL 3.1) more than the source itself.

Thanks again!


More information about the SDL mailing list