lets use opengl instead

This commit is contained in:
2025-04-21 22:16:28 -04:00
parent 59e838aabb
commit 48c90cd5bf
24 changed files with 13103 additions and 50 deletions

14
build/shaders/shader.fs Normal file
View File

@ -0,0 +1,14 @@
#version 330 core
out vec4 FragColor;
in vec3 ourColor;
in vec2 TexCoord;
uniform sampler2D texture1;
uniform sampler2D texture2;
void main()
{
FragColor = texture(texture2, TexCoord);
}

15
build/shaders/shader.vs Normal file
View File

@ -0,0 +1,15 @@
#version 330 core
layout (location = 0) in vec3 aPos;
layout (location = 1) in vec3 aColor;
layout (location = 2) in vec2 aTexCoord;
out vec3 ourColor;
out vec2 TexCoord;
void main()
{
gl_Position = vec4(aPos, 1.0);
ourColor = aColor;
TexCoord = aTexCoord;
}

BIN
build/src/glad.c.o Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
build/src/stb_image.cpp.o Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

BIN
build/textures/wg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.