Jump to content

LEControl for rendering leadwerks on c++ windows forms.


Von04
 Share

Recommended Posts

File Name: LEControl for rendering leadwerks on c++ windows forms.

File Submitter: Von04

File Submitted: 22 Jan 2012

File Category: Tools

 

This is a custom control for rendering leadwerks to a custom buffer using an opengl control on a c++/cli windows form. There is a sample project created with c++ 2008 express. The control was also tested on c++ 2010 express and professional versions and ran fine. This control has also been tested and works with c# windows forms. The sample project shows the custom control already attached to a form, but if you want to add the control to another form then follow these rules:

 

1. Add the LEControll.Dll file to your projects release/debug folder.

 

2. With your form project open, open the ToolBox and right-click.

 

3. Select Choose Items.

 

4. When the Choose Items dialog pops up (which usually takes a long time) select the Browse... button.

 

5. Then go to your projects release/debug folder and select LEControl.Dll.

 

6. A new control called LEControl should now show up and be checked. Click OK.

 

7. Now a new control is added to your Toolbox called LEControl.

 

8. Click and drag a LEControl onto your windows form.

 

9. Highlight your newly created control and select the event properties ( the little lightning bolt icon).

 

10. Go to the event called Paint and double click the empty value box.

 

11. Under the newly created function is your rendering loop. Add all code here that would normally appear in

in your loop. Don't worry about adding the code for actual rendering of the world or the framework for the

control already has this code built in.

 

12. Go back to the designer and find the Resize event. Double click. Inside the newly created function add

line: lecontrol1->ResizeBuffers(); This is assuming you didn't change the name of the control.

lecontrol1 is the default name of the control.

 

13. Please see the included example project for setting up the main forms constructor.

 

 

There are some things I'm still working on and will update as needed, but this is definitely a working control.

If you encounter any bugs please post them here.

 

Click here to download this file

3d world studio. 3ds Max 8. GTX 260. Visual Studio 2010. Dual Core 2.6 Mhz processor.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...