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
af657fc8
Commit
af657fc8
authored
Aug 05, 2014
by
unknown
Committed by
jean-pierre charras
Aug 05, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3d-viewer: fix compil warning, by Mario Luzeiro, with some coding style fixes.
parent
242d42cf
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
137 additions
and
70 deletions
+137
-70
3d_frame.cpp
3d-viewer/3d_frame.cpp
+3
-4
vrml_aux.cpp
3d-viewer/vrml_aux.cpp
+3
-2
vrml_v2_modelparser.cpp
3d-viewer/vrml_v2_modelparser.cpp
+131
-64
No files found.
3d-viewer/3d_frame.cpp
View file @
af657fc8
...
...
@@ -28,6 +28,7 @@
#include <fctsys.h>
#include <kiface_i.h>
#include <pgm_base.h>
#include <macros.h>
#include <3d_viewer.h>
#include <3d_canvas.h>
...
...
@@ -133,8 +134,6 @@ EDA_3D_FRAME::EDA_3D_FRAME( KIWAY* aKiway, PCB_BASE_FRAME* aParent,
#if wxCHECK_VERSION( 3, 0, 0 )
unsigned
int
ii
;
// Check if the canvas supports multisampling.
if
(
EDA_3D_CANVAS
::
IsDisplaySupported
(
attrs
)
)
{
...
...
@@ -142,7 +141,7 @@ EDA_3D_FRAME::EDA_3D_FRAME( KIWAY* aKiway, PCB_BASE_FRAME* aParent,
int
maxSamples
=
8
;
// Any higher doesn't change anything.
int
samplesOffset
=
0
;
for
(
ii
=
0
;
ii
<
sizeof
(
attrs
)
/
sizeof
(
attrs
[
0
]
)
-
1
;
ii
+=
2
)
for
(
unsigned
int
ii
=
0
;
ii
<
DIM
(
attrs
)
;
ii
+=
2
)
{
if
(
attrs
[
ii
]
==
WX_GL_SAMPLES
)
{
...
...
@@ -162,7 +161,7 @@ EDA_3D_FRAME::EDA_3D_FRAME( KIWAY* aKiway, PCB_BASE_FRAME* aParent,
else
{
// Disable multisampling
for
(
ii
=
0
;
ii
<
sizeof
(
attrs
)
/
sizeof
(
attrs
[
0
]
)
-
1
;
ii
+=
2
)
for
(
unsigned
int
ii
=
0
;
ii
<
DIM
(
attrs
)
;
ii
+=
2
)
{
if
(
attrs
[
ii
]
==
WX_GL_SAMPLE_BUFFERS
)
{
...
...
3d-viewer/vrml_aux.cpp
View file @
af657fc8
...
...
@@ -107,9 +107,10 @@ char* GetNextTag( FILE* File, char* tag )
if
(
(
c
!=
'}'
)
&&
(
c
!=
']'
)
)
{
char
*
dst
=
&
tag
[
1
];
while
(
fscanf
(
File
,
"%c"
,
dst
)
)
while
(
fscanf
(
File
,
"%c"
,
dst
)
)
{
if
(
(
*
dst
==
' '
)
||
(
*
dst
==
'['
)
||
(
*
dst
==
'{'
)
||
(
*
dst
==
'\t'
)
||
(
*
dst
==
'\n'
)
||
(
*
dst
==
'\r'
)
)
if
(
(
*
dst
==
' '
)
||
(
*
dst
==
'['
)
||
(
*
dst
==
'{'
)
||
(
*
dst
==
'\t'
)
||
(
*
dst
==
'\n'
)
||
(
*
dst
==
'\r'
)
)
{
*
dst
=
0
;
break
;
...
...
3d-viewer/vrml_v2_modelparser.cpp
View file @
af657fc8
This diff is collapsed.
Click to expand it.
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