PDA

View Full Version : Parameters for SetRenderState ?



ijcro
13-09-2004, 06:17 AM
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
SetRenderState(D3DRENDERSTATE_ALPHABLENDENABLE, 1);
SetRenderState(D3DRENDERSTATE_SRCBLEND, Integer(D3DBLEND_ONE));
SetRenderState(D3DRENDERSTATE_DESTBLEND, Integer(D3DBLEND_ONE));
or
mul
SetRenderState(D3DRENDERSTATE_ALPHABLENDENABLE, 1);
SetRenderState(D3DRENDERSTATE_SRCBLEND, Integer(D3DBLEND_ZERO));
SetRenderState(D3DRENDERSTATE_DESTBLEND, Integer(D3DBLEND_SRCCOLOR));

Very thanks.

ijcro
19-09-2004, 07:07 PM
Sorry, I am stupid.

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