Primary surface saga!
Hi guys ^^
We are making a plugin for CubaseVST for our softsynth.
There was no problem with the Primary surface when only a single (windowed) instance was created at a time but now, we''ll have to handle things in some kind of MDI window where multiple instances will be found.
My question: what is the proper way to code this?
1) Having a SINGLE DirectDraw object and a single Primary surface for all instances (in one MDI window) or
2) Having a DirectDraw object and Primary surface for EACH instances in the MDI window always.
The point here is to remove what''s global outside (i.e. the bitmaps surfaces can be share with all instances). What about the DirectDraw object and the Primary surface?
Thanks!!
Illuna
You can only use one DirectDraw object and one Primary surface. These must be shared among your windows.
Every window should probably use their own renderbuffer though. The renderbuffers are then blitted to the primary buffer when they should be shown to the user. Remember to use the right clipper for each window.
- WitchLord
Every window should probably use their own renderbuffer though. The renderbuffers are then blitted to the primary buffer when they should be shown to the user. Remember to use the right clipper for each window.
- WitchLord
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement