Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Niflib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Grant Kim
Niflib
Commits
686c111d
Commit
686c111d
authored
19 years ago
by
Amorilia
Browse files
Options
Downloads
Patches
Plain Diff
Added some const qualifiers.
parent
18677e45
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NIF_Blocks.h
+9
-9
9 additions, 9 deletions
NIF_Blocks.h
niflib.h
+9
-9
9 additions, 9 deletions
niflib.h
with
18 additions
and
18 deletions
NIF_Blocks.h
+
9
−
9
View file @
686c111d
...
...
@@ -542,15 +542,15 @@ public:
//--IShapeData--//
//Counts
short
GetVertexCount
()
{
return
short
(
vertices
.
size
());
}
short
GetUVSetCount
()
{
return
short
(
uv_sets
.
size
());
}
short
GetVertexCount
()
const
{
return
short
(
vertices
.
size
());
}
short
GetUVSetCount
()
const
{
return
short
(
uv_sets
.
size
());
}
void
SetVertexCount
(
int
n
);
void
SetUVSetCount
(
int
n
);
//Getters
vector
<
Vector3
>
GetVertices
()
{
return
vertices
;
}
vector
<
Vector3
>
GetNormals
()
{
return
normals
;
}
vector
<
Color
>
GetColors
()
{
return
colors
;
}
vector
<
TexCoord
>
GetUVSet
(
int
index
)
{
return
uv_sets
[
index
];
}
vector
<
Vector3
>
GetVertices
()
const
{
return
vertices
;
}
vector
<
Vector3
>
GetNormals
()
const
{
return
normals
;
}
vector
<
Color
>
GetColors
()
const
{
return
colors
;
}
vector
<
TexCoord
>
GetUVSet
(
int
index
)
const
{
return
uv_sets
[
index
];
}
//Setters
void
SetVertices
(
const
vector
<
Vector3
>
&
in
);
void
SetNormals
(
const
vector
<
Vector3
>
&
in
);
...
...
@@ -1217,7 +1217,7 @@ public:
KeyType
GetKeyType
()
{
return
_type
;
}
void
SetKeyType
(
KeyType
t
)
{
_type
=
t
;
}
vector
<
Key
<
Color
>
>
GetKeys
()
{
return
_keys
;
}
void
SetKeys
(
vector
<
Key
<
Color
>
>
&
keys
)
{
_keys
=
keys
;
}
void
SetKeys
(
vector
<
Key
<
Color
>
>
const
&
keys
)
{
_keys
=
keys
;
}
private
:
KeyType
_type
;
...
...
@@ -1261,7 +1261,7 @@ public:
KeyType
GetKeyType
()
{
return
_type
;
}
void
SetKeyType
(
KeyType
t
)
{
_type
=
t
;
}
vector
<
Key
<
float
>
>
GetKeys
()
{
return
_keys
;
}
void
SetKeys
(
vector
<
Key
<
float
>
>
&
keys
)
{
_keys
=
keys
;
}
void
SetKeys
(
vector
<
Key
<
float
>
>
const
&
keys
)
{
_keys
=
keys
;
}
private
:
KeyType
_type
;
...
...
@@ -1366,7 +1366,7 @@ public:
KeyType
GetKeyType
()
{
return
_type
;
}
void
SetKeyType
(
KeyType
t
)
{
_type
=
t
;
}
vector
<
Key
<
Vector3
>
>
GetKeys
()
{
return
_keys
;
}
void
SetKeys
(
vector
<
Key
<
Vector3
>
>
&
keys
)
{
_keys
=
keys
;
}
void
SetKeys
(
vector
<
Key
<
Vector3
>
>
const
&
keys
)
{
_keys
=
keys
;
}
private
:
KeyType
_type
;
...
...
This diff is collapsed.
Click to expand it.
niflib.h
+
9
−
9
View file @
686c111d
...
...
@@ -553,15 +553,15 @@ public:
IShapeData
()
{}
virtual
~
IShapeData
()
{}
//Counts
virtual
short
GetVertexCount
()
=
0
;
virtual
short
GetUVSetCount
()
=
0
;
virtual
short
GetVertexCount
()
const
=
0
;
virtual
short
GetUVSetCount
()
const
=
0
;
virtual
void
SetVertexCount
(
int
n
)
=
0
;
virtual
void
SetUVSetCount
(
int
n
)
=
0
;
//Getters
virtual
vector
<
Vector3
>
GetVertices
()
=
0
;
virtual
vector
<
Vector3
>
GetNormals
()
=
0
;
virtual
vector
<
Color
>
GetColors
()
=
0
;
virtual
vector
<
TexCoord
>
GetUVSet
(
int
index
)
=
0
;
virtual
vector
<
Vector3
>
GetVertices
()
const
=
0
;
virtual
vector
<
Vector3
>
GetNormals
()
const
=
0
;
virtual
vector
<
Color
>
GetColors
()
const
=
0
;
virtual
vector
<
TexCoord
>
GetUVSet
(
int
index
)
const
=
0
;
//Setters
virtual
void
SetVertices
(
const
vector
<
Vector3
>
&
in
)
=
0
;
virtual
void
SetNormals
(
const
vector
<
Vector3
>
&
in
)
=
0
;
...
...
@@ -647,7 +647,7 @@ public:
virtual
KeyType
GetKeyType
()
=
0
;
virtual
void
SetKeyType
(
KeyType
t
)
=
0
;
virtual
vector
<
Key
<
Color
>
>
GetKeys
()
=
0
;
virtual
void
SetKeys
(
vector
<
Key
<
Color
>
>
&
keys
)
=
0
;
virtual
void
SetKeys
(
vector
<
Key
<
Color
>
>
const
&
keys
)
=
0
;
};
class
IFloatData
{
...
...
@@ -657,7 +657,7 @@ public:
virtual
KeyType
GetKeyType
()
=
0
;
virtual
void
SetKeyType
(
KeyType
t
)
=
0
;
virtual
vector
<
Key
<
float
>
>
GetKeys
()
=
0
;
virtual
void
SetKeys
(
vector
<
Key
<
float
>
>
&
keys
)
=
0
;
virtual
void
SetKeys
(
vector
<
Key
<
float
>
>
const
&
keys
)
=
0
;
};
class
IPosData
{
...
...
@@ -667,7 +667,7 @@ public:
virtual
KeyType
GetKeyType
()
=
0
;
virtual
void
SetKeyType
(
KeyType
t
)
=
0
;
virtual
vector
<
Key
<
Vector3
>
>
GetKeys
()
=
0
;
virtual
void
SetKeys
(
vector
<
Key
<
Vector3
>
>
&
keys
)
=
0
;
virtual
void
SetKeys
(
vector
<
Key
<
Vector3
>
>
const
&
keys
)
=
0
;
};
...
...
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