Sign in to follow this  
Phong Tran

External 'drawScene' to SDL

Recommended Posts

Hi! I try to send a few glVertex data to my SDL window from the API of maya. The SDL windows are initialized during the 'initialize' function of the plugin. The glVertex data is gathered in another function (called 'compute') of the same class as the initialize function. Since I cannot put all the SDL and OpenGL code into one function due to the API, I try to render glVertexes into an SDL window that has been initialized in a different class function, which obviously doesn't work. So is there a way to send glVertex data to my SDL window that has been intitialized in a different function? I'd appreciate any help, since I'm still a noob in programming Regards, Phong

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

Sign in to follow this