View Full Version : D3DTEXOPCAPS_ADDSIGNED
Firlefanz
11-01-2006, 08:15 AM
Hi!
I need to add some Caps to my program, I am using Addsigned now which does not work on every grafic card.
xenscreen.Device.GetDeviceCaps(caps);
booladdsigned:=caps.TextureCaps=D3DTEXOPCAPS_ADDSI GNED;
This does compile but not work.
How does it work, what do I do wrong?
Firle
JSoftware
11-01-2006, 08:57 AM
xenscreen.Device.GetDeviceCaps(caps);
booladdsigned:=(D3DTEXOPCAPS_ADDSIGNED in caps.TextureCaps);
Like this?
Clootie
11-01-2006, 12:19 PM
boolAddSigned := (caps.TextureCaps and D3DTEXOPCAPS_ADDSIGNED) <> 0;
Firlefanz
11-01-2006, 12:30 PM
Thanks a lot Guys!
:D
Firle
Firlefanz
11-01-2006, 04:44 PM
Hi!
In FormShow I do the following:
XenScreen.Init;
boolAddSigned := (XenScreen.FD3DDEVCAPS.TextureCaps and D3DTEXOPCAPS_ADDSIGNED) <> 0;
m_bCanDoAlphaBlend:= ((XenScreen.FD3DDEVCAPS.SrcBlendCaps and D3DPBLENDCAPS_SRCALPHA) <> 0) and
((XenScreen.FD3DDEVCAPS.DestBlendCaps and D3DPBLENDCAPS_INVSRCALPHA) <> 0);
m_bMaxTextures:=XenScreen.FD3DDEVCAPS.MaxTextureBl endStages;
m_bCanDoTempTexture:=XenScreen.FD3DDEVCAPS.Primiti veMiscCaps and D3DPMISCCAPS_TSSARGTEMP<>0;
boolAddSigned is always false, the other things are working (others are true and MaxTextures 8).
I have a Radeon 9700 Pro. What is the problem?
Thanks,
Firle
Clootie
11-01-2006, 05:46 PM
XenScreen.FD3DDEVCAPS.TextureOpCaps
Firlefanz
11-01-2006, 06:34 PM
Hi Clootie,
now it works. Thanks again! :D
Firle
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.