26 lines
349 B
C
26 lines
349 B
C
#pragma once
|
|
|
|
#include "matrices.h"
|
|
#include "materials.h"
|
|
|
|
enum shape_type {
|
|
SHAPE_TEST,
|
|
SHAPE_SPHERE,
|
|
SHAPE_PLANE,
|
|
};
|
|
|
|
struct shape {
|
|
struct mat4x4 transform;
|
|
struct material material;
|
|
enum shape_type type;
|
|
};
|
|
|
|
inline static struct shape shape()
|
|
{
|
|
return (struct shape){
|
|
mat4x4_identity(),
|
|
material(),
|
|
SHAPE_TEST,
|
|
};
|
|
}
|