Jump to content

  • Log In with Google      Sign In   
  • Create Account


Wolftein

Member Since 13 Jun 2011
Offline Last Active Dec 15 2013 01:35 PM

#5094722 This beauty...

Posted by Wolftein 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 Wolftein 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:

(Interface)
https://github.com/Ghrum/Ghrum/blob/master/include/Event/IEventManager.hpp

(Implementation)
https://github.com/Ghrum/Ghrum/blob/master/include/Event/EventManager.hpp
 




PARTNERS