Is this possible to add a TPanel component in a glplane object?
So when rotatiing or scaling the glplane, rotating or scaling the TPanel inside?
Thank you
Is this possible to add a TPanel component in a glplane object?
So when rotatiing or scaling the glplane, rotating or scaling the TPanel inside?
Thank you
No. TPanel uses GDI (or whatever they call it now) while glplane uses OpenGL. GDI and OpenGL aren't compatible.
No signature provided yet.
If you are right then how the firemonkey do that...
There is an example in the DelphiXE2 that can do that ... but i don't have DelphiXE2 so i can see that..
And firemonkey uses part of glscene so i think there is a way... but i don't know it...
Thank you nuno martinez...
Firemonkey is a separate framework. All the components in FireMonkey have been rewritten from scratch and don't use VCL at all (on windows it uses DirectX, on other platforms OpenGL (ES)), so that's why it may work there. And it's based on VGScene afaik, and not on glscene (though I've heard they "stole" some code from glScene).
Well, you could draw the canvas of the TPanel (or all other TWinControls) to a Bitmap with e.g. BitBlt, and then feed that bitmap to OpenGL as a texture. This would allow you to display your TWinControl inside OpenGL. Though that won't be very fast.
Bookmarks