facecam2d/src/graphics.hpp
Epicalert 62779b6f78
separate face and head
- Head position is now calculated from the midpoint of points 2 and 14
(sides of head)
- Face position is calculated from point 30 (nose tip)
2021-01-01 16:23:44 +08:00

20 lines
312 B
C++

#ifndef GRAPHICS_H
#define GRAPHICS_H
#include <GL/gl.h>
#include <glm/vec2.hpp>
void initGraphics ();
void graphicsFrame ();
void initTexture (GLuint* texNum, const char* path);
void initShader();
void printShaderCompileLog(GLuint shader);
void updateModel(glm::vec2 headPos, glm::vec2 facePos);
#endif