Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ACGL
acgl
Commits
155802c4
Commit
155802c4
authored
Jul 02, 2013
by
Robert Menzel
Browse files
renamed flipping function, had wrong name
parent
1903dc9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/ACGL/OpenGL/Data/TextureData.hh
View file @
155802c4
...
...
@@ -75,8 +75,8 @@ public:
//! 1,2,3 or 4 based on format
GLsizei
getNumberOfChannels
()
const
;
//! flips the image
horizont
ally as some image formats have a different coordinate system as OpenGL has.
void
flip
Horizont
ally
();
//! flips the image
vertic
ally as some image formats have a different coordinate system as OpenGL has.
(flip it upside down)
void
flip
Vertic
ally
();
//! 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)
...
...
src/ACGL/OpenGL/Data/TextureData.cc
View file @
155802c4
...
...
@@ -25,7 +25,7 @@ GLsizei TextureData::getNumberOfChannels() const
}
void
TextureData
::
flip
Horizont
ally
()
void
TextureData
::
flip
Vertic
ally
()
{
size_t
scanlineInBytes
=
getBytesPerScanline
();
GLubyte
*
tmpScanLine
=
new
GLubyte
[
scanlineInBytes
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment