Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 792 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
win32 Controls? #302149
12/16/09 23:45
12/16/09 23:45
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline OP
Serious User
DJBMASTER  Offline OP
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Hi, how can I continuously render a win32 control in the engine?

Thanks.

Last edited by DJBMASTER; 12/17/09 00:14.
Re: win32 Controls? [Re: DJBMASTER] #302212
12/17/09 16:47
12/17/09 16:47
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I haven't tried it yet, but am pretty sure that DirectX won't take any care about win32 controls. So you must pause the renderer by resetting SHOW when you want to use controls.

Re: win32 Controls? [Re: jcl] #302337
12/18/09 17:00
12/18/09 17:00
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline OP
Serious User
DJBMASTER  Offline OP
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
hmmm? Can that be done currently, or does the engine have to have an 'update'? I'm not sure what you mean by 'resetting SHOW'.

Re: win32 Controls? [Re: DJBMASTER] #302542
12/20/09 11:20
12/20/09 11:20
Joined: Jul 2008
Posts: 894
T
TechMuc Offline
User
TechMuc  Offline
User
T

Joined: Jul 2008
Posts: 894
Pause the engine renderer is either possible by just not calling engine_frame(); or (probably what jcl intended to say) by resetting the SHOW flag of all used views.

Re: win32 Controls? [Re: TechMuc] #302600
12/20/09 19:04
12/20/09 19:04
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline OP
Serious User
DJBMASTER  Offline OP
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Well I'm doing this in lite-c, not using the SDK, so 'engine_frame' can't be used. I might be being thick here, but what view? I'm not loading a level, I'm just starting with a blank 2D window. Is 'camera' active even without a level?

Re: win32 Controls? [Re: DJBMASTER] #302603
12/20/09 19:21
12/20/09 19:21
Joined: Jul 2008
Posts: 894
T
TechMuc Offline
User
TechMuc  Offline
User
T

Joined: Jul 2008
Posts: 894
Camera is active.

reset(camera,SHOW);

shall work, and prevent the engine from rendering.

Re: win32 Controls? [Re: TechMuc] #302679
12/21/09 11:58
12/21/09 11:58
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
The camera view is only active when a level is loaded. But for disabling the renderer you also must not show panels, texts, and background color. Reset the SHOW flags of background panels, if any, and set screen_color to 0,0,0.

Re: win32 Controls? [Re: jcl] #302747
12/21/09 19:14
12/21/09 19:14
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline OP
Serious User
DJBMASTER  Offline OP
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
ooo, it's not possible to use win32 controls and other engine objects, eg Panels, at the same time? Yet it's possible to add other win32 stuff like menus which don't affect the renderer.

I don't know much about the interals of DirectX, i thought the controls would just 'sit' on top of dx, like overlays.

Re: win32 Controls? [Re: DJBMASTER] #302803
12/22/09 12:26
12/22/09 12:26
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, this is possible (I suppose) as long as they don't overlap. Where they overlap, DirectX wins.

Re: win32 Controls? [Re: jcl] #302811
12/22/09 13:42
12/22/09 13:42
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
opacity at zero would not count as getting rendered in this case, right?


Moderated by  old_bill, Tobias 

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