added some opengl files TODO: fix up using glew as optional
This commit is contained in:
parent
c614c679a9
commit
d170a64a41
24 changed files with 164 additions and 93 deletions
28
include/arc/graphics/glfw/renderer.h
Normal file
28
include/arc/graphics/glfw/renderer.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef ARC_OPENGL_RENDERER_H_
|
||||
#define ARC_OPENGL_RENDERER_H_
|
||||
|
||||
#define GLEW_STATIC
|
||||
#include <GL/glew.h>
|
||||
|
||||
#ifdef ARC_GLFW_WINDOW
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include "arc/graphics/renderer.h"
|
||||
#include "arc/graphics/window.h"
|
||||
|
||||
typedef struct ARC_RendererType {
|
||||
GLFWwindow *window;
|
||||
} ARC_RendererType;
|
||||
|
||||
/**
|
||||
* @brief struct for info needed to create glfw renderer
|
||||
*
|
||||
* @note this is what needs to be passed into the data parameter for ARC_Renderer_Create
|
||||
*/
|
||||
struct ARC_RenderInfo {
|
||||
GLFWwindow *window;
|
||||
};
|
||||
|
||||
#endif // !ARC_GLFW_WINDOW
|
||||
|
||||
#endif // !ARC_OPENGL_RENDERER_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue