{-# OPTIONS_HADDOCK hide #-}
module Imj.Graphics.Render.Delta.Internal.Types
( BackFrontBuffer
, Buffer(..)
, Back
, Front
, Delta(..)
, Cell
, ClearContext(..)
, IORef
) where
import Data.IORef( IORef )
import Data.Word( Word64 )
import Data.Vector.Unboxed.Mutable( IOVector )
import qualified Imj.Data.Vector.Unboxed.Mutable.Dynamic as Dyn( IOVector )
data Back
data Front
type BackFrontBuffer = IOVector (Cell, Cell)
newtype Buffer a = Buffer (IOVector Cell)
newtype Delta = Delta (Dyn.IOVector Cell)
data ClearContext = OnAllocation
| OnFrame
deriving(Eq, Show)
type Cell = Word64