Refactored DirectX10 Graphics System