2023-03-31 17:41:54 -04:00
|
|
|
/*
|
|
|
|
* Created by Brett on 30/03/23.
|
|
|
|
* Licensed under GNU General Public License V3.0
|
|
|
|
* See LICENSE file for license detail
|
|
|
|
*/
|
|
|
|
|
2023-04-01 15:48:31 -04:00
|
|
|
#ifndef ASSIGN3_HIGH_PERF_H
|
|
|
|
#define ASSIGN3_HIGH_PERF_H
|
2023-03-31 17:41:54 -04:00
|
|
|
|
|
|
|
#include <glad/gl.h>
|
|
|
|
#include <camera.h>
|
|
|
|
#include <particle_system.h>
|
|
|
|
|
2023-04-01 15:48:31 -04:00
|
|
|
#ifdef EXTRAS
|
|
|
|
|
2023-03-31 17:41:54 -04:00
|
|
|
extern int WINDOW_WIDTH;
|
|
|
|
extern int WINDOW_HEIGHT;
|
2023-04-01 15:48:31 -04:00
|
|
|
extern particle_system* fountain;
|
2023-03-31 17:41:54 -04:00
|
|
|
extern camera cam;
|
2023-04-01 15:48:31 -04:00
|
|
|
extern const unsigned int particle_count;
|
2023-03-31 17:41:54 -04:00
|
|
|
|
|
|
|
void window_resize(int width, int height);
|
|
|
|
|
|
|
|
void updateView();
|
|
|
|
|
|
|
|
void render();
|
|
|
|
|
|
|
|
void init();
|
|
|
|
|
|
|
|
void cleanup();
|
|
|
|
|
2023-04-02 14:52:03 -04:00
|
|
|
void runPhysicsShader();
|
|
|
|
|
|
|
|
void beginExecution();
|
|
|
|
|
2023-04-01 15:48:31 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif //ASSIGN3_HIGH_PERF_H
|