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

Eclipse formatter for java ending braces -

ruby - Nesting modules inside of a Rails eninge gem -

java - Are there any classes that implement javax.persistence.Parameter<T>? -