-
Notifications
You must be signed in to change notification settings - Fork 1
/
texture.h
54 lines (37 loc) · 1.02 KB
/
texture.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef _TEXTURE_H_
#define _TEXTURE_H_
#include <glad/glad.h>
#include "window.h"
#include "insight.h"
#include <stb_image.h>
#include <stb_image_write.h>
typedef unsigned int texture_t[4];
/*
*/
INSIGHT_API void mk_texture2d(texture_t This, const char* path);
/*
*/
INSIGHT_API void mk_texture2d_from_bytes(texture_t This, unsigned char* raw_data, int width, int height);
/*
*/
INSIGHT_API void mk_texture_skybox(texture_t This, char** faces_files, unsigned int lenght);
/*
*/
INSIGHT_API void texture_bind(texture_t self, unsigned int sampler);
/*
*/
INSIGHT_API void texture_unbind();
/*
*/
INSIGHT_API void texture_copy(texture_t dest, texture_t src);
/*
*/
INSIGHT_API void texture_finalize(texture_t self);
/*
*/
INSIGHT_API int screenshot();
/*! Sets window cursor */
INSIGHT_API GLFWcursor* window_set_cursor(struct window* self, const char* path);
/*! Sets window icon */
INSIGHT_API void window_set_icon(struct window* self, const char* path);
#endif /* _TEXTURE_H_ */