#include "mmstools/mmstypes.h"#include "mmstools/tools.h"#include <string.h>#include <math.h>#include <stdlib.h>

Go to the source code of this file.
| MMS_HALF_FLOAT convertFloat2HalfFloat | ( | float | f | ) |
Definition at line 494 of file mmstypes.cpp.
| float convertHalfFloat2Float | ( | MMS_HALF_FLOAT | hf | ) |
Definition at line 535 of file mmstypes.cpp.
| const char* convertMMSKeySymbolToXKeysymString | ( | MMSKeySymbol | key | ) |
Definition at line 306 of file mmstypes.cpp.
Definition at line 687 of file mmstypes.cpp.
Definition at line 691 of file mmstypes.cpp.
| void freeIndexArray | ( | MMS_INDEX_ARRAY * | array | ) |
| void freeVertexArray | ( | MMS_VERTEX_ARRAY * | array | ) |
| void frustumMatrix | ( | MMSMatrix | result, | |
| float | left, | |||
| float | right, | |||
| float | bottom, | |||
| float | top, | |||
| float | nearZ, | |||
| float | farZ | |||
| ) |
Definition at line 783 of file mmstypes.cpp.
| unsigned int getIndexArraySize | ( | MMS_INDEX_ARRAY * | array | ) |
| MMSFBBackend getMMSFBBackendFromString | ( | string | be | ) |
Definition at line 50 of file mmstypes.cpp.
| string getMMSFBBackendString | ( | MMSFBBackend | be | ) |
Definition at line 40 of file mmstypes.cpp.
| bool getMMSFBColorFromString | ( | string | input, | |
| MMSFBColor * | color | |||
| ) |
Convert a color string into MMSFBColor.
The input string has the syntax "#rrggbbaa".
rr - hex value for red gg - hex value for green bb - hex value for blue aa - hex value for alpha channel (value ff means full opaque)
| input | the input string | |
| color | pointer to the color to be returned |
Definition at line 241 of file mmstypes.cpp.
| string getMMSFBColorString | ( | MMSFBColor | color | ) |
Convert MMSFBColor to a color string.
The output string has the syntax "#rrggbbaa".
rr - hex value for red gg - hex value for green bb - hex value for blue aa - hex value for alpha channel (value ff means full opaque)
| color | color to be converted |
Definition at line 272 of file mmstypes.cpp.
| MMSFBFullScreenMode getMMSFBFullScreenModeFromString | ( | string | fsm | ) |
Definition at line 118 of file mmstypes.cpp.
| string getMMSFBFullScreenModeString | ( | MMSFBFullScreenMode | fsm | ) |
Definition at line 108 of file mmstypes.cpp.
| MMSFBOutputType getMMSFBOutputTypeFromString | ( | string | ot | ) |
Definition at line 84 of file mmstypes.cpp.
| string getMMSFBOutputTypeString | ( | MMSFBOutputType | ot | ) |
Definition at line 62 of file mmstypes.cpp.
| MMSFBSurfacePixelFormat getMMSFBPixelFormatFromString | ( | string | pf | ) |
Definition at line 170 of file mmstypes.cpp.
| string getMMSFBPixelFormatString | ( | MMSFBSurfacePixelFormat | pf | ) |
Definition at line 132 of file mmstypes.cpp.
| MMSFBPointerMode getMMSFBPointerModeFromString | ( | string | pm | ) |
Definition at line 293 of file mmstypes.cpp.
| string getMMSFBPointerModeString | ( | MMSFBPointerMode | pm | ) |
Definition at line 283 of file mmstypes.cpp.
| MMSLanguage getMMSLanguageFromString | ( | string | lang | ) |
Definition at line 456 of file mmstypes.cpp.
| string getMMSLanguageString | ( | MMSLanguage | lang | ) |
Definition at line 424 of file mmstypes.cpp.
| unsigned int getVertexArraySize | ( | MMS_VERTEX_ARRAY * | array | ) |
| bool initIndexArray | ( | MMS_INDEX_ARRAY * | array, | |
| MMS_INDEX_ARRAY_TYPE | type, | |||
| int | eNum = 0, |
|||
| unsigned int * | data = NULL | |||
| ) |
Initialize a MMS_INDEX_ARRAY.
| array | MMS_INDEX_ARRAY to initialize | |
| type | specifies what kind of primitives to render | |
| eNum | number of indices or 0, default is 0 | |
| data | pointer to existing index data or NULL, default is NULL |
If no data pointer is given by the caller, the function will allocate new space for index data.
Definition at line 624 of file mmstypes.cpp.
| bool initVertexArray | ( | MMS_VERTEX_ARRAY * | array, | |
| int | eSize, | |||
| int | eNum, | |||
| MMS_VERTEX_DATA_TYPE | dtype = MMS_VERTEX_DATA_TYPE_FLOAT, |
|||
| void * | data = NULL | |||
| ) |
Initialize a MMS_VERTEX_ARRAY.
| array | MMS_VERTEX_ARRAY to initialize | |
| eSize | number of values per vertex | |
| eNum | number of vertices | |
| dtype | type of vertex data, default is MMS_VERTEX_DATA_TYPE_FLOAT | |
| data | pointer to existing vertex data or NULL, default is NULL |
Definition at line 582 of file mmstypes.cpp.
| bool isMMS3DObjectShown | ( | MMS3D_OBJECT * | object | ) |
Definition at line 841 of file mmstypes.cpp.
| void loadIdentityMatrix | ( | MMSMatrix | result | ) |
Definition at line 697 of file mmstypes.cpp.
Definition at line 659 of file mmstypes.cpp.
| void orthoMatrix | ( | MMSMatrix | result, | |
| float | left, | |||
| float | right, | |||
| float | bottom, | |||
| float | top, | |||
| float | nearZ, | |||
| float | farZ | |||
| ) |
Definition at line 820 of file mmstypes.cpp.
| void perspectiveMatrix | ( | MMSMatrix | result, | |
| float | fovy, | |||
| float | aspect, | |||
| float | nearZ, | |||
| float | farZ | |||
| ) |
Definition at line 811 of file mmstypes.cpp.
| void rotateMatrix | ( | MMSMatrix | result, | |
| float | angle, | |||
| float | x, | |||
| float | y, | |||
| float | z | |||
| ) |
Definition at line 732 of file mmstypes.cpp.
| void scaleMatrix | ( | MMSMatrix | result, | |
| float | sx, | |||
| float | sy, | |||
| float | sz | |||
| ) |
Definition at line 706 of file mmstypes.cpp.
| void translateMatrix | ( | MMSMatrix | result, | |
| float | tx, | |||
| float | ty, | |||
| float | tz | |||
| ) |
Definition at line 724 of file mmstypes.cpp.