Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RBComb Sample Visualizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Pascal Engeler
RBComb Sample Visualizer
Commits
40c8058c
Commit
40c8058c
authored
1 year ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
Made print statements debug only
parent
7a9f89e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gui/src/layer.cpp
+4
-0
4 additions, 0 deletions
gui/src/layer.cpp
with
4 additions
and
0 deletions
gui/src/layer.cpp
+
4
−
0
View file @
40c8058c
...
@@ -151,8 +151,10 @@ int Layer::selectObject(unsigned x, unsigned y, glm::mat4 projection, glm::mat4
...
@@ -151,8 +151,10 @@ int Layer::selectObject(unsigned x, unsigned y, glm::mat4 projection, glm::mat4
auto
color
=
_framebuffer
.
getPixel
(
x
,
y
);
auto
color
=
_framebuffer
.
getPixel
(
x
,
y
);
#ifndef NDEBUG
std
::
cout
<<
"color float: ("
<<
color
[
0
]
<<
", "
<<
color
[
1
]
<<
", "
<<
color
[
2
]
<<
", "
<<
color
[
3
]
<<
")"
<<
std
::
endl
;
std
::
cout
<<
"color float: ("
<<
color
[
0
]
<<
", "
<<
color
[
1
]
<<
", "
<<
color
[
2
]
<<
", "
<<
color
[
3
]
<<
")"
<<
std
::
endl
;
std
::
cout
<<
"color int: ("
<<
color
[
0
]
*
255
<<
", "
<<
color
[
1
]
*
255
<<
", "
<<
color
[
2
]
*
255
<<
", "
<<
color
[
3
]
*
255
<<
")"
<<
std
::
endl
;
std
::
cout
<<
"color int: ("
<<
color
[
0
]
*
255
<<
", "
<<
color
[
1
]
*
255
<<
", "
<<
color
[
2
]
*
255
<<
", "
<<
color
[
3
]
*
255
<<
")"
<<
std
::
endl
;
#endif
_framebuffer
.
unbind
();
_framebuffer
.
unbind
();
...
@@ -163,7 +165,9 @@ int Layer::selectObject(unsigned x, unsigned y, glm::mat4 projection, glm::mat4
...
@@ -163,7 +165,9 @@ int Layer::selectObject(unsigned x, unsigned y, glm::mat4 projection, glm::mat4
int
index
=
-
1
;
int
index
=
-
1
;
try
{
try
{
int
color_function
=
int
(((
color
[
0
]
+
2560
*
color
[
1
])
*
255.
f
)
+
0.2
);
int
color_function
=
int
(((
color
[
0
]
+
2560
*
color
[
1
])
*
255.
f
)
+
0.2
);
#ifndef NDEBUG
std
::
cout
<<
"color function: "
<<
color_function
<<
std
::
endl
;
std
::
cout
<<
"color function: "
<<
color_function
<<
std
::
endl
;
#endif
index
=
_colorToObjectIndex
[
color_function
];
index
=
_colorToObjectIndex
[
color_function
];
}
}
catch
(...)
{
catch
(...)
{
...
...
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