Epee Engine  0.40
The Epee Engine is an open source cross platform graphics engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EpeeEngineCommenIncludes.h
Go to the documentation of this file.
1 /*
2 * EpeeEngineCommenIncludes.h
3 *
4 *
5 * Epee Engine
6 * Created by Alan Uthoff on 3/12/06.
7 Copyright (C) 2011
8 
9 This Code is free software; you can redistribute it and/or
10 modify it under the terms of the zlib/libpng License as published
11 by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13 This software is provided 'as-is', without any express or implied warranty.
14 
15 In no event will the authors be held liable for any damages arising from the use of this software.
16 
17 Permission is granted to anyone to use this software for any purpose,
18 including commercial applications, and to alter it and redistribute
19 it freely, subject to the following restrictions:
20 
21 1. The origin of this software must not be misrepresented;
22 you must not claim that you wrote the original software.
23 If you use this software in a product, an acknowledgment
24 in the product documentation would be appreciated but is not required.
25 
26 2. Altered source versions must be plainly marked as such,
27 and must not be misrepresented as being the original software.
28 
29 3. This notice may not be removed or altered from any source distribution.
30 
31 
32 */
33 
34 #pragma once
35 #ifndef EPEEENGINECOMMENINCLUDES_H
36 #define EPEEENGINECOMMENINCLUDES_H
37 
38 #if defined (_WIN32)
39 
40 //#include <windows.h>
41 #include "SDL.h"
42 #include "SDL_thread.h"
43 #include "SDL_opengl.h"
44 #include "SDL_ttf.h"
45 #include "SDL_mixer.h"
46 #include "SDL_keysym.h"
47 #include "SDL_image.h"
48 #define True_Type_Font_Location "C:\\WINDOWS\\Fonts\\" //windows
49 #define True_Type_Font_Defalut "ARIAL.TTF" //windows
50 #define EE_OPEN_GL_TEXTURE_TYPE GL_UNSIGNED_BYTE
51 #endif
52 
53 #if defined (__APPLE__)
54 
55 #include "SDL/SDL.h"
56 #include "SDL/SDL_thread.h"
57 #include "SDL_ttf/SDL_ttf.h"
58 #include "SDL/SDL_keysym.h"
59 #include "SDL/SDL_opengl.h"
60 #include "SDL_mixer/SDL_mixer.h"
61 #include "SDL_image/SDL_image.h"
62 #define True_Type_Font_Location "/Library/Fonts/" //Macintosh
63 #define True_Type_Font_Defalut "Apple LiGothic Medium.ttf" //Macintosh
64 #define EE_OPEN_GL_TEXTURE_TYPE GL_UNSIGNED_INT_8_8_8_8
65 #endif
66 
67 
68 #if defined (__linux__)
69 
70 #include "SDL/SDL.h"
71 #include "SDL/SDL_opengl.h"
72 #include "SDL/SDL_image.h"
73 #include "SDL/SDL_ttf.h"
74 #include "SDL/SDL_mixer.h"
75 #include "SDL/SDL_keysym.h"
76 #define True_Type_Font_Location "/usr/share/fonts/truetype/" //linux
77 #define True_Type_Font_Defalut "freefont/FreeSans.ttf" //linux
78 #define EE_OPEN_GL_TEXTURE_TYPE GL_UNSIGNED_BYTE
79 #endif
80 
81 
82 
83 
84 
85 #define Type_Image 1
86 #define Type_TextBox 2
87 #define Type_Button 3
88 #define Type_ButtonTB 4
89 #define Type_Animation 5
90 #define Type_AnimationScript 6
91 
92 //user defined events
93 #define ANIMATION_END_EVENT 28
94 #define ANIMATION_EVENT 29
95 #define TEXT_BOX_CHANGED_EVENT 30
96 #define NETWORK_DATA_RECIVED 50
97 
98 //#define Anim_Funtion_Rotate 1
99 //#define Anim_Funtion_Motion 2
100 
101 //error defintions
102 #define EPEE_NO_ERROR 0
103 #define TEXTBOX_CONVERION_ERROR 1
104 #define SOUND_PLAYING_ERROR 10
105 #define SOUND_ERROR 11
106 #define SOUND_LOADING_ERROR 12
107 #define SOUND_DELETING_ERROR 13
108 #define SOUND_NOT_FOUND 14
109 #define NULL_POINTER_PASSED 20
110 #define SPROCKET_NOT_FOUND 30
111 #define SPROCKET_ERROR 31
112 #define SPROCKET_DELETING_ERROR 32
113 #define RENDERLIST_NOT_FOUND 40
114 #define RENDERLIST_DELETING_ERROR 41
115 #define RENDERING_ERROR 50
116 
117 //textbox Justifications
118 #define TEXT_LEFT_JUSTIFIED 100
119 #define TEXT_RIGHT_JUSTIFIED 102
120 #define TEXT_CENTER_JUSTIFIED 103
121 
122 #define FONT_QUALITY_LOW 0
123 #define FONT_QUALITY_HIGH 1
124 #define FONT_QUALITY_SHADED 2
125 
126 #define RECIVEING_IP 0
127 #define SENDING_IP 1
128 
129 
130 
131 
132 #endif // EPEEENGINECOMMENINCLUDES_H