30 lines
530 B
C
30 lines
530 B
C
|
|
#ifndef ARC_OPENGL_WINDOW_H_
|
||
|
|
#define ARC_OPENGL_WINDOW_H_
|
||
|
|
|
||
|
|
#ifdef ARC_GLFW
|
||
|
|
|
||
|
|
#ifdef ARC_GLEW
|
||
|
|
#define GLEW_STATIC
|
||
|
|
#include <GL/glew.h>
|
||
|
|
#endif // !ARC_GLEW
|
||
|
|
|
||
|
|
#include "arc/graphics/window.h"
|
||
|
|
#include <GLFW/glfw3.h>
|
||
|
|
|
||
|
|
typedef GLFWwindow ARC_WindowType;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief struct for info needed to create a GLFWwindow
|
||
|
|
*
|
||
|
|
* @note this is what needs to be passed into the data parameter for ARC_Window_Create
|
||
|
|
*/
|
||
|
|
struct ARC_WindowInfo {
|
||
|
|
char *title;
|
||
|
|
int w;
|
||
|
|
int h;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // !ARC_GLFW
|
||
|
|
|
||
|
|
#endif // !ARC_GLFW_WINDOW_H_
|