Functions |
static void | initGlobals (void) |
| Initialize Globals.
|
static PyObject * | mh_updatePickingBuffer (PyObject *self, PyObject *unused) |
static PyObject * | mh_getColorPicked (PyObject *self, PyObject *unused) |
| Get the RGB value of the color that has been picked.
|
static PyObject * | mh_getMousePos (PyObject *self, PyObject *unused) |
| Get the current mouse x, y cursor position on the screen, in pixels. This function retrieves the x and y mouse position in screen coordinates returning two integer values to the Python code.
|
static PyObject * | mh_getKeyModifiers (PyObject *self, PyObject *unused) |
| Get an integer representing the current modifier key settings.
|
static PyObject * | mh_getWindowSize (PyObject *self, PyObject *unused) |
| Get the current window (viewport) width and height in pixels. This function retrieves the current width and height of the drawable area within the MakeHuman window in pixels (the viewport size).
|
static PyObject * | mh_startWindow (PyObject *self, PyObject *args) |
| Start the GUI window at application launch.
|
static PyObject * | mh_startEventLoop (PyObject *self, PyObject *unused) |
| Start the event loop at application launch.
|
static PyObject * | mh_shutDown (PyObject *self, PyObject *unused) |
| End the GUI application.
|
static PyObject * | mh_redraw (PyObject *self, PyObject *args) |
| Redraws the scene in the GUI window.
|
static PyObject * | mh_setFullscreen (PyObject *self, PyObject *args) |
| Sets the fullscreen state of the GUI window.
|
static PyObject * | mh_setClearColor (PyObject *self, PyObject *args) |
static PyObject * | mh_LoadTexture (PyObject *self, PyObject *args) |
| Load texture of an object from file.
|
static PyObject * | mh_CreateVertexShader (PyObject *self, PyObject *args) |
static PyObject * | mh_CreateFragmentShader (PyObject *self, PyObject *args) |
static PyObject * | mh_CreateShader (PyObject *self, PyObject *args) |
static PyObject * | mh_GrabScreen (PyObject *self, PyObject *args) |
static PyObject * | mh_addTimer (PyObject *self, PyObject *args) |
| Adds a timer which will call a callback after the specified number of milliseconds has elapsed.
|
static PyObject * | mh_removeTimer (PyObject *self, PyObject *args) |
static PyObject * | mh_callAsync (PyObject *self, PyObject *callback) |
static PyObject * | mh_SetResizeCallback (PyObject *self, PyObject *callback) |
static PyObject * | mh_SetMouseDownCallback (PyObject *self, PyObject *callback) |
static PyObject * | mh_SetMouseUpCallback (PyObject *self, PyObject *callback) |
static PyObject * | mh_SetMouseMovedCallback (PyObject *self, PyObject *callback) |
static PyObject * | mh_SetKeyDownCallback (PyObject *self, PyObject *callback) |
static PyObject * | mh_SetKeyUpCallback (PyObject *self, PyObject *callback) |
static PyObject * | mh_getPath (PyObject *self, PyObject *type) |
| Gets program specific path locations. MakeHuman uses pathes to export objects and to (re)store exports and screen grabs. Since the various locations depend from the system (Linux, Windows, Mac OS) the program is running on theses pathes may be queried by this function.
|
int | main (int argc, char *argv[]) |
| The main function initializes the MakeHuman application.
|
The main C application file.
This is the main C application file used to run the MakeHuman application. A large part of this file is dedicated to providing an integration layer between the C core application and the Python GUI control scripts.
Much of the core C application is used to implement OpenGL library functions that are used to control the 3D graphics environment. See http://makehuman.wiki.sourceforge.net/DG_Application_Overview for a description of how the integration between C and Python works.
Definition in file main.c.
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
The main function initializes the MakeHuman application.
This function sets up the integration layer between Python and the C core application then runs the 'main' Python module to start up the MakeHuman application.
When the user quits the application, the SDL loop controlling user interaction with the MakeHuman GUI is terminated by the mhShutDown function from glmodule.c which issues a system exit. This function traps the exit condition and displays a goodbye message into the message window before releasing the memory used by the global variables and ending.
This function returns a '1'.
Definition at line 753 of file main.c.