Skip to main content
gamedev.net
🔒 Locked

dx gui

Started by Syrillix Aug 10, 2002 at 11:09 PM 1 replies 300+ views
Original Post
Syrillix
Syrillix
hi all, im in the middle of making a gui in dx8... for the windows im trying to texture a quad to the screen. but i need to map the corners to the screen size but every time i do it i get some huge window and all i see is a small part in the middle.. any suggestions? Get busy livin'' or get busy dyin''... - Shawshank Redemption
Get busy livin' or get busy dyin'... - Shawshank RedemptionIf a man is talking in the forest, and no woman is around to hear him, is he still wrong? - UnknownFulcrum
DrunkenHyena
DrunkenHyena
Not much info to go on, but I''ll take a shot.

Using untransformed vertices (x,y,z, but no rhw?, FVF:D3DFVF_XYZ) and your coordinates have the top left corner at 0,0,0 or something similar?

Untransformed vertices are in model space. You use the World matrix to map the to world space. To do a 2D display use Transformed vertices (D3DFVF_XYZRHW) which are already in screen space, then you can use standard screen coordinates.

Stay Casual,

Ken
Drunken Hyena
Stay Casual,KenDrunken Hyena</FON
Trip99
Trip99
OR use the d3dx sprite interface - it is perfect for UI purposes and, in my experience, is very quick.
------------------------See my games programming site at: www.toymaker.info

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.