prog.cpp:2:1: error: ‘precision’ does not name a type
precision mediump float;
^
prog.cpp:3:1: error: ‘varying’ does not name a type
varying vec2 v_uv;
^
prog.cpp:4:1: error: ‘uniform’ does not name a type
uniform sampler2D u_s_texture;
^
prog.cpp:5:11: error: ‘::main’ must return ‘int’
void main()
^
prog.cpp: In function ‘int main()’:
prog.cpp:7:1: error: ‘gl_FragColor’ was not declared in this scope
gl_FragColor = texture2D(u_s_texture, v_uv);
^
prog.cpp:7:26: error: ‘u_s_texture’ was not declared in this scope
gl_FragColor = texture2D(u_s_texture, v_uv);
^
prog.cpp:7:39: error: ‘v_uv’ was not declared in this scope
gl_FragColor = texture2D(u_s_texture, v_uv);
^
prog.cpp:7:43: error: ‘texture2D’ was not declared in this scope
gl_FragColor = texture2D(u_s_texture, v_uv);
^