#include "Info.h" namespace ofx { namespace piMapper { Info::Info(){ _visible = false; _text = "There are 4 modes:\n\n" " 1. Presentation mode\n" " 2. Texture mapping mode\n" " - Press \"<\" and \">\" to select previous or next vertex\n" " - Press to play/pause the video\n" " 3. Projection mapping mode\n" " - Press <,> and <.> to select previous or next surface\n" " - Press \"<\" and \">\" to select previous or next vertex\n" " - Press to add new Triangle surface\n" " - Press to add new Quad surface\n" " - Press to add a new ciRcle surface\n" " - Press

to toggle Perspective warping while quad surface selected\n" " - Press to add new Grid surface\n" " - Press <[> and <]> to remove or add columns to selected grid surface\n" " - Press <{> and <}> to remove or add rows to selected grid surface\n" " - Press <+> and <-> to scale surface up and down\n" " - Press <9> and <0> to move selected surface one layer up or down\n" " - Press to hide/show Layer panel\n" " - Press to delete selection\n" " - Press to play/pause the video\n" " - Type to clear composition\n" " - Type to exit to command line interface\n" " - Type to reboot\n" " - Type to shutdown\n" " 4. Source selection mode\n\n" "You can switch between the modes by using <1>, <2>, <3> and <4> " "keys on the keyboard.\n\n" "Press to save the composition\n" "Press to undo\n" "Press to hide this message"; } void Info::draw(){ if(_visible){ ofDrawBitmapStringHighlight(_text, 10, 20, ofColor(0, 0, 0, 100), ofColor(255, 255, 255, 200)); } } void Info::toggle(){ _visible = !_visible; } void Info::setText(std::string text){ _text = text; } } // namespace piMapper } // namespace ofx