Lines Matching refs:robot
59 dat_t robot; variable
344 loadDAT( "rom:/resources/robot1.dat", &robot); in LoadObjects()
349 unloadDAT(&robot); in UnloadObjects()
394 for (int i = 0; i < robot.obj_num; i++) in DrawFrame()
396 glBindBuffer(GL_ARRAY_BUFFER, robot.posVB); in DrawFrame()
397 glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, (void*)robot.obj[i].vtx_offset); in DrawFrame()
398 glBindBuffer(GL_ARRAY_BUFFER, robot.normVB); in DrawFrame()
399 glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 0, (void*)robot.obj[i].nrm_offset); in DrawFrame()
401 …for (unsigned j = robot.obj[i].patch_offset; j < robot.obj[i].patch_size + robot.obj[i].patch_offs… in DrawFrame()
403 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, robot.idxVB); in DrawFrame()
404 glDrawElements(GL_TRIANGLES, robot.patch[j].elm_size, in DrawFrame()
405 GL_UNSIGNED_SHORT, (GLvoid*)(robot.patch[j].elm_offset + robot.obj[i].elm_offset)); in DrawFrame()