shouzama
Active member
Ok, back on my "tile-engine", I decided to go the way Nerseus showed me and (finally) use D3D.
Problem is, the engine seems to consider my vertexes as it likes.
Heres the declaration of vertexes:
(this is only a test, so I only need to "color" vertexes to obtain a black square)
The following is the "initialization" of the vertexes listed above,
Finally, when I draw them
The engine shows me a 200x200 square, but colored in a sort of dark magenta...
This is independent of the color set on any of the vertexes.
Any clues?
Problem is, the engine seems to consider my vertexes as it likes.
Heres the declaration of vertexes:
Code:
Dim tristrip(3) As Microsoft.DirectX.Direct3D.CustomVertex.TransformedColored
(this is only a test, so I only need to "color" vertexes to obtain a black square)
The following is the "initialization" of the vertexes listed above,
Code:
With tristrip(0)
.X = 10
.Y = 10
.Z = 0
.Color = Color.Black.ToArgb
.Rhw = 1
End With
With tristrip(1)
.X = 210
.Y = 10
.Z = 0
.Color = Color.Black.ToArgb
.Rhw = 1
End With
With tristrip(2)
.X = 10
.Y = 210
.Z = 0
.Color = Color.Black.ToArgb
.Rhw = 1
End With
With tristrip(3)
.X = 210
.Y = 210
.Z = 0
.Color = Color.Black.ToArgb
.Rhw = 1
End With
Finally, when I draw them
Code:
.DrawUserPrimitives(Microsoft.DirectX.Direct3D.PrimitiveType.TriangleStrip, 2, tristrip)
The engine shows me a 200x200 square, but colored in a sort of dark magenta...
This is independent of the color set on any of the vertexes.
Any clues?