# Two TCastleControl on one form Simple demo that two TCastleControl instances within the same application work without problems, and share OpenGL resources. We open the same model, with same textures, in both controls: the OpenGL texture resources will be shared between two controls. Using [Castle Game Engine](https://castle-engine.io/). ## Building Compile by: - [CGE editor](https://castle-engine.io/manual_editor.php). Just use menu item _"Compile"_. - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory. - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `two_controls_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/documentation.php).