~ubuntu-branches/ubuntu/oneiric/nux/oneiric

« back to all changes in this revision

Viewing changes to Nux/Histogram.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-01-14 20:45:57 UTC
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110114204557-71gkfcyh493vdjjf
Tags: upstream-0.9.14
ImportĀ upstreamĀ versionĀ 0.9.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    m_DrawFunctionShader = new GLSh_DrawFunction();
45
45
 
46
46
    NString Path = NUX_FINDRESOURCELOCATION (TEXT ("Data/UITextures/FunctionGraphBackground.tga"));
47
 
    BaseTexture* BackgroundTexture = GetThreadGLDeviceFactory()->CreateSystemCapableTexture ();
 
47
    BaseTexture* BackgroundTexture = GetGpuDevice()->CreateSystemCapableTexture ();
48
48
    BackgroundTexture->Update (Path.GetTCharPtr());
49
49
 
50
50
    TexCoordXForm texxform;
90
90
    GfxContext.PushClippingRectangle (base);
91
91
 
92
92
    if (Texture.IsNull() || (Texture->GetWidth() != (t_s32) m_HistogramData.size() ) )
93
 
      Texture = GetThreadGLDeviceFactory()->CreateSystemCapableDeviceTexture ( (t_s32) m_HistogramData.size(), 1, 0, BITFMT_A8);
 
93
      Texture = GetGpuDevice()->CreateSystemCapableDeviceTexture ( (t_s32) m_HistogramData.size(), 1, 0, BITFMT_A8);
94
94
 
95
95
    float tex_dx = (m_maxX - m_minX) / Texture->GetWidth();
96
96
 
176
176
    //m_minX = minX;
177
177
    //m_maxX = maxX;
178
178
 
179
 
    //Texture = GetThreadGLDeviceFactory()->CreateSystemCapableDeviceTexture(m_maxX - m_minX, 4, 0, BITFMT_R8G8B8A8);
 
179
    //Texture = GetGpuDevice()->CreateSystemCapableDeviceTexture(m_maxX - m_minX, 4, 0, BITFMT_R8G8B8A8);
180
180
    NeedRedraw();
181
181
  }
182
182