Commit 155802c4 authored by Robert Menzel's avatar Robert Menzel
Browse files

renamed flipping function, had wrong name

parent 1903dc9b
......@@ -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)
......
......@@ -25,7 +25,7 @@ GLsizei TextureData::getNumberOfChannels() const
}
void TextureData::flipHorizontally()
void TextureData::flipVertically()
{
size_t scanlineInBytes = getBytesPerScanline();
GLubyte *tmpScanLine = new GLubyte[ scanlineInBytes ];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment