Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 744 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Programming Engine window startup size..? #455960
11/04/15 17:34
11/04/15 17:34
Joined: Aug 2003
Posts: 180
Reactor Core
NeutronBlue Offline OP
Member
NeutronBlue  Offline OP
Member

Joined: Aug 2003
Posts: 180
Reactor Core
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

Re: Programming Engine window startup size..? [Re: NeutronBlue] #455962
11/04/15 18:30
11/04/15 18:30

M
Malice
Unregistered
Malice
Unregistered
M




Re: Programming Engine window startup size..? [Re: ] #455970
11/05/15 00:25
11/05/15 00:25
Joined: Aug 2003
Posts: 180
Reactor Core
NeutronBlue Offline OP
Member
NeutronBlue  Offline OP
Member

Joined: Aug 2003
Posts: 180
Reactor Core
Thanks Malice.
<sigh> I RTM'd..! But didn't see them.
Feel like one of those smurfs you killed today eek

Thanks again!

~Neut


Dreaming ain't Doing..!
<sigh> Darn semicolons - I always manage to miss at least 1..!
Re: Programming Engine window startup size..? [Re: NeutronBlue] #456176
11/13/15 10:08
11/13/15 10:08
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
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...


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: Programming Engine window startup size..? [Re: EpsiloN] #456184
11/13/15 16:18
11/13/15 16:18

M
Malice
Unregistered
Malice
Unregistered
M



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


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1