Lines Matching refs:sphere
62 dat_t sphere; variable
273 loadDAT( "rom:/resources/sphere.dat", &sphere); in LoadObjects()
302 unloadDAT(&sphere); in UnloadObjects()
341 for (int i = 0; i < sphere.obj_num; i++) in DrawFrame()
343 glBindBuffer(GL_ARRAY_BUFFER, sphere.posVB); in DrawFrame()
344 glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, (void*)sphere.obj[i].vtx_offset); in DrawFrame()
345 glBindBuffer(GL_ARRAY_BUFFER, sphere.normVB); in DrawFrame()
346 glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 0, (void*)sphere.obj[i].nrm_offset); in DrawFrame()
348 …for (unsigned j = sphere.obj[i].patch_offset; j < sphere.obj[i].patch_size + sphere.obj[i].patch_o… in DrawFrame()
350 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, sphere.idxVB); in DrawFrame()
351 glDrawElements(GL_TRIANGLES, sphere.patch[j].elm_size, in DrawFrame()
352 … GL_UNSIGNED_SHORT, (GLvoid*)(sphere.patch[j].elm_offset + sphere.obj[i].elm_offset)); in DrawFrame()