Lines Matching full:result
25 void CreateSphereGeometry(size_t sliceCount, float radius, SphereGeometry *result) in CreateSphereGeometry() argument
32 result->positions.resize(vertexCount); in CreateSphereGeometry()
33 result->normals.resize(vertexCount); in CreateSphereGeometry()
42 result->positions[vertexIdx] = direction * radius; in CreateSphereGeometry()
43 result->normals[vertexIdx] = direction; in CreateSphereGeometry()
47 result->indices.clear(); in CreateSphereGeometry()
48 result->indices.reserve(indexCount); in CreateSphereGeometry()
53 result->indices.push_back(static_cast<unsigned short>(i * (sliceCount + 1) + j)); in CreateSphereGeometry()
54 result->indices.push_back(static_cast<unsigned short>((i + 1) * (sliceCount + 1) + j)); in CreateSphereGeometry()
55 result->indices.push_back( in CreateSphereGeometry()
58 result->indices.push_back(static_cast<unsigned short>(i * (sliceCount + 1) + j)); in CreateSphereGeometry()
59 result->indices.push_back( in CreateSphereGeometry()
61 result->indices.push_back(static_cast<unsigned short>(i * (sliceCount + 1) + (j + 1))); in CreateSphereGeometry()
66 void GenerateCubeGeometry(float radius, CubeGeometry *result) in GenerateCubeGeometry() argument
68 result->positions.resize(24); in GenerateCubeGeometry()
69 result->positions[0] = Vector3(-radius, -radius, -radius); in GenerateCubeGeometry()
70 result->positions[1] = Vector3(-radius, -radius, radius); in GenerateCubeGeometry()
71 result->positions[2] = Vector3(radius, -radius, radius); in GenerateCubeGeometry()
72 result->positions[3] = Vector3(radius, -radius, -radius); in GenerateCubeGeometry()
73 result->positions[4] = Vector3(-radius, radius, -radius); in GenerateCubeGeometry()
74 result->positions[5] = Vector3(-radius, radius, radius); in GenerateCubeGeometry()
75 result->positions[6] = Vector3(radius, radius, radius); in GenerateCubeGeometry()
76 result->positions[7] = Vector3(radius, radius, -radius); in GenerateCubeGeometry()
77 result->positions[8] = Vector3(-radius, -radius, -radius); in GenerateCubeGeometry()
78 result->positions[9] = Vector3(-radius, radius, -radius); in GenerateCubeGeometry()
79 result->positions[10] = Vector3(radius, radius, -radius); in GenerateCubeGeometry()
80 result->positions[11] = Vector3(radius, -radius, -radius); in GenerateCubeGeometry()
81 result->positions[12] = Vector3(-radius, -radius, radius); in GenerateCubeGeometry()
82 result->positions[13] = Vector3(-radius, radius, radius); in GenerateCubeGeometry()
83 result->positions[14] = Vector3(radius, radius, radius); in GenerateCubeGeometry()
84 result->positions[15] = Vector3(radius, -radius, radius); in GenerateCubeGeometry()
85 result->positions[16] = Vector3(-radius, -radius, -radius); in GenerateCubeGeometry()
86 result->positions[17] = Vector3(-radius, -radius, radius); in GenerateCubeGeometry()
87 result->positions[18] = Vector3(-radius, radius, radius); in GenerateCubeGeometry()
88 result->positions[19] = Vector3(-radius, radius, -radius); in GenerateCubeGeometry()
89 result->positions[20] = Vector3(radius, -radius, -radius); in GenerateCubeGeometry()
90 result->positions[21] = Vector3(radius, -radius, radius); in GenerateCubeGeometry()
91 result->positions[22] = Vector3(radius, radius, radius); in GenerateCubeGeometry()
92 result->positions[23] = Vector3(radius, radius, -radius); in GenerateCubeGeometry()
94 result->normals.resize(24); in GenerateCubeGeometry()
95 result->normals[0] = Vector3(0.0f, -1.0f, 0.0f); in GenerateCubeGeometry()
96 result->normals[1] = Vector3(0.0f, -1.0f, 0.0f); in GenerateCubeGeometry()
97 result->normals[2] = Vector3(0.0f, -1.0f, 0.0f); in GenerateCubeGeometry()
98 result->normals[3] = Vector3(0.0f, -1.0f, 0.0f); in GenerateCubeGeometry()
99 result->normals[4] = Vector3(0.0f, 1.0f, 0.0f); in GenerateCubeGeometry()
100 result->normals[5] = Vector3(0.0f, 1.0f, 0.0f); in GenerateCubeGeometry()
101 result->normals[6] = Vector3(0.0f, 1.0f, 0.0f); in GenerateCubeGeometry()
102 result->normals[7] = Vector3(0.0f, 1.0f, 0.0f); in GenerateCubeGeometry()
103 result->normals[8] = Vector3(0.0f, 0.0f, -1.0f); in GenerateCubeGeometry()
104 result->normals[9] = Vector3(0.0f, 0.0f, -1.0f); in GenerateCubeGeometry()
105 result->normals[10] = Vector3(0.0f, 0.0f, -1.0f); in GenerateCubeGeometry()
106 result->normals[11] = Vector3(0.0f, 0.0f, -1.0f); in GenerateCubeGeometry()
107 result->normals[12] = Vector3(0.0f, 0.0f, 1.0f); in GenerateCubeGeometry()
108 result->normals[13] = Vector3(0.0f, 0.0f, 1.0f); in GenerateCubeGeometry()
109 result->normals[14] = Vector3(0.0f, 0.0f, 1.0f); in GenerateCubeGeometry()
110 result->normals[15] = Vector3(0.0f, 0.0f, 1.0f); in GenerateCubeGeometry()
111 result->normals[16] = Vector3(-1.0f, 0.0f, 0.0f); in GenerateCubeGeometry()
112 result->normals[17] = Vector3(-1.0f, 0.0f, 0.0f); in GenerateCubeGeometry()
113 result->normals[18] = Vector3(-1.0f, 0.0f, 0.0f); in GenerateCubeGeometry()
114 result->normals[19] = Vector3(-1.0f, 0.0f, 0.0f); in GenerateCubeGeometry()
115 result->normals[20] = Vector3(1.0f, 0.0f, 0.0f); in GenerateCubeGeometry()
116 result->normals[21] = Vector3(1.0f, 0.0f, 0.0f); in GenerateCubeGeometry()
117 result->normals[22] = Vector3(1.0f, 0.0f, 0.0f); in GenerateCubeGeometry()
118 result->normals[23] = Vector3(1.0f, 0.0f, 0.0f); in GenerateCubeGeometry()
120 result->texcoords.resize(24); in GenerateCubeGeometry()
121 result->texcoords[0] = Vector2(0.0f, 0.0f); in GenerateCubeGeometry()
122 result->texcoords[1] = Vector2(0.0f, 1.0f); in GenerateCubeGeometry()
123 result->texcoords[2] = Vector2(1.0f, 1.0f); in GenerateCubeGeometry()
124 result->texcoords[3] = Vector2(1.0f, 0.0f); in GenerateCubeGeometry()
125 result->texcoords[4] = Vector2(1.0f, 0.0f); in GenerateCubeGeometry()
126 result->texcoords[5] = Vector2(1.0f, 1.0f); in GenerateCubeGeometry()
127 result->texcoords[6] = Vector2(0.0f, 1.0f); in GenerateCubeGeometry()
128 result->texcoords[7] = Vector2(0.0f, 0.0f); in GenerateCubeGeometry()
129 result->texcoords[8] = Vector2(0.0f, 0.0f); in GenerateCubeGeometry()
130 result->texcoords[9] = Vector2(0.0f, 1.0f); in GenerateCubeGeometry()
131 result->texcoords[10] = Vector2(1.0f, 1.0f); in GenerateCubeGeometry()
132 result->texcoords[11] = Vector2(1.0f, 0.0f); in GenerateCubeGeometry()
133 result->texcoords[12] = Vector2(0.0f, 0.0f); in GenerateCubeGeometry()
134 result->texcoords[13] = Vector2(0.0f, 1.0f); in GenerateCubeGeometry()
135 result->texcoords[14] = Vector2(1.0f, 1.0f); in GenerateCubeGeometry()
136 result->texcoords[15] = Vector2(1.0f, 0.0f); in GenerateCubeGeometry()
137 result->texcoords[16] = Vector2(0.0f, 0.0f); in GenerateCubeGeometry()
138 result->texcoords[17] = Vector2(0.0f, 1.0f); in GenerateCubeGeometry()
139 result->texcoords[18] = Vector2(1.0f, 1.0f); in GenerateCubeGeometry()
140 result->texcoords[19] = Vector2(1.0f, 0.0f); in GenerateCubeGeometry()
141 result->texcoords[20] = Vector2(0.0f, 0.0f); in GenerateCubeGeometry()
142 result->texcoords[21] = Vector2(0.0f, 1.0f); in GenerateCubeGeometry()
143 result->texcoords[22] = Vector2(1.0f, 1.0f); in GenerateCubeGeometry()
144 result->texcoords[23] = Vector2(1.0f, 0.0f); in GenerateCubeGeometry()
146 result->indices.resize(36); in GenerateCubeGeometry()
147 result->indices[0] = 0; in GenerateCubeGeometry()
148 result->indices[1] = 2; in GenerateCubeGeometry()
149 result->indices[2] = 1; in GenerateCubeGeometry()
150 result->indices[3] = 0; in GenerateCubeGeometry()
151 result->indices[4] = 3; in GenerateCubeGeometry()
152 result->indices[5] = 2; in GenerateCubeGeometry()
153 result->indices[6] = 4; in GenerateCubeGeometry()
154 result->indices[7] = 5; in GenerateCubeGeometry()
155 result->indices[8] = 6; in GenerateCubeGeometry()
156 result->indices[9] = 4; in GenerateCubeGeometry()
157 result->indices[10] = 6; in GenerateCubeGeometry()
158 result->indices[11] = 7; in GenerateCubeGeometry()
159 result->indices[12] = 8; in GenerateCubeGeometry()
160 result->indices[13] = 9; in GenerateCubeGeometry()
161 result->indices[14] = 10; in GenerateCubeGeometry()
162 result->indices[15] = 8; in GenerateCubeGeometry()
163 result->indices[16] = 10; in GenerateCubeGeometry()
164 result->indices[17] = 11; in GenerateCubeGeometry()
165 result->indices[18] = 12; in GenerateCubeGeometry()
166 result->indices[19] = 15; in GenerateCubeGeometry()
167 result->indices[20] = 14; in GenerateCubeGeometry()
168 result->indices[21] = 12; in GenerateCubeGeometry()
169 result->indices[22] = 14; in GenerateCubeGeometry()
170 result->indices[23] = 13; in GenerateCubeGeometry()
171 result->indices[24] = 16; in GenerateCubeGeometry()
172 result->indices[25] = 17; in GenerateCubeGeometry()
173 result->indices[26] = 18; in GenerateCubeGeometry()
174 result->indices[27] = 16; in GenerateCubeGeometry()
175 result->indices[28] = 18; in GenerateCubeGeometry()
176 result->indices[29] = 19; in GenerateCubeGeometry()
177 result->indices[30] = 20; in GenerateCubeGeometry()
178 result->indices[31] = 23; in GenerateCubeGeometry()
179 result->indices[32] = 22; in GenerateCubeGeometry()
180 result->indices[33] = 20; in GenerateCubeGeometry()
181 result->indices[34] = 22; in GenerateCubeGeometry()
182 result->indices[35] = 21; in GenerateCubeGeometry()