libmoldeo (Moldeo 1.0 Core)
1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
|
#include <math.h>
#include <limits.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <time.h>
#include <vector>
#include <fstream>
#include "moText.h"
Go to the source code of this file.
Classes | |
struct | moTexParam |
Parámetros internos de una textura. More... | |
Macros | |
#define | _CRT_SECURE_NO_DEPRECATE 1 |
#define | _CRT_NONSTDC_NO_DEPRECATE 1 |
#define | NDEBUG 1 |
#define | USE_GL_EXTENSIONS |
#define | USE_FREEIMAGE |
#define | USE_MOTEXT0 |
#define | LIBMOLDEO_API |
#define | MO_PI 3.1415926535897932384626433832795f |
#define | MO_ON 1 |
#define | MO_OFF -1 |
#define | MO_ACTIVATED 1 |
#define | MO_DEACTIVATED -1 |
#define | MO_FALSE 0 |
#define | MO_TRUE 1 |
#define | MO_PRESSED 1 |
#define | MO_PULSED 1 |
#define | MO_RELEASED 0 |
#define | MO_SUCCESS 0 |
#define | MO_NOERROR 0 |
#define | MO_ERROR 65535 |
#define | MO_FAIL 65535 |
#define | MO_UNDEFINED -1 |
#define | MO_MAX_DEBUG 4096 |
#define | MO_MAX_TEXTURAS 512 |
#define | MO_MAX_MODELOS 256 |
#define | MOboolean unsigned int |
#define | MOswitch signed char |
#define | MOuint unsigned int |
#define | MOint int |
#define | MOint64 moint64 |
#define | MOuint64 unsigned moint64 |
#define | MOlong long |
#define | MOulong unsigned long |
#define | MOlonglong moint64 |
#define | MOulonglong unsigned moint64 |
#define | MOword moWord |
#define | MOdword moDWord |
#define | MOchar char |
#define | MOuchar unsigned char |
#define | MOubyte unsigned char |
#define | MObyte char |
#define | MOshort short |
#define | MOushort unsigned short |
#define | MOfloat float |
#define | MOdouble double |
#define | MOtexture unsigned int |
#define | MOefectoid unsigned int |
#define | MOpointer void* |
#define | MOaccion int |
#define | MOdevcode int |
#define | MO_DEF_SCREEN_WIDTH 800 |
#define | MO_DEF_SCREEN_HEIGHT 600 |
#define | MO_DEF_RENDER_WIDTH 800 |
#define | MO_DEF_RENDER_HEIGHT 600 |
#define | MO_DEF_SCREEN_DEPTH 32 |
#define | MO_RENDER_TEX 0 |
#define | MO_SCREEN_TEX 1 |
#define | MO_EFFECTS_TEX 2 |
#define | MO_FINAL_TEX 3 |
#define | MO_LEFT_TEX 4 |
#define | MO_RIGHT_TEX 5 |
#define | MO_MAX_PRESETS 9 |
#define | MO_DEBUG |
#define | OLD_CONFIG 0 |
#define | MO_RED 0 |
#define | MO_GREEN 1 |
#define | MO_BLUE 2 |
#define | MO_ALPHA 3 |
Functions | |
LIBMOLDEO_API MOfloat | morand () |
LIBMOLDEO_API MOint | moRand (MOint) |
LIBMOLDEO_API void | HSVtoRGB (short, short, short, float *, float *, float *) |
LIBMOLDEO_API void | moColor4f (float r, float g, float b, float a) |
LIBMOLDEO_API void | moNormal3f (float x, float y, float z) |
LIBMOLDEO_API void | moColor3f (float r, float g, float b) |
LIBMOLDEO_API moText | moGetVersionStr () |
Devuelve la versión de libmoldeo. More... | |
Variables | |
const moTexParam | MODefTex2DParams |
Parámetros internos predeterminados de una textura. More... | |
const moTexParam | MOUndefinedTex |
Parámetros internos predeterminados de una textura no identificados. More... | |
enum moBlendingModes |
Modos de combinación
Modos de combinación predeterminados Estos valores son referencias para los modos de combinación de colores que suelen usarse y están ya implementados bajo OpenGL a través de la función glBlend()
enum moMoldeoObjectType |
Tipos de objetos en Moldeo.
Definición y enumeración de tipos de objetos en Moldeo
enum moPolygonModes |
Modos de dibujado de polígonos.
Modos de dibujado de polígonos Estos modos son aquellos predeterminados bajo OpenGL
enum moStereoSides |
LIBMOLDEO_API void HSVtoRGB | ( | short | , |
short | , | ||
short | , | ||
float * | , | ||
float * | , | ||
float * | |||
) |
Definition at line 51 of file moTypes.cpp.
LIBMOLDEO_API void moColor3f | ( | float | r, |
float | g, | ||
float | b | ||
) |
Definition at line 173 of file moTypes.cpp.
LIBMOLDEO_API void moColor4f | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Definition at line 165 of file moTypes.cpp.
LIBMOLDEO_API moText moGetVersionStr | ( | ) |
Devuelve la versión de libmoldeo.
Función global que devuelve en formato texto la versión utilizada de libmoldeo, el ´núcleo de Moldeo.
RGB are from 0..1, H is from 0..360, SV from 0..1 double maxC = b; if (maxC < g) maxC = g; if (maxC < r) maxC = r; double minC = b; if (minC > g) minC = g; if (minC > r) minC = r;
double delta = maxC - minC;
double V = maxC; double S = 0; double H = 0;
if (delta == 0) { H = 0; S = 0; } else { S = delta / maxC; double dR = 60*(maxC - r)/delta + 180; double dG = 60*(maxC - g)/delta + 180; double dB = 60*(maxC - b)/delta + 180; if (r == maxC) H = dB - dG; else if (g == maxC) H = 120 + dR - dB; else H = 240 + dG - dR; }
if (H<0) H+=360; if (H>=360) H-=360;
Definition at line 159 of file moTypes.cpp.
LIBMOLDEO_API void moNormal3f | ( | float | x, |
float | y, | ||
float | z | ||
) |
Definition at line 169 of file moTypes.cpp.
LIBMOLDEO_API MOfloat morand | ( | ) |
devuelve un valor con distribucion uniforme 0..1 value entre 0 y 1
Definition at line 36 of file moTypes.cpp.
LIBMOLDEO_API MOint moRand | ( | MOint | ) |
Definition at line 41 of file moTypes.cpp.
const moTexParam MODefTex2DParams |
const moTexParam MOUndefinedTex |
Parámetros internos predeterminados de una textura no identificados.
MOUndefinedTex Parámetros internos predeterminados de una textura no identificados