Initial Commit

This commit is contained in:
klein panic
2024-09-27 19:32:14 -04:00
commit 53610a8c1c
21 changed files with 1340 additions and 0 deletions

21
riceapp/include/cube.h Normal file
View File

@@ -0,0 +1,21 @@
#ifndef CUBE_H
#define CUBE_H
typedef struct {
float x, y, z;
} Vertex;
typedef struct {
int width, height;
} Screen;
// Function declarations
void init_framebuffer();
void draw_cube(Vertex vertices[8], Screen *screen);
void translate(Vertex *v, float dx, float dy, float dz);
void rotate_cube(Vertex vertices[8], float angleX, float angleY);
void update_screen(Screen *screen);
void handle_collision(Vertex *v, Screen *screen);
#endif