Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
OpenGL
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
C-Fu
OpenGL
Commits
9c7691df
Commit
9c7691df
authored
Nov 08, 2016
by
Anakin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unused variables
parent
0fd3a7f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
35 deletions
+0
-35
MshViewer/Header/Object.h
MshViewer/Header/Object.h
+0
-11
MshViewer/Source/Object.cpp
MshViewer/Source/Object.cpp
+0
-24
No files found.
MshViewer/Header/Object.h
View file @
9c7691df
...
...
@@ -27,17 +27,6 @@ struct Modl {
Mtyp
type
;
std
::
uint32_t
renderFlags
;
glm
::
mat4
m4x4Translation
;
struct
{
float
scale
[
3
];
float
rotation
[
4
];
float
translation
[
3
];
}
tran
;
struct
{
std
::
uint32_t
type
;
float
data1
;
float
data2
;
float
data3
;
}
swci
;
std
::
string
texture
;
float
*
vertex
;
float
*
uv
;
...
...
MshViewer/Source/Object.cpp
View file @
9c7691df
...
...
@@ -79,20 +79,6 @@ void Object::setModlDefault(Modl * model)
model
->
type
=
null
;
model
->
renderFlags
=
-
1
;
model
->
m4x4Translation
=
glm
::
mat4
(
1.0
f
);
model
->
tran
.
scale
[
0
]
=
0
;
model
->
tran
.
scale
[
1
]
=
0
;
model
->
tran
.
scale
[
2
]
=
0
;
model
->
tran
.
rotation
[
0
]
=
0
;
model
->
tran
.
rotation
[
1
]
=
0
;
model
->
tran
.
rotation
[
2
]
=
0
;
model
->
tran
.
rotation
[
3
]
=
0
;
model
->
tran
.
translation
[
0
]
=
0
;
model
->
tran
.
translation
[
1
]
=
0
;
model
->
tran
.
translation
[
2
]
=
0
;
model
->
swci
.
type
=
-
1
;
model
->
swci
.
data1
=
-
1
;
model
->
swci
.
data2
=
-
1
;
model
->
swci
.
data3
=
-
1
;
model
->
texture
=
""
;
model
->
vertex
=
NULL
;
model
->
uv
=
NULL
;
...
...
@@ -347,16 +333,6 @@ void Object::analyseModlChunks(Modl* dataDestination, std::list<ChunkHeader*>& c
continue
;
}
if
(
!
strcmp
(
"SWCI"
,
(
*
it
)
->
name
))
{
fsMesh
.
seekg
((
*
it
)
->
position
);
fsMesh
.
read
(
reinterpret_cast
<
char
*>
(
&
dataDestination
->
swci
.
type
),
sizeof
(
dataDestination
->
swci
.
type
));
fsMesh
.
read
(
reinterpret_cast
<
char
*>
(
&
dataDestination
->
swci
.
data1
),
sizeof
(
dataDestination
->
swci
.
data1
));
fsMesh
.
read
(
reinterpret_cast
<
char
*>
(
&
dataDestination
->
swci
.
data2
),
sizeof
(
dataDestination
->
swci
.
data2
));
fsMesh
.
read
(
reinterpret_cast
<
char
*>
(
&
dataDestination
->
swci
.
data3
),
sizeof
(
dataDestination
->
swci
.
data3
));
continue
;
}
}
}
...
...
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