PDA

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 &#58;= &#40;XenScreen.FD3DDEVCAPS.TextureCaps and D3DTEXOPCAPS_ADDSIGNED&#41; <> 0;
m_bCanDoAlphaBlend&#58;= &#40;&#40;XenScreen.FD3DDEVCAPS.SrcBlendCaps and D3DPBLENDCAPS_SRCALPHA&#41; <> 0&#41; and
&#40;&#40;XenScreen.FD3DDEVCAPS.DestBlendCaps and D3DPBLENDCAPS_INVSRCALPHA&#41; <> 0&#41;;
m_bMaxTextures&#58;=XenScreen.FD3DDEVCAPS.MaxTextureBl endStages;
m_bCanDoTempTexture&#58;=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