Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

util.h File Reference

#include <string>
#include <vector>
#include <iostream>
#include <functional>

Include dependency graph for util.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _(s)   gettext(s)
#define max(a, b)   ((a) < (b) ? (b) : (a))
#define min(a, b)   ((a) < (b) ? (a) : (b))

Functions

int compareIgnoringCase (const std::string &s1, const std::string &s2, int n)
int compareIgnoringCase (const std::string &s1, const std::string &s2)


Define Documentation

#define _ s   )     gettext(s)
 

Definition at line 31 of file util.h.

Referenced by Renderer::addSortedLabel(), Asterism::Asterism(), CelestiaCore::charEntered(), StarDatabase::createStar(), displayApparentDiameter(), displayApparentMagnitude(), displayDSOinfo(), displayDuration(), displayLocationInfo(), displayPlanetInfo(), displayStarInfo(), CelestiaCore::draw(), errorMessagePrelude(), Url::evalName(), StarDatabase::finish(), OpenCluster::getDescription(), Nebula::getDescription(), Galaxy::getDescription(), StarDatabase::getStarNameList(), vp::initARB(), fp::initARB(), vp::initNV(), fp::initNV(), CelestiaCore::initRenderer(), CelestiaCore::initSimulation(), ModelInfo::load(), LoadARBVertexProgram(), StarDatabase::loadBinary(), loadCrossIndex(), StarDatabase::loadCrossIndex(), LoadImageFromFile(), LoadNvFragmentProgram(), LoadNvVertexProgram(), StarDatabase::loadOldFormatBinary(), LoadPNGImage(), LoadSolarSystemObjects(), CelestiaCore::mouseMove(), CatalogLoader< OBJDB >::process(), SolarSystemLoader::process(), CelestiaCore::readFavoritesFile(), CelestiaCore::readStars(), CelestiaCore::renderOverlay(), CelestiaCore::runScript(), EclipseFinderDlg::search(), Location::setName(), Body::setName(), showSelectionInfo(), and CelestiaCore::splitView().

#define max a,
 )     ((a) < (b) ? (b) : (a))
 

Definition at line 25 of file util.h.

Referenced by CalcMipLevelCount(), calcMipLevelSize(), celestia_setfaintestvisible(), celestia_setminfeaturesize(), celestia_setminorbitsize(), Observer::computeGotoParameters(), Observer::computeGotoParametersGC(), ComputeRotationCoarseness(), CreateTextureFromImage(), getOrbitDistance(), Image::getPixelRow(), getPreferredDistance(), intSpin(), LoadDDSImage(), LoadMipmapSet(), observer_gototable(), ProcessCometTailVertex(), Renderer::render(), LODSphereMesh::render(), renderCompass(), Renderer::renderEllipsoidAtmosphere(), Renderer::renderForegroundOrbits(), Galaxy::renderGalaxyEllipsoid(), Renderer::renderObject(), Renderer::renderOrbit(), Renderer::renderOrbits(), LODSphereMesh::renderPatches(), Renderer::renderPlanet(), and TiledTexture::TiledTexture().

#define min a,
 )     ((a) < (b) ? (a) : (b))
 

Definition at line 21 of file util.h.

Referenced by celestia_setfaintestvisible(), Observer::computeGotoParameters(), Observer::computeGotoParametersGC(), getPreferredDistance(), InitStarBrowserItems(), intSpin(), GLSL_RenderContext::makeCurrent(), observer_gototable(), StarRenderer::process(), ProcessCometTailVertex(), Renderer::render(), LODSphereMesh::render(), Renderer::renderBodyAsParticle(), renderClouds_GLSL(), Renderer::renderEllipsoidAtmosphere(), Galaxy::renderGalaxyEllipsoid(), Renderer::renderOrbit(), CelestiaCore::renderOverlay(), Renderer::renderPlanetarySystem(), renderRings_GLSL(), renderSphere_GLSL(), setEclipseShadowShaderConstants(), setLightParameters_GLSL(), setupObjectLighting(), and TiledTexture::TiledTexture().


Function Documentation

int compareIgnoringCase const std::string s1,
const std::string s2,
int  n
 

int compareIgnoringCase const std::string s1,
const std::string s2
 


Generated on Sat Jan 14 22:33:02 2006 for Celestia by  doxygen 1.4.1