-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutil.h
31 lines (25 loc) · 904 Bytes
/
util.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
#ifndef UTIL_H_
#define UTIL_H_
#include <GL/glew.h>
/* Using the GLUT library for the base windowing setup */
#include <GL/freeglut.h>
#include <math.h>
/* TODO: find these header usage */
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/ext.hpp>
#include "global.h"
GLuint sphere(float radius, int slices, int stacks);
glm::vec3 get_arcball_vector(int x, int y);
char *load_file(const char * path);
GLint get_uniform(GLuint program, const char *name);
void printLog(GLuint object);
GLuint create_shader(const char *path, GLenum type);
GLint get_attrib(GLuint program, const char *attr_name);
GLuint create_program(const char *vertex_path, const char *fragment_path);
void resetWindow(Window *window);
int mini_initWindow(int argc, char *argv[], Window *window);
void viewEntry(int state);
#endif /* UTIL_H_ */