-
Notifications
You must be signed in to change notification settings - Fork 0
/
draw.h
36 lines (27 loc) · 663 Bytes
/
draw.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// Created by Afterwind on 9/19/2017.
//
#ifndef GAMEENGINE_DRAW_H
#define GAMEENGINE_DRAW_H
#include <kazmath/kazmath.h>
#include <stdbool.h>
#include "types.h"
#include "geometry.h"
#define MAX_OBJECTS 1024
GLuint vaos[INDEX_NUM];
GLuint rbos[1];
GLuint fbos[50];
GLuint vbos[2];
size_t currentOffsetVertex, currentOffsetIndex;
size_t numObjects;
geObject objects[MAX_OBJECTS];
geObject* linePointer;
void geObjectAdd(geObject* obj);
void geObjectAddAll(geObject* obj, size_t num);
void initScene();
void update();
void drawScene();
void geObjectDraw(geObject* obj);
void clearScene();
void geShapeBuffer(geShape* shape);
#endif //GAMEENGINE_DRAW_H