Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

config_gobj.cxx File Reference

#include <config_util.h>
#include "boundedObject.h"
#include "config_gobj.h"
#include "drawable.h"
#include "geom.h"
#include "geomprimitives.h"
#include "imageBuffer.h"
#include "material.h"
#include "orthographicLens.h"
#include "matrixLens.h"
#include "perspectiveLens.h"
#include "pixelBuffer.h"
#include "lens.h"
#include "texture.h"
#include "dconfig.h"
#include "string_utils.h"

Go to the source code of this file.

Functions

 Configure (config_gobj)
 NotifyCategoryDef (gobj,"")
BamTextureMode parse_texture_mode (const string &mode)
 ConfigureFn (config_gobj)

Variables

const int max_texture_dimension = config_gobj.GetInt("max-texture-dimension", -1)
bool textures_up_power_2 = false
bool textures_down_power_2 = false
bool textures_up_square = false
bool textures_down_square = false
bool keep_texture_ram = config_gobj.GetBool("keep-texture-ram", false)
bool keep_geom_ram = config_gobj.GetBool("keep-geom-ram", true)
bool retained_mode = config_gobj.GetBool("retained-mode", false)
BamTextureMode bam_texture_mode
const string fake_texture_image = config_gobj.GetString("fake-texture-image", "")
const bool debug_LOD_mode = config_gobj.GetBool("debug-LOD-mode", false)
const int select_LOD_number = config_gobj.GetInt("select-LOD-number", -1)
const int minimum_LOD_number = config_gobj.GetInt("minimum-LOD-number", 0)
const float lod_stress_factor = config_gobj.GetFloat("lod-stress-factor", 1.0f)
const float default_near = config_gobj.GetFloat("default-near", 1.0f)
const float default_far = config_gobj.GetFloat("default-far", 1000.0f)


Function Documentation

Configure config_gobj   ) 
 

ConfigureFn config_gobj   ) 
 

Definition at line 142 of file config_gobj.cxx.

References bam_texture_mode, cmp_nocase(), dDrawable::init_type(), Texture::init_type(), Lens::init_type(), PixelBuffer::init_type(), PerspectiveLens::init_type(), MatrixLens::init_type(), OrthographicLens::init_type(), Material::init_type(), ImageBuffer::init_type(), GeomTristrip::init_type(), GeomTrifan::init_type(), GeomTri::init_type(), GeomSphere::init_type(), GeomQuad::init_type(), GeomPolygon::init_type(), GeomSprite::init_type(), GeomPoint::init_type(), GeomLinestrip::init_type(), GeomLine::init_type(), Geom::init_type(), BoundedObject::init_type(), parse_texture_mode(), Texture::register_with_read_factory(), Material::register_with_read_factory(), GeomSphere::register_with_read_factory(), GeomTrifan::register_with_read_factory(), GeomTristrip::register_with_read_factory(), GeomTri::register_with_read_factory(), GeomQuad::register_with_read_factory(), GeomPolygon::register_with_read_factory(), GeomSprite::register_with_read_factory(), GeomLinestrip::register_with_read_factory(), GeomLine::register_with_read_factory(), GeomPoint::register_with_read_factory(), textures_down_power_2, textures_down_square, textures_up_power_2, and textures_up_square.

NotifyCategoryDef gobj  ,
"" 
 

BamTextureMode parse_texture_mode const string &  mode  )  [static]
 

Definition at line 127 of file config_gobj.cxx.

References BTM_basename, BTM_fullpath, BTM_relative, BTM_unchanged, cmp_nocase(), and mode.

Referenced by ConfigureFn().


Variable Documentation

BamTextureMode bam_texture_mode
 

Definition at line 100 of file config_gobj.cxx.

Referenced by ConfigureFn(), and ImageBuffer::write_datagram().

const bool debug_LOD_mode = config_gobj.GetBool("debug-LOD-mode", false)
 

Definition at line 109 of file config_gobj.cxx.

const float default_far = config_gobj.GetFloat("default-far", 1000.0f)
 

Definition at line 124 of file config_gobj.cxx.

Referenced by Lens::clear(), and Lens::get_default_far().

const float default_near = config_gobj.GetFloat("default-near", 1.0f)
 

Definition at line 123 of file config_gobj.cxx.

Referenced by Lens::clear(), and Lens::get_default_near().

const string fake_texture_image = config_gobj.GetString("fake-texture-image", "")
 

Definition at line 106 of file config_gobj.cxx.

Referenced by TexturePool::ns_has_texture(), and TexturePool::ns_load_texture().

bool keep_geom_ram = config_gobj.GetBool("keep-geom-ram", true)
 

Definition at line 81 of file config_gobj.cxx.

bool keep_texture_ram = config_gobj.GetBool("keep-texture-ram", false)
 

Definition at line 76 of file config_gobj.cxx.

Referenced by Texture::prepare().

const float lod_stress_factor = config_gobj.GetFloat("lod-stress-factor", 1.0f)
 

Definition at line 120 of file config_gobj.cxx.

const int max_texture_dimension = config_gobj.GetInt("max-texture-dimension", -1)
 

Definition at line 46 of file config_gobj.cxx.

Referenced by consider_rescale().

const int minimum_LOD_number = config_gobj.GetInt("minimum-LOD-number", 0)
 

Definition at line 118 of file config_gobj.cxx.

Referenced by LOD::compute_child().

bool retained_mode = config_gobj.GetBool("retained-mode", false)
 

Definition at line 88 of file config_gobj.cxx.

Referenced by NodePath::prepare_scene().

const int select_LOD_number = config_gobj.GetInt("select-LOD-number", -1)
 

Definition at line 112 of file config_gobj.cxx.

Referenced by LOD::compute_child().

bool textures_down_power_2 = false
 

Definition at line 56 of file config_gobj.cxx.

Referenced by ConfigureFn().

bool textures_down_square = false
 

Definition at line 67 of file config_gobj.cxx.

Referenced by ConfigureFn().

bool textures_up_power_2 = false
 

Definition at line 55 of file config_gobj.cxx.

Referenced by ConfigureFn().

bool textures_up_square = false
 

Definition at line 66 of file config_gobj.cxx.

Referenced by ConfigureFn().


Generated on Fri Apr 18 00:10:32 2003 for Panda by doxygen1.3