54 lines
1.1 KiB
C
54 lines
1.1 KiB
C
#pragma once
|
|
|
|
#include "glad/glad.h"
|
|
#include "GLFW/glfw3.h"
|
|
#include "StgSharpGraphics.h"
|
|
#include "framework.h"
|
|
#include "stdio.h"
|
|
|
|
#define init InitProgram;
|
|
float* triangleVertices;
|
|
|
|
#define LoadGL void(*loadOpenGL)(void);
|
|
#define GLcreateWindow GLFWwindow*(*createWindow)(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share);
|
|
#define GLmakeContextCurrent void(*MakeContextCurrent)(GLFWwindow* window);
|
|
#define GLswapInterval void(*swapInterval)(int interval);
|
|
#define GLwindowShouldClose int(*windowShouldClose)(GLFWwindow* window);
|
|
#define GLclearColor void(*clearColor)(GLfloat red, GLfloat green, GLfloat blue,GLfloat alpha);
|
|
|
|
typedef struct internalIO
|
|
{
|
|
LoadGL;
|
|
GLcreateWindow;
|
|
GLmakeContextCurrent;
|
|
GLswapInterval;
|
|
GLwindowShouldClose;
|
|
GLclearColor;
|
|
}IOpackage;
|
|
|
|
typedef struct vec4d
|
|
{
|
|
float x;
|
|
float y;
|
|
float Z;
|
|
float w;
|
|
}vec4d;
|
|
|
|
typedef struct basicWindowInfo
|
|
{
|
|
int width;
|
|
int height;
|
|
vec4d backgroundColor;
|
|
char name[];
|
|
}basicWindowInfo;
|
|
|
|
typedef struct shaderObject
|
|
{
|
|
unsigned int VBO;
|
|
unsigned int VAO;
|
|
unsigned int shaderProgram;
|
|
}shaderObject;
|
|
|
|
|
|
|