//=======================// // SETUP Y DESTRUCCION // //=======================// Animacion::Animacion(float x, float y): fps(12), loop(true), playing(false), relativoAPersona(false), x(x), y(y), xPersona(x), yPersona(y), xOffset(0.0), yOffset(0.0), height(0), width(0.1), fullscreen(false), frameIndex(0) { ofRegisterGetMessages(this); }
void ramActorsScene::setup() { /// to get message from PlaybackSegment ofRegisterGetMessages(this); /// font setting to draw "RECORDING" on screen right top fontSize = 30; font.loadFont(ramToResourcePath("Fonts/FreeUniversal-Regular.ttf"), fontSize, true, true); font.setLineHeight(fontSize*1.4f); font.setLetterSpacing(1.0); /// light for drawActor light.setPosition(300, 600, 300); /// register events ofAddListener(ofEvents().keyPressed, this, &ramActorsScene::onKeyPressed); }