GetShapeDebug
State = GetShapeDebug(ShapeIndex)
 
Parameters:

    ShapeIndex = The Index of the shape you wish to query
Returns:

    State = The debug state (0=OFF, 1= ON)
 

     The GetShapeDebug function returns a shapes current debug mode. The function will return 1 when debug mode is enabled and 0 when it's off. It's off by default.



FACTS:


      * None



Mini Tutorial:


     


  
  
; Limit the Program to 75 frames per second or less
  SetFPS 75
  
; Create a 6 sized shape polygon with 100 unit radius
  Shape=NewConvexShape(100,6)
  
; Turn debug mode on for this shape
  ShapeDebug Shape,on
  
  
; STart of Test programs main loop
  Do
     
   ; Clear the screen
     Cls RGB(0,0,0)
     
     
   ; Rotate Shapes vertex
     Angle#=WrapAngle(Angle#,1)
     RotateShape Shape,Angle#,1
     
   ; Draw a filled shape in the center
   ; of screen
     DrawShape Shape,400,300,2
     
   ; Check if the space key is pressed ?
     If SpaceKey()=true
        
      ; if the space key is down flip the shapes
      ; debug state
        ShapeDebug Shape,1-GetShapeDebug(Shape)
        
      ; flush the keyboard input
        FlushKeys
        
     EndIf
     
   ; show the screen to the user
     Sync
     
   ; jump back to the do statement to keep program
   ; running
  Loop
  
  




 
Related Info: DrawShape | LineHitShape | PointHitShape | ShapeDebug | ShapeHitShape :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com