Jump to content
  • Advertisement
Sign in to follow this  
floatingwoods

OpenGL Calling opengl functions from a plugin

This topic is 2030 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

Hello,

 

I have an application that creates a rendering window and renders to it. That works fine.

The application loads at start-up various plugins. Now I would like to allow the plugins to render some of their stuff into the rendering window of the main application.

 

But it doesn't work. I proceed as following: once the main application has set-up everything for rendering, I callback the plugins, that call some openGl functions, typically rendering a triangle.

 

What am I doing wrong?

 

I suspect that the plugins are loading the openGl library a second time into memory.

 

How can I achive what I want to achieve?

 

Any help is appreciated!

Share this post


Link to post
Share on other sites
Advertisement

An OpenGL context is tied to a thread, so as long as OpenGL calls are made from the thread that has the context active it shouldn't matter where in the logical structure of your application the call is coming from. I would start by ensuring that there are no threads that mess up the active context and that the rendering context is indeed active inside your plugin.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!