Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
acgl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACGL
acgl
Commits
155802c4
Commit
155802c4
authored
11 years ago
by
Robert Menzel
Browse files
Options
Downloads
Patches
Plain Diff
renamed flipping function, had wrong name
parent
1903dc9b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ACGL/OpenGL/Data/TextureData.hh
+2
-2
2 additions, 2 deletions
include/ACGL/OpenGL/Data/TextureData.hh
src/ACGL/OpenGL/Data/TextureData.cc
+1
-1
1 addition, 1 deletion
src/ACGL/OpenGL/Data/TextureData.cc
with
3 additions
and
3 deletions
include/ACGL/OpenGL/Data/TextureData.hh
+
2
−
2
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)
...
...
This diff is collapsed.
Click to expand it.
src/ACGL/OpenGL/Data/TextureData.cc
+
1
−
1
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
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment