Files
stgsharp/源代码/StgShqrpGraphic/SSGinternal.h
T

41 lines
1.0 KiB
C

#pragma once
#include "GLenv/include/glad/glad.h"
#include "GLenv/include/glad/glad.h"
#include "StgSharpGraphic.h"
#include <xmmintrin.h>
typedef struct SSEfuncptr
{
__m128* (*loadM128)(float x, float y, float z, float w);
__m128* (*addps)(__m128 ptr1, __m128 ptr2);
__m128* (*subps)(__m128 ptr1, __m128 ptr2);
}SSEfuncptr;
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;
SSEfuncptr sseFunc;
glIOpackage pack;