36 #define _CRT_SECURE_NO_DEPRECATE 1
37 #define _CRT_NONSTDC_NO_DEPRECATE 1
41 #if defined(__APPLE__)
44 #elif defined(macintosh)
49 #if defined(linux) || defined(__linux) || defined(__linux__)
54 #if defined(WIN32) || defined(_WIN32)
63 #define NOGDI //comentar esta línea con MinGW64??
66 #define MO_HANDLE HWND
67 #define MO_DISPLAY void*
94 #define USE_GL_EXTENSIONS
96 #define glFramebufferTexture2DEXT glFramebufferTexture2D
97 #define glCheckFramebufferStatusEXT glCheckFramebufferStatus
98 #define glGenFramebuffersEXT glGenFramebuffers
99 #define glDeleteFramebuffersEXT glDeleteFramebuffers
100 typedef char GLcharARB;
101 typedef unsigned int GLhandleARB;
102 #define glColor4f moColor4f
103 #define glNormal3f moNormal3f
104 #define glColor3f moColor3f
105 #define GL_FRAMEBUFFER_EXT GL_FRAMEBUFFER
106 #define GL_FRAMEBUFFER_COMPLETE_EXT GL_FRAMEBUFFER_COMPLETE
107 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
108 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
109 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
110 #define GL_FRAMEBUFFER_UNSUPPORTED_EXT GL_FRAMEBUFFER_UNSUPPORTED
111 #define GL_COLOR_ATTACHMENT0_EXT GL_COLOR_ATTACHMENT0
112 #define glBindFramebufferEXT glBindFramebuffer
113 #define GL_TEXTURE_RECTANGLE_ARB 0x84F5
114 #define GL_RGBA16F_ARB 0x84F5
115 #define GL_LUMINANCE16F_ARB 0x881E
116 #define GL_RGBA32F_ARB 0x8814
117 #define GL_LUMINANCE32F_ARB 0x8818
118 #define GLEW_EXT_framebuffer_object 1
119 #define GLEW_ARB_multitexture 1
120 #define GLEW_ARB_shader_objects 1
121 #define GLEW_ARB_vertex_shader 1
122 #define GLEW_ARB_fragment_shader 1
123 #define GLEW_ARB_shading_language_100 1
124 #define GLEW_ARB_texture_non_power_of_two 1
125 #define GL_TEXTURE0_ARB GL_TEXTURE0
127 #define GL_VERTEX_SHADER_ARB GL_VERTEX_SHADER
128 #define GL_FRAGMENT_SHADER_ARB GL_FRAGMENT_SHADER
129 #define GL_OBJECT_LINK_STATUS_ARB GL_LINK_STATUS
130 #define glCreateProgramObjectARB glCreateProgram
131 #define glDeleteObjectARB glDeleteShader
132 #define glCreateShaderObjectARB glCreateShader
133 #define glAttachObjectARB glAttachShader
134 #define glDetachObjectARB glDetachShader
135 #define glUseProgramObjectARB glUseProgram
136 #define glGetUniformLocationARB glGetUniformLocation
137 #define glGetAttribLocationARB glGetAttribLocation
138 #define glShaderSourceARB glShaderSource
139 #define glLinkProgramARB glLinkProgram
140 #define glGetObjectParameterivARB glGetShaderiv
141 #define GL_OBJECT_INFO_LOG_LENGTH_ARB GL_INFO_LOG_LENGTH
142 #define glGetInfoLogARB glGetShaderInfoLog
143 #define glCompileShaderARB glCompileShader
144 #define glUniform1fARB glUniform1f
145 #define glUniform2fARB glUniform2f
146 #define glUniform3fARB glUniform3f
147 #define glUniform4fARB glUniform4f
148 #define glUniform1iARB glUniform1i
149 #define glUniform2iARB glUniform2i
150 #define glUniform3iARB glUniform3i
151 #define glUniform4iARB glUniform4i
152 #define glUniformMatrix2fvARB glUniformMatrix2fv
153 #define glUniformMatrix3fvARB glUniformMatrix3fv
154 #define glUniformMatrix4fvARB glUniformMatrix4fv
155 #define glUniform1fvARB glUniform1fv
156 #define glUniform2fvARB glUniform2fv
157 #define glUniform3fvARB glUniform3fv
158 #define glUniform4fvARB glUniform4fv
159 #define glUniform1ivARB glUniform1iv
160 #define glUniform2ivARB glUniform2iv
161 #define glUniform3ivARB glUniform3iv
162 #define glUniform4ivARB glUniform4iv
163 #define glActiveTextureARB glActiveTexture
168 #define USE_FREEIMAGE
174 #ifdef LIBMOLDEO_EXPORTS
175 #define LIBMOLDEO_API __declspec(dllexport)
177 #define LIBMOLDEO_API __declspec(dllimport)
180 #define LIBMOLDEO_API
189 #define MO_HANDLE void*
192 #define MO_DISPLAY void*
194 #include "SDL_thread.h"
195 #include "SDL_mutex.h"
201 #ifdef USE_GL_EXTENSIONS
205 #include "OpenGL/gl.h"
206 #include "OpenGL/glu.h"
207 #include "OpenGL/glext.h"
210 #include "GLUT/glut.h"
212 #define MO_GSTREAMER 1
215 # define __int64 long long
219 # define _int64 __int64
222 #define moint64 __int64
223 typedef __int16_t moWord;
224 typedef __int32_t moDWord;
227 #define assert(ignore)((void) 0)
237 #define MO_HANDLE Window
238 #define MO_DISPLAY void*
240 #ifdef USE_GL_EXTENSIONS
246 #include <GLES2/gl2.h>
250 #include <GL/glext.h>
257 #define MO_GSTREAMER 1
260 # define __int64 long long
264 # define _int64 __int64
267 #define moint64 __int64
268 typedef __int16_t moWord;
269 typedef __int32_t moDWord;
272 #define MO_RASPBIAN 1
281 #define MO_HANDLE HWND
282 #define MO_DISPLAY void*
289 #elif _MSC_VER < 1310
290 #define MO_USING_VC70
291 #elif _MSC_VER < 1400
292 #define MO_USING_VC71
294 #define MO_USING_VC80
303 #pragma warning( disable : 4786 )
311 #pragma warning( disable : 4661 )
320 #define WIN32_LEAN_AND_MEAN
337 #ifdef USE_GL_EXTENSIONS
343 #include "GL/glext.h"
351 # define _int64 __int64
354 #define moint64 __int64
355 typedef __int16 moWord;
356 typedef __int32 moDWord;
364 #define MO_PI 3.1415926535897932384626433832795f
367 #define MO_ACTIVATED 1
368 #define MO_DEACTIVATED -1
373 #define MO_RELEASED 0
377 #define MO_ERROR 65535
378 #define MO_FAIL 65535
379 #define MO_UNDEFINED -1
381 #define MO_MAX_DEBUG 4096
382 #define MO_MAX_TEXTURAS 512
383 #define MO_MAX_MODELOS 256
385 #define MOboolean unsigned int
386 #define MOswitch signed char
387 #define MOuint unsigned int
389 #define MOint64 moint64
390 #define MOuint64 unsigned moint64
392 #define MOulong unsigned long
393 #define MOlonglong moint64
394 #define MOulonglong unsigned moint64
395 #define MOword moWord
396 #define MOdword moDWord
398 #define MOuchar unsigned char
399 #define MOubyte unsigned char
401 #define MOshort short
402 #define MOushort unsigned short
403 #define MOfloat float
404 #define MOdouble double
405 #define MOtexture unsigned int
406 #define MOefectoid unsigned int
409 #define MOpointer void*
412 #define MOdevcode int
414 #define MO_DEF_SCREEN_WIDTH 800
415 #define MO_DEF_SCREEN_HEIGHT 600
416 #define MO_DEF_RENDER_WIDTH 800
417 #define MO_DEF_RENDER_HEIGHT 600
418 #define MO_DEF_SCREEN_DEPTH 32
420 #define MO_RENDER_TEX 0
421 #define MO_SCREEN_TEX 1
422 #define MO_EFFECTS_TEX 2
423 #define MO_FINAL_TEX 3
426 #define MO_LEFT_TEX 4
427 #define MO_RIGHT_TEX 5
430 #define MO_MAX_PRESETS 9
508 #define stricmp strcasecmp
603 #define momax(a,b) (((a) > (b)) ? (a) : (b))
604 #define momin(a,b) (((a) < (b)) ? (a) : (b))
Parámetros internos de una textura.
moMoldeoObjectType
Tipos de objetos en Moldeo.
moStereoSides
Modo estereoscópico.
LIBMOLDEO_API MOint moRand(MOint)
Recursos de datos, objetos, imágenes, videos y funcionalidades múltiples.
LIBMOLDEO_API moText moGetVersionStr()
Devuelve la versión de libmoldeo.
LIBMOLDEO_API void moColor4f(float r, float g, float b, float a)
Objeto dibujable, efecto-maestro ( puede controlar otros efectos )
const moTexParam MODefTex2DParams
Parámetros internos predeterminados de una textura.
clase de para manejar textos
aditivo según transparencia
Dispositivo de entrada/salida, típicamente, interfaces humanas de IO y datos ( teclado, mouse, tableta, tcp, udp, serial )
LIBMOLDEO_API void moNormal3f(float x, float y, float z)
LIBMOLDEO_API MOfloat morand()
LIBMOLDEO_API void moColor3f(float r, float g, float b)
Objeto dibujable, pre-efecto ( primeros efectos en el orden de dibujado )
Objeto dibujable, efecto ( efectos en el orden de dibujado )
const moTexParam MOUndefinedTex
Parámetros internos predeterminados de una textura no identificados.
Objeto principal de administración y dibujado de objetos de Moldeo.
LIBMOLDEO_API void HSVtoRGB(short, short, short, float *, float *, float *)
Objeto dibujable, post-efecto ( últímos efectos en el orden de dibujado )
moPolygonModes
Modos de dibujado de polígonos.
moBlendingModes
Modos de combinación