Archived

This topic is now archived and is closed to further replies.

Pinky

Interface?

Recommended Posts

Hi !

Well, the biggest problem is that the textures are bilinear filtered. If you want to do a 3D Interface use Power Render. If you want to do a "simple" 2D Interface I would use DirectDraw.
You can initialize and start Power Render as normal. Then, set the viewport to 0,0,0,0 or if you want a 3D preview, set it to the position in the interface.
The rest of the screen is a DirectDraw Surface (I think it's wgtbackbuffer or so), which you can modify. Check out winutil.c (function resize). There you will find all of Power Render internals regarding DirectX.

Before I went to MFC to code my PRO-Editor I used the same method to do all my windows and button stuff.

Share this post


Link to post
Share on other sites
Hi,
I am trying to create an interface.
I am using ShowOverlay (from the example),
PRGFX_PutTexture.

The problem is that PR enlarge the texture
to power of 2 (I think).

Anyway the result is that the panel looks distorted.

Any ideas?


------------------
Pinky.
ICQ 42026534

Share this post


Link to post
Share on other sites