Results 1 to 7 of 7

Thread: D3DTEXOPCAPS_ADDSIGNED

  1. #1

    D3DTEXOPCAPS_ADDSIGNED

    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

  2. #2

    D3DTEXOPCAPS_ADDSIGNED

    [pascal]xenscreen.Device.GetDeviceCaps(caps);
    booladdsigned:=(D3DTEXOPCAPS_ADDSIGNED in caps.TextureCaps);[/pascal]
    Like this?
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  3. #3

    D3DTEXOPCAPS_ADDSIGNED

    [pascal]boolAddSigned := (caps.TextureCaps and D3DTEXOPCAPS_ADDSIGNED) <> 0;
    [/pascal]
    There are only 10 types of people in this world; those who understand binary and those who don't.

  4. #4

  5. #5

    D3DTEXOPCAPS_ADDSIGNED

    Hi!

    In FormShow I do the following:

    Code:
      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.MaxTextureBlendStages;
      m_bCanDoTempTexture&#58;=XenScreen.FD3DDEVCAPS.PrimitiveMiscCaps and D3DPMISCCAPS_TSSARGTEMP<>0;
    boolAddSigned is always false, the other things are working (others are true and MaxTextures .

    I have a Radeon 9700 Pro. What is the problem?

    Thanks,
    Firle

  6. #6

    D3DTEXOPCAPS_ADDSIGNED

    XenScreen.FD3DDEVCAPS.TextureOpCaps
    There are only 10 types of people in this world; those who understand binary and those who don't.

  7. #7

    D3DTEXOPCAPS_ADDSIGNED

    Hi Clootie,

    now it works. Thanks again!

    Firle

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •