Jump to content

  • Log In with Google      Sign In   
  • Create Account





- - - - -

Abstraction

Posted by , 01 October 2011 · 424 views

I've spent my coding time the last couple of days refactoring my Renderer class. Up until this point, all the D3D code was in Renderer. It worked, but it was difficult to easily pick out what was going on when looking at the code. So I decided to create wrapper classes for the various D3D11 interfaces I was using. My code is much cleaner now, and I can more easily see and isolate what's being done where.

It's not a complete refactor yet--there are still a couple vertex buffers I need to deal with, and some minor bits of the draw routine. But I'm pleased with it. Also, there's some DirectXMath library stuff still going on in the Renderer class that I'm not sure if I want to try to encapsulate or not. I'd like to be able to completely encapsulate/abstract away DrectX from the Renderer class, but I'd just have to replace it with another math library. I'm not convinced it's worth the effort.

I hope to have something worthy of screenshotting soon....






September 2016 »

S M T W T F S
    123
45678910
11121314151617
18192021222324
252627 28 2930 

Recent Entries

Recent Comments

Recent Entries

Recent Comments

PARTNERS