summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-07 13:58:41 +0200
committerNoel Grandin <noel@peralex.com>2015-07-08 09:51:27 +0200
commit449d272daf5e99f039cdfdd25f020bd798fb9e1d (patch)
treefad3597606f3fbae275ff990aac45ad8f00e1c86 /vcl/opengl
parentb43fde69caf456585004b3e1da5161d76eadf057 (diff)
loplugin:unusedmethods vcl
Change-Id: I98b88ca3369a2c888fd63796e39d42376d513002
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/gdiimpl.cxx7
-rw-r--r--vcl/opengl/salbmp.cxx10
-rw-r--r--vcl/opengl/texture.cxx29
3 files changed, 0 insertions, 46 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index f56dd4af2a38..125ac0e218de 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -641,13 +641,6 @@ void OpenGLSalGraphicsImpl::ImplDrawLineAA( double nX1, double nY1, double nX2,
CHECK_GL_ERROR();
}
-void OpenGLSalGraphicsImpl::DrawLines( sal_uInt32 nPoints, const SalPoint* pPtAry, bool bClose )
-{
- for( int i = 0; i < int(nPoints) - 1; ++i )
- DrawLine( pPtAry[ i ].mnX, pPtAry[ i ].mnY, pPtAry[ i + 1 ].mnX, pPtAry[ i + 1 ].mnY );
- if( bClose )
- DrawLine( pPtAry[ nPoints - 1 ].mnX, pPtAry[ nPoints - 1 ].mnY, pPtAry[ 0 ].mnX, pPtAry[ 0 ].mnY );
-}
void OpenGLSalGraphicsImpl::DrawLinesAA( sal_uInt32 nPoints, const SalPoint* pPtAry, bool bClose )
{
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx
index 39218faabc5e..405428e7425c 100644
--- a/vcl/opengl/salbmp.cxx
+++ b/vcl/opengl/salbmp.cxx
@@ -576,16 +576,6 @@ bool OpenGLSalBitmap::GetSystemData( BitmapSystemData& /*rData*/ )
#endif
}
-bool OpenGLSalBitmap::Crop( const Rectangle& /*rRectPixel*/ )
-{
- return false;
-}
-
-bool OpenGLSalBitmap::Erase( const ::Color& /*rFillColor*/ )
-{
- return false;
-}
-
bool OpenGLSalBitmap::Replace( const Color& rSearchColor, const Color& rReplaceColor, sal_uLong nTol )
{
OpenGLFramebuffer* pFramebuffer;
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 )