Jump to content

Rendering to device context (HDC)


fasecero
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

My job is to make tools you love, with the features you want, and performance you can't live without.

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...