imj-base-0.1.0.2: Game engine with geometry, easing, animated text, delta rendering.

Safe HaskellNone
LanguageHaskell2010

Imj.Graphics.Render.Naive

Synopsis

Documentation

data NaiveDraw Source #

FOR TESTS ONLY. For production, please use Imj.Graphics.Render.Delta.

Naive rendering for the terminal : at every call it sends color and position change commands, hence screen tearing happens very quickly as a consequence of stdout buffer being automatically flushed to avoid overflow.

To fix this problem, Imj.Graphics.Render.Delta uses double buffering techniques to limit the actual number of rendering commands sent to stdout.

Constructors

NaiveDraw 

Instances

Draw NaiveDraw Source #

Direct draw to stdout : don't use for production, this is for tests only and creates heavy screen tearing.

Render NaiveDraw Source #

Direct draw to stdout : don't use for production, this is for tests only and creates heavy screen tearing.

Methods

renderToScreen' :: MonadIO m => NaiveDraw -> m () Source #