Skip to main content
gamedev.net
🔒 Locked

DLL question

Started by Z01 Jan 31, 2003 at 4:59 PM 1 replies 300+ views
Original Post
Z01
Z01
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?
niyaw
niyaw
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.
Z01
Z01
Ok, thanks for taking the time to reply niyaw!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.