1
0
Fork 0
2018-soft-3d-renderer/include/engine.h

45 lines
634 B
C
Raw Normal View History

#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;
int width;
int height;
};
// FUNCTIONS
int Engine_Init(Engine_Buffer &buffer, char *filename);
void Engine_Render(Engine_Buffer &buffer, uint32_t input);
void Engine_Shutdown(void);
#define ENGINE_H
#endif