2020-12-31 12:58:39 +00:00
|
|
|
#ifndef GRAPHICS_H
|
|
|
|
#define GRAPHICS_H
|
|
|
|
|
|
|
|
#include <GL/gl.h>
|
|
|
|
#include <glm/vec2.hpp>
|
|
|
|
|
|
|
|
void initGraphics ();
|
|
|
|
|
|
|
|
void graphicsFrame ();
|
|
|
|
|
2021-01-01 16:20:09 +00:00
|
|
|
void initBuffers (GLuint* vaoNum);
|
|
|
|
|
2021-01-01 08:23:44 +00:00
|
|
|
void initTexture (GLuint* texNum, const char* path);
|
|
|
|
|
|
|
|
void initShader();
|
|
|
|
|
2020-12-31 12:58:39 +00:00
|
|
|
void printShaderCompileLog(GLuint shader);
|
|
|
|
|
2021-01-01 08:23:44 +00:00
|
|
|
void updateModel(glm::vec2 headPos, glm::vec2 facePos);
|
2020-12-31 12:58:39 +00:00
|
|
|
|
|
|
|
#endif
|