ensure all viewport geometry info is available after Director.init
ensure all viewport geometry info is available after Director.init


1) The members
 _window_virtual_width
 _window_virtual_height

 _offset_x
 _offset_y
 _usable_width
 _usable_height
 are always defined after Director.init

2) Partially covering for different behavior in pyglet when instantiating a Window
  pyglet 1.1.x don't allow keyword parameters width, height when passing the keyword parameter fullscreen=True, but pyglet trunk, also known as 1.2dev, allows that.
  cocos will accept width, height even if fullscreen=True is provided, but the exact behavior will not be exactly equal over the two pyglet versions:

 with 1.1.x passing explicit width, height and fullscreen in director.init will produce a viewport with virtual size as requested, physical size as your desktop resolution, and usable size consistent with those and the 'do_not_scale_window' kwarg

  with 1.2x in the same case we will pass all the parameters to pyglet, which will provide a fullscreen with resolution as near as posible, centered in the screen. window.width , window.height will match the active viewport area. The cocos Director geometry info will correctly build. 

 In both cases, if do_not_scale=False the virtual size will be as required in width , height. The physical resolution can be different.


3) the Director.init kwparam do_not_scale now persist as member .do_not_scale_window to allow modulation in some CocosNodes.


Pending:

1) reorder a litle Director.init code, add docstrings

2) (maybe) make the on_resize(width, height) reisued by Director pass the usable size, not the physical size

Alwnikrotikz/los-cocos