summaryrefslogtreecommitdiff
path: root/src/texture.h
blob: 66566bee15664b3376cf6abab6164fc681407a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once
#include <glad/glad.h>

typedef struct {
	GLuint id;
} Texture;

[[nodiscard]]
/* Return -1 on error. */
int texture_init(Texture *this, const char *img_path);

void texture_deinit(Texture *this);