Results 1 to 2 of 2

Thread: Parameters for SetRenderState ?

  1. #1

    Parameters for SetRenderState ?

    Please, I make similar effect as DrawAlpha(), DrawSub(), Draw() and DrawAdd(). Anybody get to know how set parameters for SetRenderState for identical graphic effect? PLEASE FOR HELP !!!

    now using sequences in DirectX 7 from DelphiX:
    add
    [pascal] SetRenderState(D3DRENDERSTATE_ALPHABLENDENABLE, 1);
    SetRenderState(D3DRENDERSTATE_SRCBLEND, Integer(D3DBLEND_ONE));
    SetRenderState(D3DRENDERSTATE_DESTBLEND, Integer(D3DBLEND_ONE));[/pascal]
    or
    mul
    [pascal] SetRenderState(D3DRENDERSTATE_ALPHABLENDENABLE, 1);
    SetRenderState(D3DRENDERSTATE_SRCBLEND, Integer(D3DBLEND_ZERO));
    SetRenderState(D3DRENDERSTATE_DESTBLEND, Integer(D3DBLEND_SRCCOLOR));[/pascal]

    Very thanks.
    Ijcro.

  2. #2

    Parameters for SetRenderState ?

    Sorry, I am stupid.

    Problem was in bad parameter passed trought RGBA_MAKE() into color vertices. Sorry.
    Ijcro.

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
  •