Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
3f1da8b2
Commit
3f1da8b2
authored
Jun 27, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor code cleaning.
parent
649a7fa3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
14 deletions
+0
-14
opengl_gal.cpp
common/gal/opengl/opengl_gal.cpp
+0
-12
painter.cpp
common/painter.cpp
+0
-1
painter.h
include/painter.h
+0
-1
No files found.
common/gal/opengl/opengl_gal.cpp
View file @
3f1da8b2
...
...
@@ -540,14 +540,6 @@ void OPENGL_GAL::EndDrawing()
void
OPENGL_GAL
::
rebuildVbo
()
{
/* FIXME should be done less naively, maybe sth like:
float *ptr = (float*)glMapBufferARB(GL_ARRAY_BUFFER_ARB, GL_READ_WRITE_ARB);
if(ptr)
{
updateVertices(....);
glUnmapBufferARB(GL_ARRAY_BUFFER_ARB); // release pointer to mapping buffer
}*/
#ifdef __WXDEBUG__
prof_counter
totalTime
;
prof_start
(
&
totalTime
,
false
);
...
...
@@ -608,10 +600,6 @@ inline void OPENGL_GAL::drawLineQuad( const VECTOR2D& aStartPoint, const VECTOR2
{
vector
=
transform
*
vector
;
}
else
{
glm
::
vec4
vector
(
perpendicularVector
.
x
,
perpendicularVector
.
y
,
0.0
,
0.0
);
}
// Line width is maintained by the vertex shader
setShader
(
SHADER_LINE
,
vector
.
x
,
vector
.
y
,
lineWidth
);
...
...
common/painter.cpp
View file @
3f1da8b2
...
...
@@ -34,7 +34,6 @@ RENDER_SETTINGS::RENDER_SETTINGS()
{
// Set the default initial values
m_selectionBorderColor
=
COLOR4D
(
1.0
,
1.0
,
1.0
,
1.0
);
m_netLabelColor
=
COLOR4D
(
1.0
,
1.0
,
1.0
,
0.7
);
m_highlightFactor
=
0.5
;
m_selectFactor
=
0.5
;
...
...
include/painter.h
View file @
3f1da8b2
...
...
@@ -128,7 +128,6 @@ protected:
float
m_highlightFactor
;
/// Factor used for computing hightlight color
COLOR4D
m_selectionBorderColor
;
/// Color of selection box border
COLOR4D
m_netLabelColor
;
/// Color of net labels
float
m_selectFactor
;
/// Specifies how color of selected items is changed
float
m_layerOpacity
;
/// Determines opacity of all layers, so every can be seen
...
...
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