@@ -209,15 +209,15 @@ static void dbg_draw_state_end( CPhysicsShell *shell )
209209 if ( dbg_imotion_draw_velocity )
210210 {
211211 DBG_OpenCashedDraw ();
212- shell->dbg_draw_velocity ( dbg_imotion_draw_velocity_scale, D3DCOLOR_ARGB ( 100 ,255 , 0 , 0 ) );
212+ shell->dbg_draw_velocity ( dbg_imotion_draw_velocity_scale, color_argb ( 100 ,255 , 0 , 0 ) );
213213 // shell->dbg_draw_force( 0.01, color_xrgb( 0, 0, 255 ) );
214214 DBG_ClosedCashedDraw ( 50000 );
215215 }
216216 if (dbg_imotion_collide_debug)
217217 {
218218#ifdef DEBUG
219219 DBG_OpenCashedDraw ();
220- shell->dbg_draw_geometry ( 0.02 , D3DCOLOR_ARGB ( 255 , 255 , 255 , 255 ) );
220+ shell->dbg_draw_geometry ( 0.02 , color_argb ( 255 , 255 , 255 , 255 ) );
221221 DBG_ClosedCashedDraw ( 50000 );
222222#endif
223223 }
@@ -293,7 +293,7 @@ void imotion_position::state_end( )
293293#if 0
294294
295295 DBG_OpenCashedDraw();
296- shell->dbg_draw_geometry( 0.02, D3DCOLOR_ARGB ( 255, 0, 255, 0 ) );
296+ shell->dbg_draw_geometry( 0.02, color_argb ( 255, 0, 255, 0 ) );
297297 DBG_DrawBones( *shell->get_ElementByStoreOrder( 0 )->PhysicsRefObject() );
298298 DBG_ClosedCashedDraw( 50000 );
299299
@@ -318,7 +318,7 @@ void imotion_position::state_end( )
318318#if 0
319319
320320 DBG_OpenCashedDraw();
321- shell->dbg_draw_geometry( 0.02, D3DCOLOR_ARGB ( 255, 0, 0, 255 ) );
321+ shell->dbg_draw_geometry( 0.02, color_argb ( 255, 0, 0, 255 ) );
322322 DBG_DrawBones( *shell->get_ElementByStoreOrder( 0 )->PhysicsRefObject() );
323323 DBG_ClosedCashedDraw( 50000 );
324324
@@ -543,7 +543,7 @@ float imotion_position::move( float dt, IKinematicsAnimated& KA )
543543 shell->CollideAll ();
544544 interactive_motion_diagnostic ( make_string ( " move (to ragdoll): deppth= %f" , depth ).c_str () );
545545 DBG_OpenCashedDraw ();
546- shell->dbg_draw_geometry ( 0.02 , D3DCOLOR_ARGB ( 255 , 255 , 0 ,255 ) );
546+ shell->dbg_draw_geometry ( 0.02 , color_argb ( 255 , 255 , 0 ,255 ) );
547547 DBG_ClosedCashedDraw ( 50000 );
548548 }
549549#endif
@@ -576,7 +576,7 @@ float imotion_position::motion_collide( float dt, IKinematicsAnimated& KA )
576576 // interactive_motion_diagnostic( make_string( " motion_collide collided0: deppth= %f", depth ).c_str() );
577577 interactive_motion_diagnostic ( make_string ( " motion_collide 1: stoped: colide: %s, depth %f" , collide_diag ().c_str (), depth ).c_str () );
578578 DBG_OpenCashedDraw ();
579- shell->dbg_draw_geometry ( 0.02 , D3DCOLOR_ARGB ( 255 , 0 , 255 , 0 ) );
579+ shell->dbg_draw_geometry ( 0.02 , color_argb ( 255 , 0 , 255 , 0 ) );
580580 DBG_ClosedCashedDraw ( 50000 );
581581 }
582582#endif
@@ -591,7 +591,7 @@ float imotion_position::motion_collide( float dt, IKinematicsAnimated& KA )
591591 {
592592 interactive_motion_diagnostic ( make_string ( " motion_collide collided1: deppth= %f" , depth ).c_str () );
593593 DBG_OpenCashedDraw ();
594- shell->dbg_draw_geometry ( 0.02 , D3DCOLOR_ARGB ( 255 , 0 , 255 , 255 ) );
594+ shell->dbg_draw_geometry ( 0.02 , color_argb ( 255 , 0 , 255 , 255 ) );
595595 DBG_ClosedCashedDraw ( 50000 );
596596 }
597597#endif
@@ -611,7 +611,7 @@ float imotion_position::motion_collide( float dt, IKinematicsAnimated& KA )
611611 {
612612 interactive_motion_diagnostic ( make_string ( " motion_collide collided2: deppth= %f" , depth ).c_str () );
613613 DBG_OpenCashedDraw ();
614- shell->dbg_draw_geometry ( 0.02 , D3DCOLOR_ARGB ( 255 , 0 , 255 , 0 ) );
614+ shell->dbg_draw_geometry ( 0.02 , color_argb ( 255 , 0 , 255 , 0 ) );
615615 DBG_ClosedCashedDraw ( 50000 );
616616 }
617617#endif
@@ -635,7 +635,7 @@ float imotion_position::motion_collide( float dt, IKinematicsAnimated& KA )
635635 shell->CollideAll ();
636636 interactive_motion_diagnostic ( make_string ( " motion_collide restore: %f " , depth ).c_str () );
637637 DBG_OpenCashedDraw ();
638- shell->dbg_draw_geometry ( 0.02 , D3DCOLOR_ARGB ( 255 , 255 , 0 , 0 ) );
638+ shell->dbg_draw_geometry ( 0.02 , color_argb ( 255 , 255 , 0 , 0 ) );
639639 DBG_ClosedCashedDraw ( 50000 );
640640 }
641641#endif
0 commit comments