mod_base_init.cc File Reference

Base module initialization. More...

#include "base.hh"
#include "base_file.hh"
#include "base_misc.hh"
#include "base_settings.hh"
#include "inp.hh"
#include "gfx.hh"
#include "eng.hh"
#include "mod_base.hh"
#include "mod_base_craft.hh"
#include "mod_base_craft_eye.hh"

Namespaces

namespace  mod_base

Defines

#define MOD_BASE_INIT_CC   1
#define JOY_ARG()   { mod_base::gSettings.mJoy = true; }
#define JOY_ARG_AXIS3(AXIS3)   { JOY_ARG(); mod_base::gSettings.mJoyAxis3 = true; mJoystick.SetAxis3( AXIS3 ); }
#define JOY_ARG_CALIBRATION()   { JOY_ARG(); mod_base::gSettings.mJoyCalibration = true; }
#define CMD_ARG_LIGHT(METHOD)
#define CMD_ARG_MATERIAL(METHOD)


Detailed Description

Base module initialization.

Id
LastChangedDate

Author:
Jim E. Brooks http://www.palomino3d.org

Define Documentation

#define CMD_ARG_LIGHT ( METHOD   ) 

Value:

{                                                               \
    fp r = Argf(i+1,argc,argv);                                 \
    fp g = Argf(i+2,argc,argv);                                 \
    fp b = Argf(i+3,argc,argv);                                 \
    fp a = Argf(i+4,argc,argv);                                 \
    RGBA color(r,b,g,a);                                        \
    mGlobalLight.METHOD( color );                               \
    COUT << argv[i] << ' ' << color << endl;                    \
    mod_base::gSettings.mLight = true;                          \
    CmdargDone( i, 5 );                                         \
    i += 4;                                                     \
}

#define CMD_ARG_MATERIAL ( METHOD   ) 

Value:

{                                                               \
    fp r = Argf(i+1,argc,argv);                                 \
    fp g = Argf(i+2,argc,argv);                                 \
    fp b = Argf(i+3,argc,argv);                                 \
    fp a = Argf(i+4,argc,argv);                                 \
    RGBA color(r,b,g,a);                                        \
    mGlobalMaterial.METHOD( color );                            \
    COUT << argv[i] << ' ' << color << endl;                    \
    mod_base::gSettings.mMaterial = true;                       \
    CmdargDone( i, 5 );                                         \
    i += 4;                                                     \
}

 
#define JOY_ARG (  )     { mod_base::gSettings.mJoy = true; }

#define JOY_ARG_AXIS3 ( AXIS3   )     { JOY_ARG(); mod_base::gSettings.mJoyAxis3 = true; mJoystick.SetAxis3( AXIS3 ); }

 
#define JOY_ARG_CALIBRATION (  )     { JOY_ARG(); mod_base::gSettings.mJoyCalibration = true; }

#define MOD_BASE_INIT_CC   1

Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:15 2007