public RagdollDesignerForm(RagdollDesigner rd) { Designer = rd; InitializeComponent(); MainLoop = new Timer(); MainLoop.Interval = 16; MainLoop.Tick += MainLoop_Tick; Size size = panel1.Size; Point position = panel1.Location; panel1.Hide(); GLCont = new GLControl(GraphicsMode.Default, 4, 3, GraphicsContextFlags.ForwardCompatible); GLCont.Location = position; GLCont.Size = panel1.Size; GLCont.Load += GLCont_Load; Controls.Add(GLCont); }
static void Main(string[] args) { RagdollDesigner rd = new RagdollDesigner(); rd.Start(); }