Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. function qt_search(qt as QuadTree ptr, result as QTresult ptr, area as Rect) as boolean
  2. if(result->n = 0) then
  3. 'First search entry point
  4. #define SMAS 1024 'Search memory allocation size
  5. result->n = new QTnode[SMAS]
  6. end if
  7.  
  8. dim as boolean ret = false
  9.  
  10. if(rectIntersects(@area, @qt->boundary)) then
  11.  
  12. end if
  13.  
  14. return ret
  15. end function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement