Lines Matching refs:state

10 bool VertState::Triangles(VertState* state) {
11 int index = state->fCurrIndex;
12 if (index + 3 > state->fCount) {
15 state->f0 = index + 0;
16 state->f1 = index + 1;
17 state->f2 = index + 2;
18 state->fCurrIndex = index + 3;
22 bool VertState::TrianglesX(VertState* state) {
23 const uint16_t* indices = state->fIndices;
24 int index = state->fCurrIndex;
25 if (index + 3 > state->fCount) {
28 state->f0 = indices[index + 0];
29 state->f1 = indices[index + 1];
30 state->f2 = indices[index + 2];
31 state->fCurrIndex = index + 3;
35 bool VertState::TriangleStrip(VertState* state) {
36 int index = state->fCurrIndex;
37 if (index + 3 > state->fCount) {
40 state->f2 = index + 2;
42 state->f0 = index + 1;
43 state->f1 = index + 0;
45 state->f0 = index + 0;
46 state->f1 = index + 1;
48 state->fCurrIndex = index + 1;
52 bool VertState::TriangleStripX(VertState* state) {
53 const uint16_t* indices = state->fIndices;
54 int index = state->fCurrIndex;
55 if (index + 3 > state->fCount) {
58 state->f2 = indices[index + 2];
60 state->f0 = indices[index + 1];
61 state->f1 = indices[index + 0];
63 state->f0 = indices[index + 0];
64 state->f1 = indices[index + 1];
66 state->fCurrIndex = index + 1;
70 bool VertState::TriangleFan(VertState* state) {
71 int index = state->fCurrIndex;
72 if (index + 3 > state->fCount) {
75 state->f0 = 0;
76 state->f1 = index + 1;
77 state->f2 = index + 2;
78 state->fCurrIndex = index + 1;
82 bool VertState::TriangleFanX(VertState* state) {
83 const uint16_t* indices = state->fIndices;
84 int index = state->fCurrIndex;
85 if (index + 3 > state->fCount) {
88 state->f0 = indices[0];
89 state->f1 = indices[index + 1];
90 state->f2 = indices[index + 2];
91 state->fCurrIndex = index + 1;