26 lines
385 B
C
26 lines
385 B
C
#include "glad/glad.h"
|
|
#include "GLFW/glfw3.h"
|
|
#include "stdio.h"
|
|
#include "StgSharpGraphics.h"
|
|
|
|
|
|
|
|
STGSHARPGRAPHICS_API TriangleVertexHandler initTriangle(void)
|
|
{
|
|
float vertex[9] = {
|
|
0,0,0,
|
|
0,0,0,
|
|
0,0,0,
|
|
};
|
|
|
|
TriangleVertexHandler tri;
|
|
|
|
tri.vertex1 = &vertex[0];
|
|
tri.vertex2 = &vertex[3];
|
|
tri.vertex3 = &vertex[6];
|
|
|
|
return tri;
|
|
}
|
|
|
|
|