RyanHub - file viewer
filename: include/model.h
branch: main
back to repo
// model.h
#ifndef MODEL_H
#define MODEL_H

#include <glad/glad.h>
#include <stddef.h>

typedef struct {
    GLuint vao;
    GLuint vbo;
    int vertex_count;
    int vertex_stride;
} Model;

Model* model_create(const float* vertex_data, size_t vertex_count, int* attributes, int attrib_count);
Model* model_load(const char* filepath);
void model_destroy(Model* model);

#endif