• Home
  • Raw
  • Download

Lines Matching refs:p_point_params

81     struct touch_point_params *p_point_params;  in update_touch_point()  local
89 wl_list_for_each(p_point_params, &p_params->touch_point_list, link) in update_touch_point()
91 if (p_point_params->id != id) in update_touch_point()
97 p_point_params->display = 1; in update_touch_point()
98 p_point_params->x = x; in update_touch_point()
99 p_point_params->y = y; in update_touch_point()
102 p_point_params->display = 0; in update_touch_point()
348 struct touch_point_params *p_point_params; in redraw_handler() local
371 wl_list_for_each(p_point_params, &p_params->touch_point_list, link) in redraw_handler()
373 if (0 == p_point_params->display) in redraw_handler()
376 w = h = p_point_params->r * 2.0; in redraw_handler()
378 uX = (p_point_params->x - p_point_params->r)/ view_width; in redraw_handler()
379 uY = 1.0f - (p_point_params->y + p_point_params->r) / view_height; in redraw_handler()
388 glUniform3fv(p_params->gl.loc_col, 1, p_point_params->color); in redraw_handler()
391 GL_FLOAT, GL_FALSE, 0, p_point_params->p_vertices); in redraw_handler()
393 glDrawArrays(GL_TRIANGLE_FAN, 0, p_point_params->n_vtx); in redraw_handler()
473 struct touch_point_params *p_point_params; in setup_point_params() local
490 p_point_params = in setup_point_params()
491 (struct touch_point_params*)allocate(sizeof *p_point_params, 1); in setup_point_params()
492 if (NULL == p_point_params) in setup_point_params()
498 p_point_params->display = 0; in setup_point_params()
499 p_point_params->id = i; in setup_point_params()
500 p_point_params->x = 0.0; in setup_point_params()
501 p_point_params->y = 0.0; in setup_point_params()
502 p_point_params->r = 15.0; in setup_point_params()
503 p_point_params->n_vtx = n_vtx; in setup_point_params()
504 p_point_params->p_vertices = (GLfloat*)allocate(sizeof(GLfloat) * n_vtx * 2, 0); in setup_point_params()
505 assert(NULL != p_point_params->p_vertices); in setup_point_params()
509 p_point_params->p_vertices[j*2 ] = cx + (float)(0.5 * cos(rad)); in setup_point_params()
510 p_point_params->p_vertices[j*2+1] = cy + (float)(0.5 * sin(rad)); in setup_point_params()
513 p_point_params->p_vertices[j*2 ] = p_point_params->p_vertices[0]; in setup_point_params()
514 p_point_params->p_vertices[j*2+1] = p_point_params->p_vertices[1]; in setup_point_params()
517 memcpy(p_point_params->color, colors[idx], sizeof(GLfloat) * 3); in setup_point_params()
519 wl_list_insert(p_params->touch_point_list.prev, &p_point_params->link); in setup_point_params()