RealBreezer
Newcomer
Hello everyone.
I started picking up c# to learn directx9.0
Everything goes fine and I'm doing some tutorials... though I run into problems at a certain moment where they want to set the position of a vertex.
They use the "SetPosition" method... though if I try I get the bug saying that this method doesn't exist.
as you can tell from the code, I found a workaround for this.
But now I'm at the point where they start talking 'bout normals... and SetNormal doesn't exist either.
My question then... has these methods been removed? Or is it likely that I downloaded the wrong SDK. (I've the summer one-->dxsdk_sum2004.exe).
Thx in advance.
I started picking up c# to learn directx9.0
Everything goes fine and I'm doing some tutorials... though I run into problems at a certain moment where they want to set the position of a vertex.
They use the "SetPosition" method... though if I try I get the bug saying that this method doesn't exist.
Code:
CustomVertex.PositionNormalColored[] verts = new Microsoft.DirectX.Direct3D.CustomVertex.PositionNormalColored[3];
//vert 0
verts[0].X=0.0f;
verts[0].Y=1.0f;
verts[0].Z=1.0f;
verts[0].SetNormal(new Vector3(0.0f,0.0f,-1.0f));
verts[0].Color = System.Drawing.Color.Aqua.ToArgb();
as you can tell from the code, I found a workaround for this.
But now I'm at the point where they start talking 'bout normals... and SetNormal doesn't exist either.
My question then... has these methods been removed? Or is it likely that I downloaded the wrong SDK. (I've the summer one-->dxsdk_sum2004.exe).
Thx in advance.