Updated resource_manager.
vertex render order.
Added base of debug class;