Jump to content
  • Advertisement
babaliaris

OpenGL A good 3D math library in C for OpenGL?

Recommended Posts

41 minutes ago, babaliaris said:

'm not sure what you mean,

I mean that all your compiled code will not exids 100mb. Anything else is a textures meshes and so on data that stored into separate data files,  not into executables

Share this post


Link to post
Share on other sites
Advertisement
7 minutes ago, Fulcrum.013 said:

I mean that all your compiled code will not exids 100mb. Anything else is a textures meshes and so on data that stored into separate data files,  not into executables

You are right on that, but still, a dynamic extension is needed for my game which can be implemented with dlls.

Share this post


Link to post
Share on other sites
11 hours ago, babaliaris said:

You are right on that, but still, a dynamic extension is needed for my game which can be implemented with dlls.

it is 2 options to use DLL - import a separate functions from it and import a interfaces using COM. Both seriously affect perfomance,  becouse  any call of DLL function is indirect i.e. same as virtual call and can not be inlined. So best way to use it for pluggable modules is to break system to huge closed subsystems that require intermodular calls very rare. For example physic engine into one DLL, render into another DLL and scene into main module.  As result you can just export only function from each of dlls and call it once per frame. Internal implementation of functions inside dll can use inlining, clasess and other advantages of C++ for anything that not require a interdll calls.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!