Alvaro Cassinelli / Mbed 2 deprecated laserUI

Dependencies:   mbed

Fork of skinGames_forktest by Alvaro Cassinelli

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers text3D.h Source File

text3D.h

00001 
00002 // Class for creating 3d "flying" texts
00003 // NOT USED FOR THE TIME BEING. 
00004 
00005 #ifndef text3d_h
00006 #define text3d_h
00007 
00008 #include "Scene.h" // in fact, we want to include BaseObject.h (separate the files?)
00009 
00010 #include <string>
00011 using namespace std;
00012 
00013 class Text3D : public BaseObject {
00014   
00015   public: 
00016   
00017         // Constructor & destructor: 
00018         letter3D(char letter, float width, float height);
00019         //~letter3D();
00020         
00021         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
00022         // direct method when creating letters). 
00023        
00024        // A letter is just like a normal BaseObject, but provides methods to create it with a certain size (in the future.. font?)
00025          char ascii; // the ascii code (for identifying it if required, not necessarily the object ID)
00026          float width, height;
00027         // ====================================
00028         
00029         private: 
00030         void fillLetter(char ch);   
00031 };
00032 
00033 #endif
00034