libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo es el conjunto de objetos y funciones, que permiten ejecutar las operaciones básicas de la plataforma Moldeo, y que compone su núcleo.
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Amigas 'defines' Grupos Páginas
moPort.h
Ir a la documentación de este archivo.
1 /*******************************************************************************
2  moPort.h
3  ****************************************************************************
4  * *
5  * This source is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This code is distributed in the hope that it will be useful, but *
11  * WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13  * General Public License for more details. *
14  * *
15  * A copy of the GNU General Public License is available on the World *
16  * Wide Web at <http://www.gnu.org/copyleft/gpl.html>. You can also *
17  * obtain it by writing to the Free Software Foundation, *
18  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  * *
20  ****************************************************************************
21 
22  Copyright(C) 2006 Fabricio Costa
23 
24  Authors:
25  Fabricio Costa
26  Andrs Colubri
27 
28  ******************************************************************************
29  Use it for Linux compilation.
30  Must use autotools to determine this compatibility
31  ******************************************************************************/
32 
33 #ifndef _MOPORT_H_
34 #define _MOPORT_H_
35 
36 #include <stdio.h>
37 #include <cstdio>
38 
39 inline int
40 getch (void)
41 {
42  int ch, charactr;
43  while ((ch = getchar ()) != '\n')
44  {
45  charactr = ch;
46  }
47 }
48 
49 
50 inline char *
51 itoa (int value, char *str, int radix)
52 {
53  char buffer[100];
54  char *res;
55  // Memory-safe version of sprintf.
56  snprintf (buffer, 100, "%i", value);
57  res = buffer;
58  return res;
59 }
60 
61 
62 /* Bug! Esto ya est definido en FreeImage.h */
63 /*
64 typedef uint8_t BYTE;
65 
66 struct RGBTRIPLE
67 {
68  BYTE rgbtBlue;
69  BYTE rgbtGreen;
70  BYTE rgbtRed;
71  RGBTRIPLE(BYTE r, BYTE g, BYTE b)
72  : rgbtBlue(b), rgbtGreen(g), rgbtRed(r) {}
73 };
74 */
75 
76 // Estas constantes fueron agregadas para solucionar errores de compilacion cuando se compara un ajTexto
77 // char*(by Andres)
78 const char *const LINEAL_STR = "L";
79 const char *const EXPONENCIAL_STR = "E";
80 const char *const INVERSO_STR = "I";
81 const char *const OTRA_STR = "O";
82 
83 const char *const BORRADO_STR = "borrado";
84 const char *const MIRROR_STR = "mirror";
85 const char *const MIRRORG_STR = "mirrorg";
86 const char *const MIRRORMORPHING_STR = "mirrormorphing";
87 
88 const char *const DEBUG_STR = "debug";
89 const char *const VIDEOWALL_STR = "videowall";
90 const char *const VIDEOWALLMORPHING_STR = "videowallmorphing";
91 
92 const char *const imagen_STR = "imagen";
93 const char *const emergente1_STR = "emergente1";
94 const char *const emergente2_STR = "emergente2";
95 const char *const emergente3_STR = "emergente3";
96 const char *const emergente4_STR = "emergente4";
97 const char *const icono_STR = "icono";
98 const char *const luces_STR = "luces";
99 const char *const texto_STR = "texto";
100 const char *const dibujoanimado_STR = "dibujoanimado";
101 const char *const interferencia_STR = "interferencia";
102 const char *const tunel_STR = "tunel";
103 const char *const grilla_STR = "grilla";
104 const char *const pelicula_STR = "pelicula";
105 const char *const multicitas_STR = "multicitas";
106 const char *const percusionluces_STR = "percusionluces";
107 const char *const cubemap_STR = "cubemap";
108 const char *const solido_STR = "solido";
109 const char *const escena_STR = "escena";
110 const char *const escena3d_STR = "escena3d";
111 const char *const icono3d_STR = "icono3d";
112 
113 #include <string>
114 using namespace std;
115 
116 #ifdef MO_LINUX
117 inline bool
118 stricmp (const char *str1, const char *str2)
119 {
120  return strcmp (str1, str2);
121 }
122 #endif
123 
124 #endif /* _MOPORT_H_ */
const char *const cubemap_STR
Definition: moPort.h:117
const char *const luces_STR
Definition: moPort.h:108
const char *const pelicula_STR
Definition: moPort.h:114
const char *const multicitas_STR
Definition: moPort.h:115
const char *const emergente2_STR
Definition: moPort.h:104
const char *const MIRRORMORPHING_STR
Definition: moPort.h:96
const char *const DEBUG_STR
Definition: moPort.h:98
const char *const tunel_STR
Definition: moPort.h:112
const char *const escena_STR
Definition: moPort.h:119
const char *const grilla_STR
Definition: moPort.h:113
const char *const OTRA_STR
Definition: moPort.h:91
const char *const VIDEOWALLMORPHING_STR
Definition: moPort.h:100
char * itoa(int value, char *str, int base=10)
Definition: moPort.h:52
const char *const interferencia_STR
Definition: moPort.h:111
const char *const LINEAL_STR
Definition: moPort.h:88
const char *const icono3d_STR
Definition: moPort.h:121
const char *const percusionluces_STR
Definition: moPort.h:116
const char *const MIRROR_STR
Definition: moPort.h:94
const char *const MIRRORG_STR
Definition: moPort.h:95
const char *const EXPONENCIAL_STR
Definition: moPort.h:89
const char *const texto_STR
Definition: moPort.h:109
const char *const icono_STR
Definition: moPort.h:107
const char *const escena3d_STR
Definition: moPort.h:120
const char *const solido_STR
Definition: moPort.h:118
const char *const imagen_STR
Definition: moPort.h:102
const char *const VIDEOWALL_STR
Definition: moPort.h:99
const char *const emergente3_STR
Definition: moPort.h:105
const char *const emergente4_STR
Definition: moPort.h:106
int getch(void)
Definition: moPort.h:40
const char *const dibujoanimado_STR
Definition: moPort.h:110
const char *const BORRADO_STR
Definition: moPort.h:93
const char *const emergente1_STR
Definition: moPort.h:103
const char *const INVERSO_STR
Definition: moPort.h:90