added some opengl files TODO: fix up using glew as optional

This commit is contained in:
herbglitch 2024-01-19 01:17:19 -07:00
parent c614c679a9
commit d170a64a41
24 changed files with 164 additions and 93 deletions

View file

@ -0,0 +1,27 @@
#ifndef ARC_OPENGL_WINDOW_H_
#define ARC_OPENGL_WINDOW_H_
#ifdef ARC_GLFW_WINDOW
#define GLEW_STATIC
#include <GL/glew.h>
#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_WINDOW
#endif // !ARC_GLFW_WINDOW_H_