int select_obj(t_data *data) { if (check_workspace(data->itfc.mpos, &data->rt) && data->click_action && data->rt.select == true) { data->itfc.obj_selected = get_obj(&data->rt, data->itfc.mpos->x - data->rt.pos.x, data->itfc.mpos->y - data->rt.pos.y); } data->click_action = false; return (0); }
int move_spot(t_data *data) { const t_bunny_position *mpos; t_rt *rt; rt = &data->rt; mpos = data->itfc.mpos; if (check_workspace(mpos, rt)) { move_light(data, mpos); } return (0); }
void rpc_send_bulk_gather(const void *in, uint32_t len, int32_t stride, uint32_t n) { if (in && len) { CLIENT_THREAD_STATE_T *thread = CLIENT_GET_THREAD_STATE(); merge_flush(thread); if (len == stride) { /* hopefully should be the common case */ send_bulk(thread, in, n * len); } else { check_workspace(n * len); rpc_gather(workspace, in, len, stride, n); send_bulk(thread, workspace, n * len); } } }
//���������������������������������������������������������������������Ŀ // Constructor/Destructors � //����������������������������������������������������������������������� EschPlosion() : EschDrawable(ESCH_DRWT_EXPLOSION), fire(0), fv(0.90f), alpha_level(255) { check_workspace(); }