Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

DLL question

This topic is 5589 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This question is sort of openGL related, but its has more to do with DLLs in general. Something is confusing me. I have something like this: -renderer in a DLL that uses the openGL DLL -gui in a DLL that uses the openGL DLL -particle system in a DLL that uses the openGL DLL -plus my main program uses the OpenGL DLL also I know each DLL has its own heap, but will they share texture ids which are stored in the openGL DLL (I think)? I''m curious if I call glBindTexture(id) in say my particle system DLL or in my main app for a texture initially bound in my renderer DLL will it will recoginize the id? Or do I need to bind the texture that was created in the renderer DLL always in the renderer DLL?

Share this post


Link to post
Share on other sites
Advertisement
since there is only one opengl32.dll loaded into your process, its resources are shared among all modules within the same process. you can pass the texture ids around freely.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!