Lines Matching refs:hand
63 dat_t hand; variable
250 loadDAT( "rom:/resources/hand.dat", &hand); in LoadObjects()
279 unloadDAT(&hand); in UnloadObjects()
406 for (int i = 0; i < hand.obj_num; i++) in DrawFrame()
408 glBindBuffer(GL_ARRAY_BUFFER, hand.posVB); in DrawFrame()
409 glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, (void*)hand.obj[i].vtx_offset); in DrawFrame()
410 glBindBuffer(GL_ARRAY_BUFFER, hand.normVB); in DrawFrame()
411 glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 0, (void*)hand.obj[i].nrm_offset); in DrawFrame()
413 …for (unsigned j = hand.obj[i].patch_offset; j < hand.obj[i].patch_size + hand.obj[i].patch_offset;… in DrawFrame()
420 ma[col] = hand.patch[j].ambient[col]; in DrawFrame()
421 md[col] = hand.patch[j].diffuse[col]; in DrawFrame()
422 ms[col] = hand.patch[j].specular[col]; in DrawFrame()
428 glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, hand.idxVB); in DrawFrame()
429 glDrawElements(GL_TRIANGLES, hand.patch[j].elm_size, in DrawFrame()
430 GL_UNSIGNED_SHORT, (GLvoid*)(hand.patch[j].elm_offset + hand.obj[i].elm_offset)); in DrawFrame()