43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
#pragma once
|
|
|
|
#include "GLenv/include/glad/glad.h"
|
|
#include "GLenv/include/glad/glad.h"
|
|
#include "StgSharpGraphic.h"
|
|
|
|
typedef struct M128ptrCache
|
|
{
|
|
unsigned long long m128Ptr0;
|
|
unsigned long long m128Ptr1;
|
|
unsigned long long m128Ptr2;
|
|
unsigned long long m128Ptr3;
|
|
unsigned long long m128Ptr4;
|
|
unsigned long long m128Ptr5;
|
|
unsigned long long m128Ptr6;
|
|
unsigned long long m128Ptr7;
|
|
unsigned long long m128Ptr8;
|
|
}M128ptrCache;
|
|
|
|
typedef struct glIOPack
|
|
{
|
|
//these are gl functions used to create a new window
|
|
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);
|
|
int(*windowShouldClose)(GLFWwindow* window);
|
|
void(*swapBuffer)(GLFWwindow* window);
|
|
|
|
|
|
//these are gl functions used to set a callback
|
|
|
|
GLFWframebuffersizefun(*SetFramebufferSizeCallback)
|
|
(GLFWwindow* window, GLFWframebuffersizefun callback);
|
|
|
|
}glIOpackage;
|
|
|
|
M128ptrCache m128ptr; |