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

Teddy::SysSupport Namespace Reference


Compounds

class  Teddy::SysSupport::EndianIn
 Endian sensitive byte, short and float reading. More...

class  Teddy::SysSupport::EndianIO
 Baseclass for endian sensitive file reading and writing. More...

class  Teddy::SysSupport::EndianOut
 Endian sensitive byte, short and float writing. More...

class  Teddy::SysSupport::Exception
 C++ exception class to hold description. More...

class  Teddy::SysSupport::FileScan
 Scan for pattern matching files (in single directory). More...

class  Teddy::SysSupport::MemoryBlock
 Memory Management class. More...

class  Teddy::SysSupport::Timer
 Wrapper for SDL thread which runs timer. More...


Functions

const char * fix_file_name (const char *prefix, const char *file_name)
void init_msg ()
int alloc_msg (char *desc)
void enable_msg (int type)
void disable_msg (int type)
void msg (int type, char *format,...)
void dmsg (int type, char *format,...)
void dprint (int type, char *format,...)
void emsg (int type, char *format,...)
void fmsg (int type, char *format,...)

Variables

bool msg_enable [MAX_MSG_TYPES]
char * msg_desc [MAX_MSG_TYPES]
int last_msg_type = 0
int M_FATAL
 Fatal messages. More...

int M_ERROR
 General messages. More...

int M_WARN
 General warning messages. More...

int M_DEBUG
 General debug messages. More...

int M_INIT
 Initialization messages. More...

int M_GL
 (Internal) graphics driver messages. More...

int M_WM
 (Internal) window manager messages. More...

int M_WMD
 (Internal) window manager drawing messages. More...

int M_WME
 (Internal) window manager event messages. More...

int M_WML
 (Internal) window manager layout messages. More...

int M_MAT
 Material management messages. More...

int M_MOD
 Model management messages. More...

int M_SCN
 Scene management messages. More...

int M_LWO
 LightWave object messages. More...

int M_LWS
 LightWave scene messages. More...

int M_TMAP
 Texture mapping messages. More...

int M_VERT
 Vertex messages. More...

int M_AUDIO
 Audio messages. More...

int M_FFE
 Frontier messages. More...

int M_NET
 Networking messages. More...


Detailed Description

SysSupport namespace contains classes that are not directly related to game playing or anything else; These classes help interfacing operating system. Also Exception class is included here.

Teddy initialization function is here.


Function Documentation

int Teddy::SysSupport::alloc_msg char *    desc
 

Definition at line 98 of file Messages.cpp.

void Teddy::SysSupport::disable_msg int    type
 

Definition at line 114 of file Messages.cpp.

Referenced by Teddy::Application::BaseRoot::parseOptions.

void Teddy::SysSupport::dmsg int    type,
char *    format,
...   
 

Definition at line 141 of file Messages.cpp.

Referenced by Teddy::Imports::LWSceneParser::AddLight, Teddy::Imports::LWSceneParser::AmbientColor, Teddy::Imports::LWSceneParser::AmbientIntensity, Teddy::Imports::LWSurfaceBlok::applyAttributes, Teddy::Imports::LWSurfaceBlok::applyGradient, Teddy::Imports::LWSurfaceBlok::applyImageMap, Teddy::Models::Vertex::applyNormal, Teddy::Imports::LWSurfaceBlok::applyProcedural, Teddy::Imports::LWTexture::applyTexture, Teddy::Application::BaseAudioManager::BaseAudioManager, Teddy::PhysicalComponents::Dock::beginPlace, Teddy::PhysicalComponents::Area::beginPlace, Teddy::PhysicalComponents::Dock::beginSize, Teddy::PhysicalComponents::Area::beginSize, Teddy::PhysicalComponents::Dock::callPlace, Teddy::PhysicalComponents::Area::callPlace, Teddy::PhysicalComponents::Dock::callSize, Teddy::PhysicalComponents::Area::callSize, Teddy::Models::Vertex::debug, Teddy::Graphics::View::disable, Teddy::PhysicalComponents::Dock::Dock, Teddy::PhysicalComponents::Projection::doMaterial, Teddy::PhysicalComponents::Area::doPlace, Teddy::PhysicalComponents::Area::doSize, Teddy::Models::TriangleStrip::draw, Teddy::Models::Triangles::draw, Teddy::Models::TriangleFan::draw, Teddy::Models::QuadStrip::draw, Teddy::Models::Quads::draw, Teddy::Models::Face::draw, Teddy::PhysicalComponents::Area::draw, Teddy::PhysicalComponents::Layer::drawLayer, Teddy::PhysicalComponents::MenuList::drawSelf, Teddy::Graphics::View::enable, Teddy::PhysicalComponents::Dock::endSize, Teddy::PhysicalComponents::Area::endSize, Teddy::Imports::LWLayer::faceList, Teddy::Imports::LWLight::genLight, Teddy::PhysicalComponents::Projection::getHit, Teddy::PhysicalComponents::Layer::getHit, Teddy::PhysicalComponents::Area::getHit, Teddy::Graphics::View::getSize, Teddy::Graphics::View::getState, Teddy::Models::Vertex::getVertex, Teddy::Graphics::View::init, Teddy::Materials::Material::init, Teddy::PhysicalComponents::WindowManager::inputLoop, Teddy::PhysicalComponents::Area::insert, Teddy::PhysicalComponents::Layer::Layer, Teddy::Imports::LWModel::layer_U2_U2_S0, Teddy::Imports::LWModel::layer_U2_U2_VEC12_S0_U2, Teddy::Imports::LWSceneParser::LoadObjectLayer, Teddy::Imports::LWLayer::LWLayer, Teddy::Imports::LWModel::LWModel, Teddy::Imports::LWSurface::LWSurface, Teddy::Models::Geometry::makeCubicTextureCoordinates, Teddy::Models::Geometry::makeCylindricalTextureCoordinates, Teddy::Models::TriangleStrip::makeNormal, Teddy::Models::QuadStrip::makeNormal, Teddy::Models::Element::makeNormal, Teddy::Models::Geometry::makePlanarTextureCoordinates, Teddy::Models::Geometry::makeSphericalTextureCoordinates, Teddy::PhysicalComponents::Projection::materialReapplyActive, Teddy::PhysicalComponents::WindowManager::mouseKey, Teddy::PhysicalComponents::WindowManager::mouseMotion, Teddy::Graphics::PixFileTexture::PixFileTexture, Teddy::Imports::LWLayer::pointList, Teddy::Imports::LWLayer::polygonList, Teddy::Imports::LWLayer::polygonTags_ID4_d, Teddy::Imports::LWFile::popDomain, Teddy::Imports::LWSceneParser::postProcess, Teddy::Imports::LWSurfaceBlok::processBlok, Teddy::Imports::LWLayer::processChunk, Teddy::Imports::LWClip::processClip, Teddy::Imports::LWLayer::processLayer, Teddy::Imports::LWSurface::processSubChunk, Teddy::Imports::LWFile::pushDomain, Teddy::Imports::LWSceneFile::read_token, Teddy::Imports::LWSceneParser::readFile, Teddy::Imports::LWSurface::readLuminosity_FP4, Teddy::Imports::LWSurface::readLuminosity_IP2, Teddy::Imports::LWSurface::readSpecularGlossiness_FP4_VX, Teddy::Imports::LWSurface::readSpecularGlossiness_I2_4, Teddy::Imports::LWTexture::readTextureFlags_U2, Teddy::Imports::LWSurfaceBlok::readTextureMap, Teddy::PhysicalComponents::Area::remove, Teddy::Imports::LWLight::setColor, Teddy::PhysicalComponents::WindowManager::setHold, Teddy::Graphics::View::setPolygonMode, Teddy::Models::Geometry::setTextureCoordinate, Teddy::Models::Geometry::smooth, Teddy::Models::Face::smooth, Teddy::Imports::LWLayer::surf_S0_S0_sc, Teddy::Imports::LWModel::tags_d, Teddy::Imports::LWLayer::thumbnail_U2_U2_d, Teddy::PhysicalComponents::Layer::update, Teddy::Imports::LWLayer::vertexMapping_ID4_U2_S0_d, Teddy::Graphics::View::View, and Teddy::PhysicalComponents::WindowManager::WindowManager.

void Teddy::SysSupport::dprint int    type,
char *    format,
...   
 

Definition at line 158 of file Messages.cpp.

Referenced by Teddy::Models::TriangleStrip::draw.

void Teddy::SysSupport::emsg int    type,
char *    format,
...   
 

Definition at line 170 of file Messages.cpp.

Referenced by Teddy::Graphics::Texture::apply, Teddy::Imports::LWSurfaceBlok::applyImageMap, Teddy::Imports::LWTexture::applyTexture, Teddy::Application::BaseAudioManager::BaseAudioManager, Teddy::Graphics::View::check, Teddy::Imports::LWLayer::clip_U4_sc, Teddy::Graphics::Texture::doBind, Teddy::Graphics::Texture::doFormat, Teddy::Graphics::Texture::doSize, Teddy::Imports::LWLayer::faceList, Teddy::Models::Vertex::getColor, Teddy::Imports::LWModel::getLayer, Teddy::Models::Vertex::getNormal, Teddy::Imports::LWModel::getTag, Teddy::Models::Vertex::getTexture, Teddy::Graphics::ImageFileTexture::ImageFileTexture, Teddy::Imports::LWModel::LWModel, Teddy::Imports::LWTexture::LWTexture, Teddy::Models::TriangleFan::makeNormal, Teddy::Models::Vertex::normNormal, Teddy::Imports::LWSceneParser::ParentItem, Teddy::Imports::LWSceneParser::PivotPosition, Teddy::Graphics::PixFileTexture::PixFileTexture, Teddy::Imports::LWLayer::pointList, Teddy::Imports::LWLayer::polygonList, Teddy::Imports::LWLayer::polygonTags_ID4_d, Teddy::Imports::LWSurface::processSubChunk, Teddy::Imports::LWSceneParser::readFile, Teddy::Imports::LWSurface::readSpecularGlossiness_I2_4, Teddy::Imports::LWSceneParser::resolveParent, Teddy::Models::Face::smooth, Teddy::Imports::LWLayer::surf_S0_S0_sc, Teddy::Imports::LWLayer::surface_sc, and Teddy::PhysicalComponents::WindowManager::WindowManager.

void Teddy::SysSupport::enable_msg int    type
 

Definition at line 104 of file Messages.cpp.

Referenced by Teddy::Application::BaseRoot::parseOptions.

const char * Teddy::SysSupport::fix_file_name const char *    prefix,
const char *    file_name
 

Definition at line 43 of file FileScan.cpp.

Referenced by Teddy::Imports::LWSurfaceBlok::applyImageMap, Teddy::Imports::LWTexture::applyTexture, Teddy::Imports::LWModel::LWModel, and Teddy::Imports::LWSceneParser::LWSceneParser.

void Teddy::SysSupport::fmsg int    type,
char *    format,
...   
 

Definition at line 185 of file Messages.cpp.

Referenced by Teddy::PhysicalComponents::WindowManager::inputLoop, Teddy::Application::BaseRoot::start, and Teddy::Graphics::View::View.

void Teddy::SysSupport::init_msg  
 

Definition at line 70 of file Messages.cpp.

Referenced by Teddy::Application::BaseRoot::start.

void Teddy::SysSupport::msg int    type,
char *    format,
...   
 

Definition at line 124 of file Messages.cpp.

Referenced by Teddy::Graphics::View::beginLineLoop, Teddy::Graphics::View::beginLines, Teddy::Graphics::View::beginLineStrip, Teddy::Graphics::View::beginPoints, Teddy::Graphics::View::beginPolygon, Teddy::Graphics::View::beginQuads, Teddy::Graphics::View::beginQuadStrip, Teddy::Graphics::View::beginTriangleFan, Teddy::Graphics::View::beginTriangles, Teddy::Graphics::View::beginTriangleStrip, Teddy::Graphics::View::drawFillRect, Teddy::PhysicalComponents::Area::drawFillRect, Teddy::Graphics::View::end, Teddy::SysSupport::Exception::Exception, Teddy::Graphics::Font::Font, Teddy::Models::TriangleFan::makeNormal, Teddy::Graphics::View::setCull, Teddy::Scenes::Camera::setMirrorX, and Teddy::Graphics::View::View.


Variable Documentation

int Teddy::SysSupport::last_msg_type = 0 [static]
 

Definition at line 39 of file Messages.cpp.

int Teddy::SysSupport::M_AUDIO
 

Audio messages.

Definition at line 59 of file Messages.cpp.

Referenced by Teddy::Application::BaseAudioManager::BaseAudioManager, and Teddy::Application::BaseRoot::parseOptions.

int Teddy::SysSupport::M_DEBUG
 

General debug messages.

Definition at line 45 of file Messages.cpp.

int Teddy::SysSupport::M_ERROR
 

General messages.

Definition at line 43 of file Messages.cpp.

int Teddy::SysSupport::M_FATAL
 

Fatal messages.

Definition at line 42 of file Messages.cpp.

Referenced by Teddy::Application::BaseRoot::start.

int Teddy::SysSupport::M_FFE
 

Frontier messages.

Definition at line 60 of file Messages.cpp.

Referenced by Teddy::Application::BaseRoot::parseOptions.

int Teddy::SysSupport::M_GL
 

(Internal) graphics driver messages.

Definition at line 47 of file Messages.cpp.

Referenced by Teddy::Graphics::View::beginLineLoop, Teddy::Graphics::View::beginLines, Teddy::Graphics::View::beginLineStrip, Teddy::Graphics::View::beginPoints, Teddy::Graphics::View::beginPolygon, Teddy::Graphics::View::beginQuads, Teddy::Graphics::View::beginQuadStrip, Teddy::Graphics::View::beginTriangleFan, Teddy::Graphics::View::beginTriangles, Teddy::Graphics::View::beginTriangleStrip, Teddy::Graphics::View::check, Teddy::Graphics::View::disable, Teddy::Graphics::View::drawFillRect, Teddy::PhysicalComponents::Area::drawFillRect, Teddy::Graphics::View::enable, Teddy::Graphics::View::end, Teddy::Graphics::View::getState, Teddy::Application::BaseRoot::parseOptions, Teddy::Graphics::View::setPolygonMode, and Teddy::Graphics::View::View.

int Teddy::SysSupport::M_INIT
 

Initialization messages.

Definition at line 46 of file Messages.cpp.

Referenced by Teddy::Models::TriangleStrip::draw, Teddy::Models::Triangles::draw, Teddy::Models::TriangleFan::draw, Teddy::Models::Quads::draw, Teddy::Graphics::Font::Font, Teddy::Graphics::View::init, Teddy::Materials::Material::init, Teddy::Models::TriangleFan::makeNormal, Teddy::Application::BaseRoot::parseOptions, Teddy::Graphics::View::setCull, Teddy::Scenes::Camera::setMirrorX, Teddy::Graphics::View::View, and Teddy::PhysicalComponents::WindowManager::WindowManager.

int Teddy::SysSupport::M_LWO
 

LightWave object messages.

Definition at line 55 of file Messages.cpp.

Referenced by Teddy::Imports::LWSurfaceBlok::applyAttributes, Teddy::Imports::LWSurfaceBlok::applyGradient, Teddy::Imports::LWSurfaceBlok::applyImageMap, Teddy::Imports::LWSurfaceBlok::applyProcedural, Teddy::Imports::LWTexture::applyTexture, Teddy::Imports::LWLayer::clip_U4_sc, Teddy::Imports::LWLayer::faceList, Teddy::Imports::LWModel::getLayer, Teddy::Imports::LWModel::getTag, Teddy::Imports::LWModel::layer_U2_U2_S0, Teddy::Imports::LWModel::layer_U2_U2_VEC12_S0_U2, Teddy::Imports::LWLayer::LWLayer, Teddy::Imports::LWModel::LWModel, Teddy::Imports::LWTexture::LWTexture, Teddy::Application::BaseRoot::parseOptions, Teddy::Imports::LWLayer::pointList, Teddy::Imports::LWLayer::polygonList, Teddy::Imports::LWLayer::polygonTags_ID4_d, Teddy::Imports::LWFile::popDomain, Teddy::Imports::LWSurfaceBlok::processBlok, Teddy::Imports::LWLayer::processChunk, Teddy::Imports::LWClip::processClip, Teddy::Imports::LWLayer::processLayer, Teddy::Imports::LWSurface::processSubChunk, Teddy::Imports::LWFile::pushDomain, Teddy::Imports::LWSurface::readSpecularGlossiness_FP4_VX, Teddy::Imports::LWSurface::readSpecularGlossiness_I2_4, Teddy::Imports::LWSurfaceBlok::readTextureMap, Teddy::Imports::LWLayer::surf_S0_S0_sc, Teddy::Imports::LWLayer::surface_sc, Teddy::Imports::LWModel::tags_d, Teddy::Imports::LWLayer::thumbnail_U2_U2_d, and Teddy::Imports::LWLayer::vertexMapping_ID4_U2_S0_d.

int Teddy::SysSupport::M_LWS
 

LightWave scene messages.

Definition at line 56 of file Messages.cpp.

Referenced by Teddy::Imports::LWSceneParser::AddLight, Teddy::Imports::LWSceneParser::AmbientColor, Teddy::Imports::LWSceneParser::AmbientIntensity, Teddy::Imports::LWLight::genLight, Teddy::Imports::LWSceneParser::LoadObjectLayer, Teddy::Imports::LWSurface::LWSurface, Teddy::Imports::LWSceneParser::ParentItem, Teddy::Application::BaseRoot::parseOptions, Teddy::Imports::LWSceneParser::PivotPosition, Teddy::Imports::LWSceneParser::postProcess, Teddy::Imports::LWSceneFile::read_token, Teddy::Imports::LWSceneParser::readFile, Teddy::Imports::LWSurface::readLuminosity_FP4, Teddy::Imports::LWSurface::readLuminosity_IP2, Teddy::Imports::LWSceneParser::resolveParent, and Teddy::Imports::LWLight::setColor.

int Teddy::SysSupport::M_MAT
 

Material management messages.

Definition at line 52 of file Messages.cpp.

Referenced by Teddy::Graphics::Texture::apply, Teddy::Graphics::Texture::doBind, Teddy::Graphics::Texture::doFormat, Teddy::PhysicalComponents::Projection::doMaterial, Teddy::Graphics::Texture::doSize, Teddy::Models::Face::draw, Teddy::Graphics::ImageFileTexture::ImageFileTexture, Teddy::Models::TriangleFan::makeNormal, Teddy::PhysicalComponents::Projection::materialReapplyActive, Teddy::Application::BaseRoot::parseOptions, Teddy::Graphics::PixFileTexture::PixFileTexture, and Teddy::Models::Face::smooth.

int Teddy::SysSupport::M_MOD
 

Model management messages.

Definition at line 53 of file Messages.cpp.

Referenced by Teddy::Application::BaseRoot::parseOptions.

int Teddy::SysSupport::M_NET
 

Networking messages.

Definition at line 61 of file Messages.cpp.

Referenced by Teddy::Application::BaseRoot::parseOptions.

int Teddy::SysSupport::M_SCN
 

Scene management messages.

Definition at line 54 of file Messages.cpp.

Referenced by Teddy::Application::BaseRoot::parseOptions.

int Teddy::SysSupport::M_TMAP
 

Texture mapping messages.

Definition at line 57 of file Messages.cpp.

Referenced by Teddy::Imports::LWSurfaceBlok::applyImageMap, Teddy::Imports::LWTexture::applyTexture, Teddy::Models::Geometry::makeCubicTextureCoordinates, Teddy::Models::Geometry::makeCylindricalTextureCoordinates, Teddy::Models::Geometry::makePlanarTextureCoordinates, Teddy::Models::Geometry::makeSphericalTextureCoordinates, Teddy::Application::BaseRoot::parseOptions, Teddy::Imports::LWTexture::readTextureFlags_U2, Teddy::Models::Geometry::setTextureCoordinate, and Teddy::Models::Geometry::smooth.

int Teddy::SysSupport::M_VERT
 

Vertex messages.

Definition at line 58 of file Messages.cpp.

Referenced by Teddy::Models::Vertex::applyNormal, Teddy::Models::Vertex::debug, Teddy::Models::QuadStrip::draw, Teddy::Models::Vertex::getColor, Teddy::Models::Vertex::getNormal, Teddy::Models::Vertex::getTexture, Teddy::Models::Vertex::getVertex, Teddy::Models::Vertex::normNormal, Teddy::Application::BaseRoot::parseOptions, and Teddy::Models::Face::smooth.

int Teddy::SysSupport::M_WARN
 

General warning messages.

Definition at line 44 of file Messages.cpp.

Referenced by Teddy::Models::TriangleStrip::draw, Teddy::Models::TriangleFan::draw, Teddy::Models::TriangleStrip::makeNormal, Teddy::Models::QuadStrip::makeNormal, and Teddy::Models::Element::makeNormal.

int Teddy::SysSupport::M_WM
 

(Internal) window manager messages.

Definition at line 48 of file Messages.cpp.

Referenced by Teddy::PhysicalComponents::Area::draw, Teddy::PhysicalComponents::Layer::drawLayer, Teddy::PhysicalComponents::Projection::getHit, Teddy::Graphics::View::getSize, Teddy::PhysicalComponents::Area::insert, Teddy::PhysicalComponents::Layer::Layer, Teddy::Application::BaseRoot::parseOptions, Teddy::PhysicalComponents::Area::remove, and Teddy::Graphics::View::View.

int Teddy::SysSupport::M_WMD
 

(Internal) window manager drawing messages.

Definition at line 49 of file Messages.cpp.

Referenced by Teddy::PhysicalComponents::MenuList::drawSelf, and Teddy::Application::BaseRoot::parseOptions.

int Teddy::SysSupport::M_WME
 

(Internal) window manager event messages.

Definition at line 50 of file Messages.cpp.

Referenced by Teddy::PhysicalComponents::Layer::getHit, Teddy::PhysicalComponents::Area::getHit, Teddy::PhysicalComponents::WindowManager::inputLoop, Teddy::PhysicalComponents::WindowManager::mouseKey, Teddy::PhysicalComponents::WindowManager::mouseMotion, Teddy::Application::BaseRoot::parseOptions, Teddy::PhysicalComponents::WindowManager::setHold, and Teddy::PhysicalComponents::WindowManager::WindowManager.

int Teddy::SysSupport::M_WML
 

(Internal) window manager layout messages.

Definition at line 51 of file Messages.cpp.

Referenced by Teddy::PhysicalComponents::Dock::beginPlace, Teddy::PhysicalComponents::Area::beginPlace, Teddy::PhysicalComponents::Dock::beginSize, Teddy::PhysicalComponents::Area::beginSize, Teddy::PhysicalComponents::Dock::callPlace, Teddy::PhysicalComponents::Area::callPlace, Teddy::PhysicalComponents::Dock::callSize, Teddy::PhysicalComponents::Area::callSize, Teddy::PhysicalComponents::Dock::Dock, Teddy::PhysicalComponents::Area::doPlace, Teddy::PhysicalComponents::Area::doSize, Teddy::PhysicalComponents::Dock::endSize, Teddy::PhysicalComponents::Area::endSize, Teddy::Application::BaseRoot::parseOptions, and Teddy::PhysicalComponents::Layer::update.

char* Teddy::SysSupport::msg_desc[MAX_MSG_TYPES] [static]
 

Definition at line 38 of file Messages.cpp.

bool Teddy::SysSupport::msg_enable[MAX_MSG_TYPES] [static]
 

Definition at line 37 of file Messages.cpp.