~unity-team/nux/nux.redirected-views

« back to all changes in this revision

Viewing changes to NuxGraphics/GraphicsEngine.cpp

  • Committer: Tarmac
  • Author(s): Michi Henning
  • Date: 2012-10-02 01:05:45 UTC
  • mfrom: (667.2.5 1056633)
  • Revision ID: tarmac-20121002010545-jphizk30nj3oe9ui
Added -Wextra to compiler flags and removed a large number of warnings about unused parameters. Code compiles clean now without warnings, except for one remaining warning (see bug #1052765).. Fixes: https://bugs.launchpad.net/bugs/1056633. Approved by Michi Henning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
    }
122
122
  }
123
123
 
124
 
  void BlendOperator::SetCustomBlendOperator(unsigned int src_blend, unsigned int dst_blend)
 
124
  void BlendOperator::SetCustomBlendOperator(unsigned int /* src_blend */, unsigned int /* dst_blend */)
125
125
  {
126
126
 
127
127
  }
1135
1135
    viewport_height = _viewport.height;
1136
1136
  }
1137
1137
 
1138
 
  void GraphicsEngine::SetScissorOffset(int x, int y)
 
1138
  void GraphicsEngine::SetScissorOffset(int /* x */, int /* y */)
1139
1139
  {
1140
1140
    nuxAssertMsg(0, "[GraphicsEngine::SetScissorOffset] SetScissorOffset is deprecated.");
1141
1141
//     m_ScissorXOffset = x;
1202
1202
  // 2D Area Clear Color Depth Stencil   //
1203
1203
  /////////////////////////////////////////
1204
1204
 
1205
 
  void GraphicsEngine::ClearAreaColorDepthStencil(int x, int y, int width, int height, Color clear_color, float cleardepth, int clearstencil)
 
1205
  void GraphicsEngine::ClearAreaColorDepthStencil(int x, int y, int width, int height, Color clear_color, float /* cleardepth */, int clearstencil)
1206
1206
  {
1207
1207
    // enable stencil buffer
1208
1208
    CHECKGL(glEnable(GL_STENCIL_TEST));
1226
1226
    QRP_Color(x, y, width, height, clear_color);
1227
1227
  }
1228
1228
 
1229
 
  void GraphicsEngine::ClearAreaDepthStencil(int x, int y, int width, int height, float cleardepth, int clearstencil)
 
1229
  void GraphicsEngine::ClearAreaDepthStencil(int x, int y, int width, int height, float /* cleardepth */, int clearstencil)
1230
1230
  {
1231
1231
    // enable stencil buffer
1232
1232
    CHECKGL(glEnable(GL_STENCIL_TEST));