#ifndef _ATEXIT__H
#define _ATEXIT__H
#include "../atexit.h"

/*=
Atexit functions
4400
**/

// Introduction
/**
Raydium provides its own atexit function, since Win32 DLL requires a bit
of magic for such things. This support is mainly here for internal reasons,
you can continue to use regular atexit() in your applications.
**/


__rayapi int raydium_atexit(void (*func)(void));
/**
As the original atexit():
Register a function to be called at normal program termination.
Functions so registered are called in the reverse order of their
registration; no arguments are passed.
Returns 0 if successful.
**/

__rayapi void raydium_atexit_call(void);
/**
Internal use. Will call all registered functions.
**/

__rayapi void raydium_atexit_init(void);
/**
Internal use.
**/

// Hack. See cli.h header for more information.
#ifdef RAYDLL
#define raydium_init_args(argc,argv)\
{\
atexit(raydium_atexit_call);\
raydium_init_args_hack(argc,argv);\
}

#define raydium_init_args_name(argc,argv,app_name)\
{\
atexit(raydium_atexit_call);\
raydium_init_args_name_hack(argc,argv,app_name);\
}
#endif

#endif
bject(plane) draw	(default:  0.001)
-far=2500 										#distance to the further   object(plane) draw (default:  2500)
-fog="off" 										#fog: on/enable or off/disable (default:  off)
-lighting="on" 									#lighting: on/enable or off/disable (default: on )
-light0=0,50,150,200,1000000,1,0.9,0.7 			#light 0 parameters (default:  0,50,150,200,1000000,1,0.9,0.7)
-background=1,0.9,0.7,1 							#background color (default:  1,0.9,0.7,1)
-sky="normal" 									#sky method: none, normal, sphere (default:  normal) (NOT USED YET)
+filter="aniso"                                                              #texture filter: none, bilinear, trilinear, aniso (default:  trilinear)
+fov=60                                                                                  #view angle, ie fov (default:  60)
+near=0.001                                                                              #distance to the nearets object(plane) draw     (default:  0.001)
+far=2500                                                                                #distance to the further   object(plane) draw (default:  2500)
+fog="off"                                                                               #fog: on/enable or off/disable (default:  off)
+lighting="on"                                                                   #lighting: on/enable or off/disable (default: on )
+light0=0,50,150,200,1000000,1,0.9,0.7                   #light 0 parameters (default:  0,50,150,200,1000000,1,0.9,0.7)
+background=1,0.9,0.7,1                                                  #background color (default:  1,0.9,0.7,1)
+sky="normal"                                                                    #sky method: none, normal, sphere (default:  normal) (NOT USED YET)
 ##
 It returns 1 if the load process ends correctly, or 0 is something crash in the 
 middle.