c++ - Quadtree and size of region in constructor -


i reading nice tutorial quadtree this site , question.

when create quadtree have pass in constructor bounds of screen, if map's size 10000 x 10000px , game screen 1280 x 720px, should pass?

quadtree quad = new quadtree(0, new rectangle(0,0,600,600)); 

so in example screen region 600 x 600px. , it's working until player go further 600x600

i'm using c++ sfml 2.0, sf::view center player position.

you should pass bounds of whole map, regardless of whether parts of region can seen or not.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -