main.cpp File Reference

This file contains the main function of the program. More...

#include <cmath>
#include <iostream>
#include <sstream>
#include <vector>
#include "dynload.h"
#include "popassert.h"
#include "CColor.h"
#include "CVector3f.h"
#include "compute.h"
#include "CMathExpression.h"
#include "CVectBase.h"
#include "CRenderObj.h"
#include "CCommand.h"
#include "CCommandParser.h"
#include "CCommandExecutor.h"

Go to the source code of this file.

Functions

int(*)(int, char **) GetGuiFunc (LIBHANDLE *pGuiLibHandle)
 This function returns a function that starts the GUI.
int main (int argc, char **argv)
 This is the main function of the program.


Detailed Description

This file contains the main function of the program.

It tries to open the GUI dynamic library if it can establish a connection to a X server and starts the GUI if everything goes right.

Definition in file main.cpp.


Function Documentation

int(* )(int, char**) GetGuiFunc ( LIBHANDLE *  pGuiLibHandle  ) 

This function returns a function that starts the GUI.

The function that is returned takes the same arguments as main(). It returns NULL on error. It takes pointer to void * to return a handle to the dynamic library.

Definition at line 21 of file guifunc.cpp.

Referenced by main().

int main ( int  argc,
char **  argv 
)

This is the main function of the program.

It tries to start the GUI. If it can't, it starts the console interface.

Definition at line 35 of file main.cpp.

References CCommandExecutor::Execute(), GetGuiFunc(), CCommandExecutor::getInstance(), CCommandParser::getInstance(), GetLine(), and CCommandParser::Parse().


Generated on Fri Dec 5 03:20:33 2008 for Mathematical Ray-tracer by  doxygen 1.5.4