Marcel Plch
9c5b5d7471
Code imported from my seminary work. In this simplified version it rotates a triangle using OpenGL libraries. Crashes upon exit.
30 lines
446 B
C
30 lines
446 B
C
#ifndef CX_H
|
|
#define CX_H
|
|
|
|
// Include standard headers
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <math.h>
|
|
#include <time.h>
|
|
#include <unistd.h>
|
|
|
|
// Include GLEW
|
|
#include <GL/glew.h>
|
|
|
|
// Include GLFW
|
|
#include <GLFW/glfw3.h>
|
|
|
|
// Include project headers
|
|
#include <tensor.h>
|
|
#include <model.h>
|
|
#include <tensor.h>
|
|
#include <shader.h>
|
|
|
|
// Declare functions
|
|
|
|
int cx_glinit(GLFWwindow **);
|
|
int cx_glrun(GLFWwindow *);
|
|
|
|
#endif
|
|
|