2018-09-05 01:50:14 +00:00
|
|
|
#ifndef ENGINE_H
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
|
|
|
|
// ENUMS
|
|
|
|
enum Engine_Input
|
|
|
|
{
|
|
|
|
TRANSLATE_X_POS,
|
|
|
|
TRANSLATE_X_NEG,
|
|
|
|
TRANSLATE_Y_POS,
|
|
|
|
TRANSLATE_Y_NEG,
|
|
|
|
TRANSLATE_Z_POS,
|
|
|
|
TRANSLATE_Z_NEG,
|
|
|
|
ROTATE_X_POS,
|
|
|
|
ROTATE_X_NEG,
|
|
|
|
ROTATE_Y_POS,
|
|
|
|
ROTATE_Y_NEG,
|
|
|
|
ROTATE_Z_POS,
|
|
|
|
ROTATE_Z_NEG,
|
|
|
|
SCALE_UP,
|
|
|
|
SCALE_DOWN
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// STRUCTURES
|
|
|
|
struct Engine_Buffer
|
|
|
|
{
|
2018-09-07 01:32:15 +00:00
|
|
|
uint32_t *buffer;
|
|
|
|
float *zbuffer;
|
2018-09-05 01:50:14 +00:00
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// FUNCTIONS
|
2018-09-06 01:48:27 +00:00
|
|
|
int Engine_Init(Engine_Buffer &buffer, char *filename);
|
2018-09-05 01:50:14 +00:00
|
|
|
void Engine_Render(Engine_Buffer &buffer, uint32_t input);
|
|
|
|
void Engine_Shutdown(void);
|
|
|
|
|
|
|
|
|
|
|
|
#define ENGINE_H
|
|
|
|
#endif
|
|
|
|
|