diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-07 13:58:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-08 09:51:27 +0200 |
commit | 449d272daf5e99f039cdfdd25f020bd798fb9e1d (patch) | |
tree | fad3597606f3fbae275ff990aac45ad8f00e1c86 /vcl/opengl/texture.cxx | |
parent | b43fde69caf456585004b3e1da5161d76eadf057 (diff) |
loplugin:unusedmethods vcl
Change-Id: I98b88ca3369a2c888fd63796e39d42376d513002
Diffstat (limited to 'vcl/opengl/texture.cxx')
-rw-r--r-- | vcl/opengl/texture.cxx | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/vcl/opengl/texture.cxx b/vcl/opengl/texture.cxx index 732830b9a717..2aa99a7f3ecc 100644 --- a/vcl/opengl/texture.cxx +++ b/vcl/opengl/texture.cxx @@ -262,35 +262,6 @@ void OpenGLTexture::Unbind() CHECK_GL_ERROR(); } -bool OpenGLTexture::Draw() -{ - GLfloat aPosition[8] = { -1, -1, -1, 1, 1, 1, 1, -1 }; - GLfloat aTexCoord[8]; - - if( mpImpl == NULL ) - { - SAL_WARN( "vcl.opengl", "Can't draw invalid texture" ); - return false; - } - - SAL_INFO( "vcl.opengl", "Drawing texture " << Id() << " [" << maRect.Left() << "," << maRect.Top() << "] " << GetWidth() << "x" << GetHeight() ); - - GetWholeCoord( aTexCoord ); - glActiveTexture( GL_TEXTURE0 ); - glBindTexture( GL_TEXTURE_2D, mpImpl->mnTexture ); - glEnableVertexAttribArray( 0 ); - glVertexAttribPointer( 0, 2, GL_FLOAT, GL_FALSE, 0, aPosition ); - glEnableVertexAttribArray( 1 ); - glVertexAttribPointer( 1, 2, GL_FLOAT, GL_FALSE, 0, aTexCoord ); - glDrawArrays( GL_TRIANGLE_FAN, 0, 4 ); - glDisableVertexAttribArray( 0 ); - glDisableVertexAttribArray( 1 ); - glBindTexture( GL_TEXTURE_2D, 0 ); - - CHECK_GL_ERROR(); - return true; -} - void OpenGLTexture::Read( GLenum nFormat, GLenum nType, sal_uInt8* pData ) { if( mpImpl == NULL ) |