Ignore:
Timestamp:
06/07/06 18:38:29 (18 years ago)
Author:
mattausch
Message:

environment as a singleton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp

    r1002 r1004  
    8686  mFrame = 0; 
    8787  mWireFrame = false; 
    88   environment->GetBoolValue("Preprocessor.detectEmptyViewSpace", mDetectEmptyViewSpace); 
     88  Environment::GetSingleton()->GetBoolValue("Preprocessor.detectEmptyViewSpace", mDetectEmptyViewSpace); 
    8989  mSnapErrorFrames = true; 
    9090  mSnapPrefix = "snap/"; 
     
    775775QGLPixelBuffer(QSize(w, h)), GlRenderer(sceneGraph, viewcells, tree) { 
    776776  
    777   environment->GetIntValue("Preprocessor.pvsRenderErrorSamples", mPvsStatFrames); 
     777  Environment::GetSingleton()->GetIntValue("Preprocessor.pvsRenderErrorSamples", mPvsStatFrames); 
    778778  mPvsErrorBuffer.resize(mPvsStatFrames); 
    779779  ClearErrorBuffer(); 
     
    939939 
    940940void 
    941 GlRendererWidget::SetupProjection(const int w, const int h) 
     941GlRendererWidget::SetupProjection(const int w, const int h, const float angle) 
    942942{ 
    943943  if (!mTopView) 
    944         GlRenderer::SetupProjection(w, h); 
     944        GlRenderer::SetupProjection(w, h, angle); 
    945945  else { 
    946946        glViewport(0, 0, w, h); 
Note: See TracChangeset for help on using the changeset viewer.