Hi all,

Im not sure if to post this in DX or GL but i am trying to figure out what the following DX commands are in GL ::

D3DDEV8.SetTextureStageState(0, D3DTSS_COLORARG1, D3DTA_TEXTURE);
D3DDEV8.SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_MODULATE);

D3DDEV8.SetTextureStageState(1, D3DTSS_COLORARG1, D3DTA_TEXTURE);
D3DDEV8.SetTextureStageState(1, D3DTSS_COLORARG2, D3DTA_CURRENT);
D3DDEV8.SetTextureStageState(1, D3DTSS_COLOROP, D3DTOP_MODULATE);
d3ddev8.SetTextureStageState(1, D3DTSS_ADDRESSU, D3DTADDRESS_CLAMP);
d3ddev8.SetTextureStageState(1, D3DTSS_ADDRESSV, D3DTADDRESS_CLAMP);

d3ddev8.SetRenderState(D3DRS_CULLMODE, D3DCULL_CCW);
d3ddev8.SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE);

And im guessing this one sets a global material setting or something ::

m.Diffuse.r:=1;m.Diffuse.g:=1;m.Diffuse.b:=1;m.Dif fuse.a:=1;
m.Ambient:=m.Diffuse;
m.Specular:=m.Diffuse;
m.Emissive:=m.Diffuse;

d3ddev8.SetMaterial(m);

Thanx for any help....