❄️🎁⛄ The Winter Games Tournament is Live! 🎄🎅❄️
Jump to content

Recommended Posts

Posted

Hello, I've bought the professional edition of Leadwerks and I'm starting with the help file. I can see that the first step is to create a Window object and assign to it a Context object where everything its drawn.

I am a Windows winapi programmer and I would like to know if I can redirect the rendering from the Leadwerks Context object to a GDI device context (HDC) so I can render the output in a custom window created by me or in anywhere else where I want to render the content. If this isn't possible I am at the wrong place. Thanks in advance.

Posted

You actually can. It's not part of the official API but there is a command that creates a custom window based on a HWND you provide. This is how the editor works. If you check Window.win32.h you will find the command.

Note this means you are responsible for all window and keyboard input / events.

Let's build cool stuff and have fun. :)

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.

×
×
  • Create New...