prog.cpp:1:2: error: invalid preprocessing directive #version
#version 330 core
^
prog.cpp:3:8: error: expected constructor, destructor, or type conversion before '(' token
layout (location = 0) in vec3 in_Position;
^
prog.cpp:4:8: error: expected constructor, destructor, or type conversion before '(' token
layout (location = 1) in vec3 in_Color;
^
prog.cpp:5:8: error: expected constructor, destructor, or type conversion before '(' token
layout (location = 2) in vec2 in_UV;
^
prog.cpp:7:1: error: 'out' does not name a type
out vec2 vs_TexturePos;
^
prog.cpp:9:1: error: 'uniform' does not name a type
uniform mat4 model;
^
prog.cpp:10:1: error: 'uniform' does not name a type
uniform mat4 view;
^
prog.cpp:11:1: error: 'uniform' does not name a type
uniform mat4 projection;
^
prog.cpp:13:11: error: '::main' must return 'int'
void main()
^
prog.cpp: In function 'int main()':
prog.cpp:15:2: error: 'gl_Position' was not declared in this scope
gl_Position = projection * view * model * vec4(in_Position, 1.0f);
^
prog.cpp:15:16: error: 'projection' was not declared in this scope
gl_Position = projection * view * model * vec4(in_Position, 1.0f);
^
prog.cpp:15:29: error: 'view' was not declared in this scope
gl_Position = projection * view * model * vec4(in_Position, 1.0f);
^
prog.cpp:15:36: error: 'model' was not declared in this scope
gl_Position = projection * view * model * vec4(in_Position, 1.0f);
^
prog.cpp:15:49: error: 'in_Position' was not declared in this scope
gl_Position = projection * view * model * vec4(in_Position, 1.0f);
^
prog.cpp:15:66: error: 'vec4' was not declared in this scope
gl_Position = projection * view * model * vec4(in_Position, 1.0f);
^
prog.cpp:16:2: error: 'vs_TexturePos' was not declared in this scope
vs_TexturePos = in_UV;
^
prog.cpp:16:18: error: 'in_UV' was not declared in this scope
vs_TexturePos = in_UV;
^