Original Post
At the moment I am trying to make a DirectX example in ASM but I cannot understand some C++.
I don''t understand the syntax of those at all. Can you help me? I want to make most of this by myself. I just need to know how to make some of the above statements into asm.
Thanks for any help you might be able to give me. I don''t expect much help because this is so hard...
Cya,
Kenny
g_pd3dDevice->SetVertexShader( D3DFVF_CUSTOMVERTEX );
//and
CUSTOMVERTEX g_Vertices[] =
{
{ 150.0f, 50.0f, 0.5f, 1.0f, 0xffff0000, }, // x, y, z, rhw, color
{ 250.0f, 250.0f, 0.5f, 1.0f, 0xff00ff00, },
{ 50.0f, 250.0f, 0.5f, 1.0f, 0xff00ffff, },
};
//and
if( FAILED( g_pd3dDevice->CreateVertexBuffer( 3*sizeof(CUSTOMVERTEX),
0 /* Usage */, D3DFVF_CUSTOMVERTEX,
D3DPOOL_DEFAULT, &g_pVB ) ) )
return E_FAIL;
|