greenhouse
a creative coding toolkit for spatial interfaces

NeedlePoints

By default, Greenhouse provides a set of pointer icons (NeedlePoints) for each pointer that is tracked.

  • HideNeedlePoints ()
  • ShowNeedlePoints ()

Example

#include "Greenhouse.h"

class Msg  :  public  Text
{ public:
  Msg (Str m)  :  Text (m)
    { SetFontSize (Feld () -> Height () / 20.0); }

  void Blurt (BlurtEvent *e)
    { if (Utters (e, "h"))
        HideNeedlePoints ();
      else
        ShowNeedlePoints ();
    }
};

void Setup ()
{ Msg * m = new Msg ("Press 'h' to hide NeedlePoints;\nother keys to show");
  m -> SlapOnFeld ();
}