diff --git a/include/ACGL/OpenGL/Data/TextureData.hh b/include/ACGL/OpenGL/Data/TextureData.hh index d3354908883468668e67bd2a70c0442194f7ce55..7a2331589df9ecf24df1afb9c85ae504dfe8eadc 100644 --- a/include/ACGL/OpenGL/Data/TextureData.hh +++ b/include/ACGL/OpenGL/Data/TextureData.hh @@ -75,8 +75,8 @@ public: //! 1,2,3 or 4 based on format GLsizei getNumberOfChannels() const; - //! flips the image horizontally as some image formats have a different coordinate system as OpenGL has. - void flipHorizontally(); + //! flips the image vertically as some image formats have a different coordinate system as OpenGL has. (flip it upside down) + void flipVertically(); //! returns the texel converted to float (0..1 in case the data was int, -1..1 in case it was unsigned int). //! If the Image had less than 4 components it get's filled with (0,0,0,1) diff --git a/src/ACGL/OpenGL/Data/TextureData.cc b/src/ACGL/OpenGL/Data/TextureData.cc index 771946393c2261183b39456d226e1cd1fa112b64..3c6f09fee3db3870644a04a0ca9bc7f76182e56c 100644 --- a/src/ACGL/OpenGL/Data/TextureData.cc +++ b/src/ACGL/OpenGL/Data/TextureData.cc @@ -25,7 +25,7 @@ GLsizei TextureData::getNumberOfChannels() const } -void TextureData::flipHorizontally() +void TextureData::flipVertically() { size_t scanlineInBytes = getBytesPerScanline(); GLubyte *tmpScanLine = new GLubyte[ scanlineInBytes ];