aboutsummaryrefslogtreecommitdiff
path: root/mons_3d/include/texture.h
blob: 4e3d2e424c4cd0e06e6de21d9892d88196de0e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef MONS_TEXTURE_H
#define MONS_TEXTURE_H

#include "image.h"
#include "shader.h"
#include <stdio.h>

typedef struct mons_texture {
    unsigned int id;
    unsigned int width;
    unsigned int height;
} mons_texture;

mons_texture mons_texture_from_image(mons_image image);
mons_texture mons_texture_load(FILE *stream);

void mons_texture_bind(mons_program shader, unsigned int unit, mons_texture texture);

#endif