Ignore:
Timestamp:
Sep 24, 2013, 4:41:59 PM (11 years ago)
Author:
gah
Message:

sync with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/packages/vizservers/nanovis/ZincBlendeVolume.cpp

    r3892 r3958  
    2424using namespace vrmath;
    2525
    26 ZincBlendeVolume::ZincBlendeVolume(int w, int h, int d, int n,
     26ZincBlendeVolume::ZincBlendeVolume(int width, int height, int depth,
     27                                   int numComponents,
    2728                                   float *dataVolumeA, float *dataVolumeB,
    28                                    double v0, double v1, double non_zeromin,
     29                                   double vmin, double vmax, double nonZeroMin,
    2930                                   const Vector3f& cellSz) :
    30     Volume(w, h, d, n, dataVolumeA, v0, v1, non_zeromin),
     31    Volume(width, height, depth, numComponents, dataVolumeA, vmin, vmax, nonZeroMin),
    3132    cellSize(cellSz)
    3233{
     
    3435    _volumeType = ZINCBLENDE;
    3536
    36     //store member tex initialize in Volume() as zincblende_tex[0]
     37    //store member tex initialize in Volume() as zincblendeTex[0]
    3738    assert(_tex);
    3839    zincblendeTex[0] = _tex;
    3940
    4041    //now add another tex as zincblende_tex[1]
    41     Texture3D *secondTex = new Texture3D(w, h, d, GL_FLOAT, GL_LINEAR, n);
     42    Texture3D *secondTex = new Texture3D(width, height, depth, GL_FLOAT, GL_LINEAR, numComponents);
    4243    assert(secondTex);
    4344    secondTex->initialize(dataVolumeB);
Note: See TracChangeset for help on using the changeset viewer.