common.h

changeset 135
c243df39913e
parent 114
fe1bfc5f59ed
child 147
291a1fe2d278
equal deleted inserted replaced
134:7fd0784471df 135:c243df39913e
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #ifndef __COMMON_H__ 19 #ifndef COMMON_H
20 #define __COMMON_H__ 20 #define COMMON_H
21 21
22 #define APPNAME "ldforge" 22 #define APPNAME "ldforge"
23 #define APPNAME_DISPLAY "LDForge" 23 #define APPNAME_DISPLAY "LDForge"
24 #define APPNAME_CAPS "LDFORGE" 24 #define APPNAME_CAPS "LDFORGE"
25 25
67 #define null nullptr 67 #define null nullptr
68 68
69 static const double fMaxCoord = 10000.0; 69 static const double fMaxCoord = 10000.0;
70 static const short dMainColor = 16; 70 static const short dMainColor = 16;
71 static const short dEdgeColor = 24; 71 static const short dEdgeColor = 24;
72
73 using std::vector;
74 72
75 class ForgeWindow; 73 class ForgeWindow;
76 class LDObject; 74 class LDObject;
77 class bbox; 75 class bbox;
78 class OpenFile; 76 class OpenFile;
150 148
151 // ----------------------------------------------------------------------------- 149 // -----------------------------------------------------------------------------
152 // Identity matrix 150 // Identity matrix
153 extern const matrix g_mIdentity; 151 extern const matrix g_mIdentity;
154 152
155 typedef unsigned int uint; 153 #endif // COMMON_H
156 typedef short unsigned int ushort;
157 typedef long unsigned int ulong;
158
159 // Typedef out the _t suffices :)
160 typedef int8_t int8;
161 typedef int16_t int16;
162 typedef int32_t int32;
163 typedef int64_t int64;
164 typedef uint8_t uint8;
165 typedef uint16_t uint16;
166 typedef uint32_t uint32;
167 typedef uint64_t uint64;
168
169 #endif

mercurial