20 lines
480 B
C
20 lines
480 B
C
#pragma once
|
|
|
|
#include "glad/glad.h"
|
|
#include "glfw3.h"
|
|
|
|
|
|
|
|
typedef struct glIOPack
|
|
{
|
|
GLFWwindow*(*createWindow)(
|
|
int width,
|
|
int height,
|
|
const char* title,
|
|
GLFWmonitor* monitor,
|
|
GLFWwindow* share);
|
|
void(*makeContextCurrent)(GLFWwindow* window);
|
|
void(*swapInterval)(int interval);
|
|
void(*clearColor)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha );
|
|
GLFWglproc(*getProcAddress)(const char* name);
|
|
}glIOpackage; |