当前位置: 首页>>代码示例>>C++>>正文


C++ VSX_UNUSED函数代码示例

本文整理汇总了C++中VSX_UNUSED函数的典型用法代码示例。如果您正苦于以下问题:C++ VSX_UNUSED函数的具体用法?C++ VSX_UNUSED怎么用?C++ VSX_UNUSED使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了VSX_UNUSED函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: VSX_UNUSED

void vsx_widget_popup_menu::event_mouse_down(vsx_widget_distance distance, vsx_widget_coords coords, int button)
{
  VSX_UNUSED(distance);
  VSX_UNUSED(button);
  req(over);
  req(!oversub);
  req(current_command_over);

  visible = 0;

  // call event
  on_selection(*current_command_over);

  // perform command's action
  current_command_over->action();

  // send command to parent
  req(current_command_over->cmd.size());

  vsx_command_s* command = command_q_b.addc(current_command_over, true);
  if (command->cmd_data == "$mpos")
  {
    command->cmd_data = vsx_vector3_helper::to_string
        (
          coords.world_global-parent->get_pos_p(),
          2
          );

    if (command->parts.size() > 2)
      command->parts[2] = command->cmd_data;
  }
  parent->vsx_command_queue_b(this);
}
开发者ID:vovoid,项目名称:vsxu,代码行数:33,代码来源:vsx_widget_popup_menu.cpp

示例2: VSX_UNUSED

void vsx_widget_2d_pager::event_mouse_down(vsx_widget_distance distance,vsx_widget_coords coords,int button)
{
  VSX_UNUSED(coords);
  VSX_UNUSED(button);

  distance.center.x > 0.0f ? increase() : decrease();
}
开发者ID:vovoid,项目名称:vsxu,代码行数:7,代码来源:vsx_widget_2d_pager.cpp

示例3: get_pos_p

/*vsx_vector3<> vsx_widget_panel::calc_pos()
{
  vsx_vector3<> p = get_pos_p();

  if (pos_from_parent) {
    return pos - target_size * 0.5;
//    p.x += target_pos.x;
//    p.y += target_pos.y;
      p.x -= target_size.x*0.5;
      p.y -= target_size.y*0.5;
  } else
  p = parent->get_inner_pos();


  if (render_type == render_3d) {
    p.z = pos.z;
  } else {
    p.z = 0.0f;
  }
  return p;
}
*/
int vsx_widget_panel::inside_xy_l(vsx_vector3<> &test, vsx_vector3<> &global)
{
  VSX_UNUSED(test);
  VSX_UNUSED(global);
  //return vsx_widget::inside_xy_l(test,global);
  return 0;
}
开发者ID:vovoid,项目名称:vsxu,代码行数:29,代码来源:vsx_widget_panel.cpp

示例4: VSX_UNUSED

void vsx_widget_seq_pool_manager::event_text(wchar_t character_wide, char character)
{
  VSX_UNUSED(character_wide);
  VSX_UNUSED(character);

  vsx_string<>filter = ((vsx_widget_base_edit*)search)->get_string();
  ((vsx_widget_editor*)edit)->editor->set_filter_string( filter );
}
开发者ID:vovoid,项目名称:vsxu,代码行数:8,代码来源:vsx_widget_seq_pool.cpp

示例5: mouse_pos_event

void GLFWCALL mouse_pos_event(int x, int y)
{
  VSX_UNUSED(x);
  VSX_UNUSED(y);
  set_modifiers();
  glfwGetMousePos(&last_x, &last_y);
  if (mouse_state) mouse_pos_type = 1;
  else mouse_pos_type = 2;
}
开发者ID:TheMindVirus,项目名称:vsxu,代码行数:9,代码来源:main.cpp

示例6: event_mouse_down

  void event_mouse_down(vsx_widget_distance distance,vsx_widget_coords coords,int button)
  {
    VSX_UNUSED(distance);
    VSX_UNUSED(coords);
    VSX_UNUSED(button);

    if (dragging) dragging = false;
    if (get_selected_item() != "")
    {
      command_q_b.add_raw("seq_pool select " + editor->get_line(editor->selected_line) );
      parent->vsx_command_queue_b(this);
    }
  }
开发者ID:vovoid,项目名称:vsxu,代码行数:13,代码来源:vsx_widget_seq_pool.cpp

示例7: VSX_UNUSED

void vsx_widget_profiler_thread::event_mouse_move_passive(vsx_widget_distance distance,vsx_widget_coords coords)
{
  VSX_UNUSED(distance);
  //mouse_pos = coords.world_global - get_pos_p();
  mouse_pos = distance.center;
  parent->event_mouse_move_passive(distance, coords);
}
开发者ID:vovoid,项目名称:vsxu,代码行数:7,代码来源:vsx_widget_profiler_thread.cpp

示例8: VSX_UNUSED

void vsx_widget_profiler_plot::event_mouse_double_click(vsx_widget_distance distance,vsx_widget_coords coords,int button)
{
  VSX_UNUSED(distance);
  VSX_UNUSED(coords);
  VSX_UNUSED(button);
  if (!selected_chunk)
    return;

  double tdiff = selected_chunk->time_end - selected_chunk->time_start;
  vsx_printf("tdiff. %f\n", tdiff);
  time_scale::get_instance()->time_scale_x = 0.5 / (tdiff) ;
  time_scale::get_instance()->time_offset = -time_scale::get_instance()->time_scale_x * (selected_chunk->time_start + 0.5 * tdiff);

  camera.set_pos( vsx_vector3<>(0.0, 0.0, 1.9) );
  update_vbo();
}
开发者ID:CJFocke,项目名称:vsxu,代码行数:16,代码来源:vsx_widget_profiler_plot.cpp

示例9: MOD_CM

vsx_module* MOD_CM(unsigned long module, void* args)
{
  VSX_UNUSED(args);
  switch(module)
  {
    case 0: return (vsx_module*)(new module_mesh_vertex_picker);
    case 1: return (vsx_module*)(new module_mesh_quat_rotate);
    case 2: return (vsx_module*)(new module_mesh_deformers_mesh_vertex_move);
    case 3: return (vsx_module*)(new module_mesh_translate);
    case 4: return (vsx_module*)(new module_mesh_to_float3_arrays);
    case 5: return (vsx_module*)(new module_mesh_compute_tangents);
    case 6: return (vsx_module*)(new module_mesh_inflate_thread);
    case 7: return (vsx_module*)(new module_mesh_deformers_random_normal_distort);
    case 8: return (vsx_module*)(new module_mesh_noise);
    case 9: return (vsx_module*)(new module_mesh_quat_rotate_around_vertex);
    case 10: return (vsx_module*)(new module_mesh_dummy);
    case 11: return (vsx_module*)(new module_mesh_scale);
    case 12: return (vsx_module*)(new module_mesh_rain_down);
    case 13: return (vsx_module*)(new module_mesh_calc_attachment);
    case 14: return (vsx_module*)(new module_mesh_vertex_distance_sort);
    case 15: return (vsx_module*)(new module_mesh_translate_edge_wraparound);
    case 16: return (vsx_module*)(new module_mesh_vortex);
    case 17: return (vsx_module*)(new module_mesh_scale_normalize);
    case 18: return (vsx_module*)(new module_mesh_segmesh_to_mesh);
    case 19: return (vsx_module*)(new module_mesh_compute_tangents_vertex_color_array);
    case 20: return (vsx_module*)(new module_mesh_mirror);
    case 21: return (vsx_module*)(new module_mesh_interpolate_2p);
  }
  return 0;
}
开发者ID:vovoid,项目名称:vsxu,代码行数:30,代码来源:main_mesh.modifiers.cpp

示例10: output

  void output(vsx_module_param_abs* param)
  {
    VSX_UNUSED(param);
    particles = in_particlesystem->get_addr();
    if (particles) {
      if (prev_num_particles != particles->particles->size())
      {
    	// remove all the old ones
    	/*for (unsigned long i = 0; i < gr.size(); i++)
    	{
    		delete gr[i];
    	}
        gr.reset_used(0);*/
        //printf("num particles: %d\n",particles->particles->size());
    	//printf("prev_num: %d\n",prev_num_particles);
        for (unsigned long i = prev_num_particles; i < particles->particles->size(); ++i) {
        	//if (i == prev_num_particles) printf("allocating again\n");
        	gr[i] = new gravity_strip;
          //printf("i: %d\n",i);
          gr[i]->init();
          gr[i]->init_strip();
        }
        prev_num_particles = particles->particles->size();
      }
      //printf("done alloc %d\n",particles->particles->size());

      for (unsigned long i = 0; i < particles->particles->size(); ++i) {
      	//gr[i].length = 0.0f;
      	gr[i]->width = ribbon_width->get();
				//gr[i].masses[1].mass = gr[i].masses[0].mass + ribbon_width->get();
				gr[i]->length = length->get();
				gr[i]->friction = friction->get();
        float tt = ((*particles->particles)[i].time/(*particles->particles)[i].lifetime);
        if (tt < 0.0f) tt = 0.0f;
        if (tt > 1.0f) tt = 1.0f;
			  gr[i]->color0[0] = color0->get(0)*tt;
			  gr[i]->color0[1] = color0->get(1)*tt;
			  gr[i]->color0[2] = color0->get(2)*tt;
			  gr[i]->color0[3] = color0->get(3)*tt;

			  gr[i]->color1[0] = color1->get(0);
			  gr[i]->color1[1] = color1->get(1);
			  gr[i]->color1[2] = color1->get(2);
			  gr[i]->step_freq = 10.0f * step_length->get();
		  	//if (last_update != engine->vtime) {
			  gr[i]->update(engine->dtime, (*(particles->particles))[i].pos.x, (*(particles->particles))[i].pos.y, (*(particles->particles))[i].pos.z);
					//last_upd ate = engine->vtime;
	  		//}
				//printf("%f, %f, %f\n", (*particles->particles)[i].pos.x, (*particles->particles)[i].pos.y, (*particles->particles)[i].pos.z);
			  gr[i]->render();
		//		printf("%d %d;;; %d\n",__LINE__,i, particles->particles->size());
        // add the delta-time to the time of the particle
        /*(*particles->particles)[i].pos.x += px*engine->dtime;
        (*particles->particles)[i].pos.y += py*engine->dtime;
        (*particles->particles)[i].pos.z += pz*engine->dtime;*/
      }
      //printf("done drawing\n");
    }
	render_result->set(1);
  }
开发者ID:Spartan190,项目名称:vsxu,代码行数:60,代码来源:main.cpp

示例11: app_draw

bool app_draw(int id)
{
  VSX_UNUSED(id);
	if (first)
	{
		first = false;
    intro = new vsx_logo_intro;
    vxe_local = new vsx_engine("");
    vxe_local->set_no_send_client_time(true);
    vxe_local->start();
    vsx_string path = PLATFORM_SHARED_FILES;
    vxe_local->load_state(path+"example-prods/vovoid-luna-reactivation.vsx");
  }
  
  vxe_local->process_message_queue(&cmd_in,&cmd_out);
  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  vxe_local->render();
  if
  (
      vxe_local->get_engine_state() == VSX_ENGINE_LOADING
      &&
      vxe_local->get_engine_info()->vtime < 1.0f
  )
  intro->draw(true,false);
  else
  intro->draw(false,false);
  return true;
}
开发者ID:CJFocke,项目名称:vsxu,代码行数:28,代码来源:application.cpp

示例12: MOD_CM

vsx_module* MOD_CM(unsigned long module, void* args)
{
  VSX_UNUSED(args);
  switch(module) {
    case 0: return (vsx_module*)(new module_output_screen_opengl);
  }
  return 0;
}
开发者ID:ChunhuiWu,项目名称:vsxu,代码行数:8,代码来源:main_outputs.screen_opengl.cpp

示例13: create_new_module

vsx_module* create_new_module(unsigned long module, void* args)
{
  VSX_UNUSED(args);
  switch(module) {
    case 0: return (vsx_module*)(new vsx_module_obj_loader);
    case 1: return (vsx_module*)(new vsx_module_vxm_loader);
  }
  return 0;
}
开发者ID:Spartan190,项目名称:vsxu,代码行数:9,代码来源:main.cpp

示例14: create_new_module

vsx_module* create_new_module(unsigned long module, void* args)
{
  VSX_UNUSED(args);
  switch(module) {
    case 0: return (vsx_module*)(new vsx_module_file_chooser);
    case 1: return (vsx_module*)(new vsx_module_resource_to_string);
  }
  return 0;
}
开发者ID:ChunhuiWu,项目名称:vsxu,代码行数:9,代码来源:main.cpp

示例15: event_mouse_move

  void event_mouse_move(vsx_widget_distance distance, vsx_widget_coords coords)
  {
    VSX_UNUSED(distance);

    if (get_selected_item() != "")
    {
      dragging = true;
      drag_coords = coords;
    }
  }
开发者ID:vovoid,项目名称:vsxu,代码行数:10,代码来源:vsx_widget_seq_pool.cpp


注:本文中的VSX_UNUSED函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。