structs erstellt

This commit is contained in:
any
2026-07-19 21:25:38 +02:00
parent 211a1260b6
commit 31f259b4b5
3 changed files with 14 additions and 1 deletions
+4 -1
View File
@@ -7,4 +7,7 @@ add_executable(Raytracer main.c
examples.c
examples.h
cJSON.c
cJSON.h)
cJSON.h
vec3.h
triangle.h
structs.h)
+1
View File
@@ -9,6 +9,7 @@
#include "cJSON.h"
#include <string.h>
#define MAXJSONSIZE (100 * 1024)
#include "structs.h"
int main() {
int width = 1280;
int height = 780;
+9
View File
@@ -0,0 +1,9 @@
struct vec3 {
float x, y, z;
};
typedef struct vec3 vec3;
struct triangle {
vec3 a, b, c;
vec3 normal;
}; typedef struct triangle triangle;