本文整理汇总了C++中Render::rotation方法的典型用法代码示例。如果您正苦于以下问题:C++ Render::rotation方法的具体用法?C++ Render::rotation怎么用?C++ Render::rotation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Render
的用法示例。
在下文中一共展示了Render::rotation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: executer
//.........这里部分代码省略.........
champApp.desactiver_objets_type (FACE);
}
if ( ptr == ptr_catch_1 && champApp.don_contenu_objet_ID (ptr) == It.Ex("unselect those vertex") )
{
champApp.desactiver_objets_type (VERTICE);
}
if ( ptr == ptr_catch_1 && champApp.don_contenu_objet_ID (ptr) == It.Ex("unselect those edge") )
{
champApp.desactiver_objets_type (ARRETE);
}
if ( ptr == ptr_catch_1 && champApp.don_contenu_objet_ID (ptr) == It.Ex("zoom in") )
{
_3d z = {0.0, 0.0, 50.0};
rnd.zoom (z);
}
if ( ptr == ptr_catch_1 && champApp.don_contenu_objet_ID (ptr) == It.Ex("zoom out") )
{
_3d z = {0.0, 0.0, -50.0};
rnd.zoom (z);
}
} break;
case RELEASE_2 :
evenements.oublier_evenement();
break;
case MOVE_1 : {
if ( champApp.don_type_objet_ID (ptr_catch_1) == RENDER)
rnd.rotation((_3d) {(double)-evenements.veloc().y*0.025,(double)evenements.veloc().x*0.025, 0.0} );
evenements.oublier_evenement();
} break;
case MOVE_2 :
if ( RENDER == champApp.don_type_objet_ID (ptr_catch_2) )
{
temp.z = (double) -evenements.veloc().x*25;
rnd.zoom( temp );
}
evenements.oublier_evenement();
break;
case MOVE_3 : {
// if ( champApp.don_type_objet_ID (ptr_catch_1) == RENDER)
rnd.rotation((_3d) {(double)-evenements.veloc().y*0.025,(double)evenements.veloc().x*0.025, 0.0} );
evenements.oublier_evenement();
} break;
case FOCUS :
{
mState.x = evenements.veloc().x;
mState.y = evenements.veloc().y;
if (ptr != ancien_focus )
{
if ( champApp.don_etat_objet_id (ancien_focus) )
champApp.desactiver_objet_id (ancien_focus);
else