OpenGL plug-in for WinAmp
I''m trying to write an OpenGL visualisation plug-in for WinAmp. It all looked like it would be so easy, but I''ve already run into problems just opening and closing my plug-in''s window.
I''ve basically taken the example plug-in source from the WinAmp site, and replaced everything to do with opening, closing and rendering to the window with NeHe''s code.
When I start my plug-in, the window opens ok, but nothing is drawn to it (the previous contents of the screen is left inside my window). When I close the window/stop the plug-in, I am told first that the "Release Device Context Failed," then, "Could not release hWnd."
I''ve checked the values of hDC and hWnd when they are released, and they are still the same as when they were first obtained, so I don''t think I''m corrupting my variables or anything.
If anyone that knows anything about WinAmp plug-ins has a spare five minutes to help me out, I''d be extremely grateful! I''ve put the source-code I''ve written so far (for what it''s worth) on the web at the following address:
http://www.adamdawes.com/temp/OGLPluginTest.zip
There''s not much to it, so hopefully it won''t take too much of anybody''s time.
My thanks in advance,
Adam.
www.adamdawes.com
Adam. -- www.adamdawes.com -- www.icangames.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement