3
3
4
4
namespace Forth
5
5
{
6
- inline void Buffer4::EnsureIndices (const int incoming)
6
+ void Buffer4::EnsureIndices (const int incoming)
7
7
{
8
8
if (indiceCount + incoming > indiceCap)
9
9
{
10
10
Expand (&indices, indiceCount, indiceCap = Max (indiceCount + incoming, indiceCap << 1 ));
11
11
}
12
12
}
13
- inline void Buffer4::EnsureVertices (const int incoming)
13
+ void Buffer4::EnsureVertices (const int incoming)
14
14
{
15
15
if (verticeCount + incoming > verticeCap)
16
16
{
17
17
Expand (&vertices, verticeCount, verticeCap = Max (verticeCount + incoming, verticeCap << 1 ));
18
18
}
19
19
}
20
20
21
- inline void Buffer4::Clear ()
21
+ void Buffer4::Clear ()
22
22
{
23
23
verticeCount = indiceCount = offset = 0 ;
24
24
}
25
25
26
- inline void Buffer4::Clean ()
26
+ void Buffer4::Clean ()
27
27
{
28
28
Clear ();
29
29
indices = new int [indiceCap = 4 ];
30
30
vertices = new Vector4[verticeCap = 4 ];
31
31
}
32
32
33
- inline Buffer4::Buffer4 ()
33
+ Buffer4::Buffer4 ()
34
34
{
35
35
Clean ();
36
36
}
37
37
38
- inline void Buffer4::Align () { offset = verticeCount; }
38
+ void Buffer4::Align () { offset = verticeCount; }
39
39
40
- inline void Buffer4::Align (int snapshot) { offset = snapshot; }
40
+ void Buffer4::Align (int snapshot) { offset = snapshot; }
41
41
42
42
// / <summary>
43
43
// / Send copy of current buffer position to be reused later.
44
44
// / </summary>
45
45
// / <seealso cref="Align(int)"/>
46
46
47
- inline int Buffer4::Snapshot () { return verticeCount; }
47
+ int Buffer4::Snapshot () { return verticeCount; }
48
48
49
- inline void Buffer4::AddSimplex (int i)
49
+ void Buffer4::AddSimplex (int i)
50
50
{
51
51
EnsureIndices (1 );
52
52
indices[indiceCount++] = (i + offset);
53
53
}
54
54
55
- inline void Buffer4::AddSimplex (int i, int j)
55
+ void Buffer4::AddSimplex (int i, int j)
56
56
{
57
57
EnsureIndices (2 );
58
58
indices[indiceCount++] = (i + offset);
59
59
indices[indiceCount++] = (j + offset);
60
60
}
61
61
62
- inline void Buffer4::AddSimplex (int i, int j, int k)
62
+ void Buffer4::AddSimplex (int i, int j, int k)
63
63
{
64
64
EnsureIndices (3 );
65
65
indices[indiceCount++] = (i + offset);
66
66
indices[indiceCount++] = (j + offset);
67
67
indices[indiceCount++] = (k + offset);
68
68
}
69
69
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)
71
71
{
72
72
EnsureIndices (2 );
73
73
indices[indiceCount++] = (i + offset);
@@ -76,7 +76,7 @@ namespace Forth
76
76
indices[indiceCount++] = (l + offset);
77
77
}
78
78
79
- inline void Buffer4::AddPoint (int v0)
79
+ void Buffer4::AddPoint (int v0)
80
80
{
81
81
switch (simplex)
82
82
{
@@ -86,7 +86,7 @@ namespace Forth
86
86
}
87
87
}
88
88
89
- inline void Buffer4::AddSegment (int v0, int v1)
89
+ void Buffer4::AddSegment (int v0, int v1)
90
90
{
91
91
switch (simplex)
92
92
{
@@ -99,7 +99,7 @@ namespace Forth
99
99
}
100
100
}
101
101
102
- inline void Buffer4::AddTriangle (int v0, int v1, int v2)
102
+ void Buffer4::AddTriangle (int v0, int v1, int v2)
103
103
{
104
104
switch (simplex)
105
105
{
@@ -117,7 +117,7 @@ namespace Forth
117
117
}
118
118
}
119
119
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)
121
121
{
122
122
switch (simplex)
123
123
{
@@ -137,7 +137,7 @@ namespace Forth
137
137
}
138
138
}
139
139
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)
141
141
{
142
142
switch (simplex)
143
143
{
@@ -165,7 +165,7 @@ namespace Forth
165
165
}
166
166
}
167
167
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)
169
169
{
170
170
switch (simplex)
171
171
{
@@ -196,7 +196,7 @@ namespace Forth
196
196
}
197
197
}
198
198
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)
200
200
{
201
201
switch (simplex)
202
202
{
@@ -230,7 +230,7 @@ namespace Forth
230
230
}
231
231
}
232
232
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)
234
234
{
235
235
switch (simplex)
236
236
{
@@ -271,21 +271,21 @@ namespace Forth
271
271
}
272
272
}
273
273
274
- inline int Buffer4::AddVertex (int idx)
274
+ int Buffer4::AddVertex (int idx)
275
275
{
276
276
EnsureVertices (1 );
277
277
vertices[verticeCount] = (vertices[idx + offset]);
278
278
return verticeCount++ - offset;
279
279
}
280
280
281
- inline int Buffer4::AddVertex (Vector4 vert)
281
+ int Buffer4::AddVertex (Vector4 vert)
282
282
{
283
283
EnsureVertices (1 );
284
284
vertices[verticeCount] = vert;
285
285
return verticeCount++ - offset;
286
286
}
287
287
288
- inline void Buffer4::Sequence (SequenceMode mode, int start, int count)
288
+ void Buffer4::Sequence (SequenceMode mode, int start, int count)
289
289
{
290
290
offset += start;
291
291
int end = count < 0 ? verticeCount - offset : count;
@@ -384,13 +384,13 @@ namespace Forth
384
384
offset -= start;
385
385
}
386
386
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)
388
388
{
389
389
return l + _seqW * (k + _seqZ * (j + _seqY * i));
390
390
}
391
391
392
392
template <typename T>
393
- inline void Buffer4::Expand (T **arr, int count, int newSize)
393
+ void Buffer4::Expand (T **arr, int count, int newSize)
394
394
{
395
395
T *newArr = new T[newSize];
396
396
0 commit comments