Laser Sensing Display for UI interfaces in the real world

Dependencies:   mbed

Fork of skinGames_forktest by Alvaro Cassinelli

text3D.h

Committer:
mbedalvaro
Date:
2014-04-17
Revision:
47:199042980678
Parent:
45:5ef809480c12

File content as of revision 47:199042980678:


// Class for creating 3d "flying" texts
// NOT USED FOR THE TIME BEING. 

#ifndef text3d_h
#define text3d_h

#include "Scene.h" // in fact, we want to include BaseObject.h (separate the files?)

#include <string>
using namespace std;

class Text3D : public BaseObject {
  
  public: 
  
        // Constructor & destructor: 
        letter3D(char letter, float width, float height);
        //~letter3D();
        
        weight(float with, float height); // resizing factor for the letter (note: this could be done using the lsr object, but this provides an easier more
        // direct method when creating letters). 
       
       // A letter is just like a normal BaseObject, but provides methods to create it with a certain size (in the future.. font?)
         char ascii; // the ascii code (for identifying it if required, not necessarily the object ID)
         float width, height;
        // ====================================
        
        private: 
        void fillLetter(char ch);   
};

#endif