Fill out core architecture
This commit is contained in:
parent
7e4888af48
commit
454deed731
5 changed files with 97 additions and 0 deletions
17
src/Render/Object.idr
Normal file
17
src/Render/Object.idr
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
module Render.Object
|
||||
|
||||
import Data.Vect
|
||||
import Render.Camera
|
||||
import Render.Color
|
||||
|
||||
%default total
|
||||
|
||||
|
||||
public export
|
||||
interface Object' obj where
|
||||
draw : obj -> Camera -> List (Integer, Integer, Color)
|
||||
|
||||
|
||||
export
|
||||
data Object : Type where
|
||||
MkObject : Object' obj => obj -> Object
|
||||
Loading…
Add table
Add a link
Reference in a new issue