Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 13 Jun 2011
Offline Last Active Mar 04 2016 11:02 AM

#5094722 This beauty...

Posted by on 17 September 2013 - 01:17 PM

Who ever coded that doesn't know what "funroll-all-loops" is :P and tried to achieve same result by hand.

#5093062 Separating API specific code from the rest of the framework

Posted by on 10 September 2013 - 12:35 PM

You should separate implementation from interface. DirectX and OpenGL are implementation so should be in a file named like GLVertexBuffer, DXVertexBuffer or simple as GLMesh, DXMesh, etc. That allows you to create an attachable library, you could add dx or opengl shared library at runtime. The only downside is that interfaces will produce vtables, but thats not a big deal.

A can give you an example of how i do it: