Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
CGoGN
CGoGN
Commits
14e068ff
Commit
14e068ff
authored
Feb 06, 2012
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug correction lineWidth and poinSize are confused: no more
parent
df5f5b4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
include/Utils/drawer.h
include/Utils/drawer.h
+1
-0
src/Utils/drawer.cpp
src/Utils/drawer.cpp
+5
-2
No files found.
include/Utils/drawer.h
View file @
14e068ff
...
...
@@ -63,6 +63,7 @@ protected:
std
::
vector
<
Geom
::
Vec3f
>
m_dataCol
;
std
::
vector
<
PrimParam
>
m_begins
;
float
m_currentWidth
;
float
m_currentSize
;
GLenum
m_compile
;
Utils
::
ShaderColorPerVertex
*
m_shader
;
...
...
src/Utils/drawer.cpp
View file @
14e068ff
...
...
@@ -69,12 +69,15 @@ void Drawer::lineWidth(float lw)
void
Drawer
::
pointSize
(
float
ps
)
{
m_current
Width
=
ps
;
m_current
Size
=
ps
;
}
void
Drawer
::
begin
(
GLenum
mode
)
{
m_begins
.
push_back
(
PrimParam
(
m_dataPos
.
size
(),
mode
,
m_currentWidth
));
if
(
mode
==
GL_POINTS
)
m_begins
.
push_back
(
PrimParam
(
m_dataPos
.
size
(),
mode
,
m_currentSize
));
else
m_begins
.
push_back
(
PrimParam
(
m_dataPos
.
size
(),
mode
,
m_currentWidth
));
}
void
Drawer
::
end
()
...
...
Write
Preview
Markdown
is supported
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