prog.cpp:2:1: error: ‘attribute’ does not name a type
attribute vec3 a_posL;
^
prog.cpp:3:1: error: ‘attribute’ does not name a type
attribute vec2 a_uv;
^
prog.cpp:4:1: error: ‘varying’ does not name a type
varying vec2 v_uv;
^
prog.cpp:5:1: error: ‘uniform’ does not name a type
uniform sampler2D u_s_texture;
^
prog.cpp:7:11: error: ‘::main’ must return ‘int’
void main()
^
prog.cpp: In function ‘int main()’:
prog.cpp:9:1: error: ‘v_uv’ was not declared in this scope
v_uv = a_uv;
^
prog.cpp:9:8: error: ‘a_uv’ was not declared in this scope
v_uv = a_uv;
^
prog.cpp:10:1: error: ‘vec4’ was not declared in this scope
vec4 posL = vec4(a_posL, 1.0);
^
prog.cpp:10:6: error: expected ‘;’ before ‘posL’
vec4 posL = vec4(a_posL, 1.0);
^
prog.cpp:11:1: error: ‘gl_Position’ was not declared in this scope
gl_Position = posL;
^
prog.cpp:11:15: error: ‘posL’ was not declared in this scope
gl_Position = posL;
^