Renaming Object to Shape (part 1)

This commit is contained in:
Godzil
2020-02-18 11:40:55 +00:00
parent df4ec9794a
commit 5a4f9f4dc4
12 changed files with 19 additions and 19 deletions

View File

@@ -9,7 +9,7 @@
#ifndef DORAYME_OBJECT_H
#define DORAYME_OBJECT_H
class Object;
class Shape;
#include <ray.h>
#include <tuple.h>
@@ -18,7 +18,7 @@ class Object;
#include <material.h>
/* Base class for all object that can be presented in the world */
class Object
class Shape
{
public:
Matrix transformMatrix;
@@ -26,7 +26,7 @@ public:
Material material;
public:
Object();
Shape();
virtual Intersect intersect(Ray r);
virtual Tuple normalAt(Tuple point);