33
44namespace Forth
55{
6- inline void Buffer4::EnsureIndices (const int incoming)
6+ void Buffer4::EnsureIndices (const int incoming)
77 {
88 if (indiceCount + incoming > indiceCap)
99 {
1010 Expand (&indices, indiceCount, indiceCap = Max (indiceCount + incoming, indiceCap << 1 ));
1111 }
1212 }
13- inline void Buffer4::EnsureVertices (const int incoming)
13+ void Buffer4::EnsureVertices (const int incoming)
1414 {
1515 if (verticeCount + incoming > verticeCap)
1616 {
1717 Expand (&vertices, verticeCount, verticeCap = Max (verticeCount + incoming, verticeCap << 1 ));
1818 }
1919 }
2020
21- inline void Buffer4::Clear ()
21+ void Buffer4::Clear ()
2222 {
2323 verticeCount = indiceCount = offset = 0 ;
2424 }
2525
26- inline void Buffer4::Clean ()
26+ void Buffer4::Clean ()
2727 {
2828 Clear ();
2929 indices = new int [indiceCap = 4 ];
3030 vertices = new Vector4[verticeCap = 4 ];
3131 }
3232
33- inline Buffer4::Buffer4 ()
33+ Buffer4::Buffer4 ()
3434 {
3535 Clean ();
3636 }
3737
38- inline void Buffer4::Align () { offset = verticeCount; }
38+ void Buffer4::Align () { offset = verticeCount; }
3939
40- inline void Buffer4::Align (int snapshot) { offset = snapshot; }
40+ void Buffer4::Align (int snapshot) { offset = snapshot; }
4141
4242 // / <summary>
4343 // / Send copy of current buffer position to be reused later.
4444 // / </summary>
4545 // / <seealso cref="Align(int)"/>
4646
47- inline int Buffer4::Snapshot () { return verticeCount; }
47+ int Buffer4::Snapshot () { return verticeCount; }
4848
49- inline void Buffer4::AddSimplex (int i)
49+ void Buffer4::AddSimplex (int i)
5050 {
5151 EnsureIndices (1 );
5252 indices[indiceCount++] = (i + offset);
5353 }
5454
55- inline void Buffer4::AddSimplex (int i, int j)
55+ void Buffer4::AddSimplex (int i, int j)
5656 {
5757 EnsureIndices (2 );
5858 indices[indiceCount++] = (i + offset);
5959 indices[indiceCount++] = (j + offset);
6060 }
6161
62- inline void Buffer4::AddSimplex (int i, int j, int k)
62+ void Buffer4::AddSimplex (int i, int j, int k)
6363 {
6464 EnsureIndices (3 );
6565 indices[indiceCount++] = (i + offset);
6666 indices[indiceCount++] = (j + offset);
6767 indices[indiceCount++] = (k + offset);
6868 }
6969
70- inline void Buffer4::AddSimplex (int i, int j, int k, int l)
70+ void Buffer4::AddSimplex (int i, int j, int k, int l)
7171 {
7272 EnsureIndices (2 );
7373 indices[indiceCount++] = (i + offset);
@@ -76,7 +76,7 @@ namespace Forth
7676 indices[indiceCount++] = (l + offset);
7777 }
7878
79- inline void Buffer4::AddPoint (int v0)
79+ void Buffer4::AddPoint (int v0)
8080 {
8181 switch (simplex)
8282 {
@@ -86,7 +86,7 @@ namespace Forth
8686 }
8787 }
8888
89- inline void Buffer4::AddSegment (int v0, int v1)
89+ void Buffer4::AddSegment (int v0, int v1)
9090 {
9191 switch (simplex)
9292 {
@@ -99,7 +99,7 @@ namespace Forth
9999 }
100100 }
101101
102- inline void Buffer4::AddTriangle (int v0, int v1, int v2)
102+ void Buffer4::AddTriangle (int v0, int v1, int v2)
103103 {
104104 switch (simplex)
105105 {
@@ -117,7 +117,7 @@ namespace Forth
117117 }
118118 }
119119
120- inline void Buffer4::AddQuad (int v0, int v1, int v2, int v3)
120+ void Buffer4::AddQuad (int v0, int v1, int v2, int v3)
121121 {
122122 switch (simplex)
123123 {
@@ -137,7 +137,7 @@ namespace Forth
137137 }
138138 }
139139
140- inline void Buffer4::AddTrimid (int v0, int v1, int v2, int v3)
140+ void Buffer4::AddTrimid (int v0, int v1, int v2, int v3)
141141 {
142142 switch (simplex)
143143 {
@@ -165,7 +165,7 @@ namespace Forth
165165 }
166166 }
167167
168- inline void Buffer4::AddPyramid (int v0, int v1, int v2, int v3, int v4)
168+ void Buffer4::AddPyramid (int v0, int v1, int v2, int v3, int v4)
169169 {
170170 switch (simplex)
171171 {
@@ -196,7 +196,7 @@ namespace Forth
196196 }
197197 }
198198
199- inline void Buffer4::AddPrism (int v0, int v1, int v2, int v3, int v4, int v5)
199+ void Buffer4::AddPrism (int v0, int v1, int v2, int v3, int v4, int v5)
200200 {
201201 switch (simplex)
202202 {
@@ -230,7 +230,7 @@ namespace Forth
230230 }
231231 }
232232
233- inline void Buffer4::AddCube (int v0, int v1, int v2, int v3, int v4, int v5, int v6, int v7)
233+ void Buffer4::AddCube (int v0, int v1, int v2, int v3, int v4, int v5, int v6, int v7)
234234 {
235235 switch (simplex)
236236 {
@@ -271,21 +271,21 @@ namespace Forth
271271 }
272272 }
273273
274- inline int Buffer4::AddVertex (int idx)
274+ int Buffer4::AddVertex (int idx)
275275 {
276276 EnsureVertices (1 );
277277 vertices[verticeCount] = (vertices[idx + offset]);
278278 return verticeCount++ - offset;
279279 }
280280
281- inline int Buffer4::AddVertex (Vector4 vert)
281+ int Buffer4::AddVertex (Vector4 vert)
282282 {
283283 EnsureVertices (1 );
284284 vertices[verticeCount] = vert;
285285 return verticeCount++ - offset;
286286 }
287287
288- inline void Buffer4::Sequence (SequenceMode mode, int start, int count)
288+ void Buffer4::Sequence (SequenceMode mode, int start, int count)
289289 {
290290 offset += start;
291291 int end = count < 0 ? verticeCount - offset : count;
@@ -384,13 +384,13 @@ namespace Forth
384384 offset -= start;
385385 }
386386
387- inline int Buffer4::SequenceIndex (int i, int j, int k, int l)
387+ int Buffer4::SequenceIndex (int i, int j, int k, int l)
388388 {
389389 return l + _seqW * (k + _seqZ * (j + _seqY * i));
390390 }
391391
392392 template <typename T>
393- inline void Buffer4::Expand (T **arr, int count, int newSize)
393+ void Buffer4::Expand (T **arr, int count, int newSize)
394394 {
395395 T *newArr = new T[newSize];
396396
0 commit comments