Compare commits

..

No commits in common. "mesh-handler" and "main" have entirely different histories.

3 changed files with 1 additions and 15 deletions

View file

@ -89,7 +89,7 @@ int main(int argc, char *argv[]) {
1, 2, 3 // second Triangle 1, 2, 3 // second Triangle
}; };
GLuint VBO, VAO, EBO; unsigned int VBO, VAO, EBO;
glGenVertexArrays(1, &VAO); glGenVertexArrays(1, &VAO);
glGenBuffers(1, &VBO); glGenBuffers(1, &VBO);
glGenBuffers(1, &EBO); glGenBuffers(1, &EBO);

View file

View file

@ -1,14 +0,0 @@
#pragma once
#include "SDL3/SDL_opengl.h"
#include "shader.h"
#include <sys/types.h>
typedef struct {
float *vertex_buffer;
uint vertex_buffer_size;
float *element_buffer;
uint element_buffer_size;
wn_shader *shader;
GLuint VBO, VAO, EBO, diffuse_texture;
} Mesh;