- 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)
20 lines
312 B
C++
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
|