Lines Matching refs:robot
60 dat_t robot; variable
363 loadDAT( "rom:/resources/robot1.dat", &robot); in LoadObjects()
368 unloadDAT(&robot); in UnloadObjects()
444 for (int i = 0; i < robot.obj_num; i++) in CreateCommand()
446 glBindBuffer(GL_ARRAY_BUFFER, robot.posVB); in CreateCommand()
447 glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, (void*)robot.obj[i].vtx_offset); in CreateCommand()
448 glBindBuffer(GL_ARRAY_BUFFER, robot.normVB); in CreateCommand()
449 glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 0, (void*)robot.obj[i].nrm_offset); in CreateCommand()
451 …for (unsigned j = robot.obj[i].patch_offset; j < robot.obj[i].patch_size + robot.obj[i].patch_offs… in CreateCommand()
453 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, robot.idxVB); in CreateCommand()
454 glDrawElements(GL_TRIANGLES, robot.patch[j].elm_size, in CreateCommand()
455 … GL_UNSIGNED_SHORT, (GLvoid*)(robot.patch[j].elm_offset + robot.obj[i].elm_offset)); in CreateCommand()