Page 4 of 4

Re: Small cross-platform OpenGL demo

Posted: Sun Sep 11, 2016 8:34 am
by applePi
to let the above example to display colored triangle in PB v5.50 we must change line 84-85

Code: Select all

*vbuff = @vertex_shader
*fbuff = @fragment_shader
to

Code: Select all

*vbuff = Ascii(vertex_shader)
*fbuff = Ascii(fragment_shader)
in PB versions before 5.50 just don't create unicode executable

Re: Small cross-platform OpenGL demo

Posted: Fri Sep 30, 2016 12:26 am
by Didaktik
In PB 5.5 i have erroro on line


glGenBuffers( 1, @points_vbo ) ; Vertex Buffer Object

Invalid memory acess 0