спасибо, строка проходит, но возникает ошибка здесь:
- Код: Выделить всё
d3dx.LoadSurfaceFromMemory Sur, ByVal 0, Rec, m(0&, 0&), D3DFMT_A8R8G8B8, 4& * Size, ByVal 0&, Rec, D3DX_FILTER_NONE, 0&
Модератор: Mikle
d3dx.LoadSurfaceFromMemory Sur, ByVal 0, Rec, m(0&, 0&), D3DFMT_A8R8G8B8, 4& * Size, ByVal 0&, Rec, D3DX_FILTER_NONE, 0&
D3DXColorScale MCol, LightColor, c
d3dDevice.SetTextureStageState 0&, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_DISABLE
d3dDevice.SetTextureStageState 0&, D3DTSS_TEXCOORDINDEX, 0&
d3dDevice.SetTextureStageState 0&, D3DTSS_ADDRESSU, D3DTADDRESS_WRAP
d3dDevice.SetTextureStageState 0&, D3DTSS_ADDRESSV, D3DTADDRESS_WRAP
d3dDevice.SetTextureStageState 0&, D3DTSS_COLOROP, D3DTOP_SELECTARG1
d3dDevice.SetTextureStageState 0&, D3DTSS_COLORARG1, D3DTA_TEXTURE
d3dDevice.SetTextureStageState 1&, D3DTSS_COLOROP, D3DTOP_DISABLE
d3dDevice.SetRenderState D3DRS_SRCBLEND, D3DBLEND_ZERO
d3dDevice.SetRenderState D3DRS_DESTBLEND, D3DBLEND_SRCCOLOR
d3dDevice.SetRenderState D3DRS_BLENDOP, D3DBLENDOP_ADD
d3dDevice.SetRenderState D3DRS_ALPHABLENDENABLE, 1&
d3dDevice.SetTextureStageState 0&, D3DTSS_ADDRESSU, D3DTADDRESS_CLAMP
d3dDevice.SetTextureStageState 0&, D3DTSS_ADDRESSV, D3DTADDRESS_CLAMP
d3dDevice.SetTextureStageState 0&, D3DTSS_TEXTURETRANSFORMFLAGS, D3DTTFF_COUNT2
d3dDevice.SetTextureStageState 0&, D3DTSS_TEXCOORDINDEX, D3DTSS_TCI_CAMERASPACEPOSITION
d3dDevice.SetTextureStageState 0&, D3DTSS_COLOROP, D3DTOP_SELECTARG1
d3dDevice.SetTextureStageState 0&, D3DTSS_COLORARG1, D3DTA_TEXTURE
d3dDevice.SetTextureStageState 1&, D3DTSS_COLOROP, D3DTOP_DOTPRODUCT3
d3dDevice.SetTextureStageState 1&, D3DTSS_COLORARG1, D3DTA_CURRENT
d3dDevice.SetTextureStageState 1&, D3DTSS_COLORARG2, D3DTA_TEXTURE
d3dDevice.SetTextureStageState 1&, D3DTSS_TEXCOORDINDEX, 0&
d3dDevice.SetTextureStageState 2&, D3DTSS_COLOROP, D3DTOP_MODULATE4X
d3dDevice.SetTextureStageState 2&, D3DTSS_COLORARG1, D3DTA_CURRENT
d3dDevice.SetTextureStageState 2&, D3DTSS_COLORARG2, D3DTA_DIFFUSE
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 46