flashtexture sample for d3d9?

DLL Edition of the F-IN-BOX
stevechoi
Posts: 2
Joined: Sat Feb 13, 2010 2:06 pm

flashtexture sample for d3d9?

Postby stevechoi » Sat Feb 13, 2010 2:10 pm

Hello.

can I get flashtexture sample for d3d9 ?
I could not covert your sample code into d3d9.


thanks.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Mon Feb 15, 2010 7:17 am

Thank you for your question.

What problems you have with converting?

Thank you.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

stevechoi
Posts: 2
Joined: Sat Feb 13, 2010 2:06 pm

Postby stevechoi » Mon Feb 15, 2010 1:38 pm

Softanics wrote:Thank you for your question.

What problems you have with converting?

Thank you.


how to convert the following codes?

if (FAILED(g_PDIRECT3DDEVICE8->CreateVertexBuffer(sizeof(Vertices),
0,
D3DFVF_MYVERTEX,
D3DPOOL_DEFAULT, &g_PDIRECT3DVERTEXBUFFER9)))
return FALSE;


VOID* pVertices;

if (FAILED(g_PDIRECT3DVERTEXBUFFER9->Lock(0, sizeof(Vertices), (BYTE**)&pVertices, 0)))
return FALSE;

g_PDIRECT3DDEVICE9->SetTextureStageState(0, D3DTSS_MAGFILTER, CurrentFilter);
g_PDIRECT3DDEVICE9->SetTextureStageState(0, D3DTSS_MINFILTER, CurrentFilter);
g_PDIRECT3DDEVICE9->SetTextureStageState(0, D3DTSS_MIPFILTER, CurrentFilter);


g_PDIRECT3DDEVICE9->SetStreamSource(0, g_PDIRECT3DVERTEXBUFFER9, sizeof(MYVERTEX));
g_PDIRECT3DDEVICE9->SetVertexShader(D3DFVF_MYVERTEX);



thanks

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Sun Feb 21, 2010 11:30 am

I've updated FlashTexture.cpp, please check it:

http://f-in-box.com/TEMP/C84F8AD0-2E7C- ... exture.cpp

Also we will include the updated FlashTexture.cpp into next update of the component.

Thank you.
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 18 guests