Create scene data structure
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
#define CAMERA_H
|
||||
|
||||
#include "img.h"
|
||||
#include "obj.h"
|
||||
#include "vec3.h"
|
||||
#include "scene.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -19,7 +18,6 @@ camera_t camera_init(
|
||||
uint32_t img_height, unsigned samples_per_pixel);
|
||||
|
||||
void camera_render(
|
||||
const camera_t *camera, const obj_t *scene, unsigned scene_count,
|
||||
img_t *img_out);
|
||||
const camera_t *camera, const scene_t *scene, img_t *img_out);
|
||||
|
||||
#endif
|
||||
|
||||
12
include/scene.h
Normal file
12
include/scene.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef SCENE_H
|
||||
#define SCENE_H
|
||||
|
||||
#include "obj.h"
|
||||
|
||||
typedef struct {
|
||||
vec3_t sky_colour;
|
||||
obj_t *objs;
|
||||
unsigned obj_count;
|
||||
} scene_t;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user