Programming Engine window startup size..?

Posted By: NeutronBlue

Programming Engine window startup size..? - 11/04/15 17:34

How can I start the 3DGS engine, and program the window size and position? I'm working on an project that I'd like to have the engine window as a "tiled" window overlaid on my main app form (along with other windows).
Or, is there way to have the engine itself render inside an application window? I don't know C++, so I'd prefer VB or C# code. Actually, *any* code would help..!

Thanks in advance.
~Neut
Posted By: Anonymous

Re: Programming Engine window startup size..? - 11/04/15 18:30

http://www.conitec.net/beta/awindow_focus.htm
http://www.conitec.net/beta/window_pos.htm
http://www.conitec.net/beta/avideo_window.htm
http://www.conitec.net/beta/ascreen_size.htm
http://www.conitec.net/beta/video_alpha.htm
http://www.conitec.net/beta/hWnd.htm
http://www.conitec.net/beta/hWndTarget.htm

Steps - Open manual -> Engine Variables section -> open Video section -> read and experiment

Have fun
Mal
Posted By: NeutronBlue

Re: Programming Engine window startup size..? - 11/05/15 00:25

Thanks Malice.
<sigh> I RTM'd..! But didn't see them.
Feel like one of those smurfs you killed today eek

Thanks again!

~Neut
Posted By: EpsiloN

Re: Programming Engine window startup size..? - 11/13/15 10:08

You can set the window size and position right after you open the engine, before any frames have been rendered. See the examples in the sdk_engine folder. They show how to open the engine and set a resolution...

Another thing, not sure about this, but from what I've learned in the past 10 days, you can create a device context, assign a custom bitmap to it and copy the engine's picture into your custom bitmap, which will show the engine in your own custom window... You can get a handle to the DC through the engine window's title name.

But, this involves DirectX programming, not that it is hard, but you have to learn it...

PS.: All this is C++, I'm not sure if it can be done in other languages, but C++ is similar in syntax to lite-C...
Posted By: Anonymous

Re: Programming Engine window startup size..? - 11/13/15 16:18

Quote:
Thanks Malice.
<sigh> I RTM'd..! But didn't see them.
Feel like one of those smurfs you killed today


Opps sorry, I replied a bit roughly.

Quote:
But, this involves DirectX programming, not that it is hard, but you have to learn it...

PS.: All this is C++, I'm not sure if it can be done in other languages, but C++ is similar in syntax to lite-C


PM [Req] Any tutorials for understanding direct-x and c++<->lite-c would be welcomed in the future. P.S. even if it's just a quick and dirty personal tutorial PM'd to me..
© 2024 lite-C Forums