Ignore:
Timestamp:
07/19/05 13:32:59 (19 years ago)
Author:
mattausch
Message:

the code is compiling under .net now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Camera.cpp

    r181 r182  
    2222  QImage image(mWidth, mHeight, 32); 
    2323#else 
    24   QImage image(mWidth, mHeight, QImage::Format_RGB32); 
     24  //QImage image(mWidth, mHeight, QImage::Format_RGB32); 
    2525#endif 
    2626   
     
    4141          if (mesh->GetMesh()->mMaterial) 
    4242            color = mesh->GetMesh()->mMaterial->mDiffuseColor; 
     43#if QT_VERSION < 0x040000 
    4344          image.setPixel(x, y, qRgb(color.r*255, 
    4445                                    color.g*255, 
    4546                                    color.b*255 
    4647                                    )); 
     48#endif 
     49 
    4750        } 
    4851       
     
    5760   
    5861  cout<<"Saving image"<<endl; 
     62#if QT_VERSION < 0x040000 
    5963  image.save(filename.c_str(), "PNG"); 
    60  
     64#endif 
    6165  Exporter *exporter = NULL; 
    6266  if (exportRays) { 
Note: See TracChangeset for help on using the changeset viewer.