-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathApplicationUtility.h
37 lines (15 loc) · 978 Bytes
/
ApplicationUtility.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
#include <iostream>
#include <glad/glad.h>
float lerp(float a, float b, float f);
unsigned int initQuad(float size, float dist);
void renderQuad(unsigned int VAO);
unsigned int loadTexturePath(const char* path);
unsigned int loadHDRIPath(const char* path);
unsigned int bindDepthMap(unsigned int FBO, int width, int height);
void attachRBOToBuffer(unsigned int FBO, int width, int height, GLenum component, GLenum attachment, unsigned int samples);
unsigned int genCubeMap(int width, int height, GLenum format, GLenum component);
unsigned int bindCubeDepthMap(unsigned int FBO, int width, int height);
unsigned int bindColorBuffer(unsigned int FBO, int width, int height, GLenum attachment, GLint format, unsigned int samples, GLint option);
unsigned int initSkybox();
void renderSkybox(unsigned int VAO);
void GLAPIENTRY MessageCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam);