~haggai-eran/nux/rtl-rebased

« back to all changes in this revision

Viewing changes to NuxGraphics/IOpenGLVolumeTexture.cpp

  • Committer: Jay Taoko
  • Date: 2011-10-21 23:49:15 UTC
  • mfrom: (508.1.2 nux-20)
  • Revision ID: jay.taoko@canonical.com-20111021234915-hnzakb5ndebica8i
* Removed custom Nux types: t_u32, t_s32, t_bool, ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 
43
43
    _VolumeSurfaceArray = new std::vector< ObjectPtr<IOpenGLSurface> >[_NumMipLevel];
44
44
 
45
 
    for (t_s32 mip = 0; mip < _NumMipLevel; mip++)
 
45
    for (int mip = 0; mip < _NumMipLevel; mip++)
46
46
    {
47
 
      for (t_s32 slice = 0; slice < ImageSurface::GetLevelDim(_PixelFormat, _Depth, mip); slice++)
 
47
      for (int slice = 0; slice < ImageSurface::GetLevelDim(_PixelFormat, _Depth, mip); slice++)
48
48
      {
49
49
        //IOpenGLSurface* surface = new IOpenGLSurface(this, _OpenGLID, GL_TEXTURE_3D, GL_TEXTURE_3D, mip, slice);
50
50
        //surface->InitializeLevel();
72
72
  IOpenGLVolumeTexture::~IOpenGLVolumeTexture()
73
73
  {
74
74
 
75
 
    for (t_s32 mip = 0; mip < _NumMipLevel; mip++)
 
75
    for (int mip = 0; mip < _NumMipLevel; mip++)
76
76
    {
77
 
      for (t_s32 slice = 0; slice < ImageSurface::GetLevelDim(_PixelFormat, _Depth, mip); slice++)
 
77
      for (int slice = 0; slice < ImageSurface::GetLevelDim(_PixelFormat, _Depth, mip); slice++)
78
78
      {
79
79
        // destroying a surface
80
80
        _VolumeSurfaceArray[mip][slice] = ObjectPtr<IOpenGLSurface> (0);