Problem rendering point sprite
Hi,
The following code only displays a black square as a point sprite, without the texture. Any idea why the texture is not displayed?
***********************************************************
device.BeginScene();
device.SetTexture(0, TextureLoader.FromFile(device,"bullet.jpg"));
device.Material = material;
device.VertexFormat = VertexFormats.Position | VertexFormats.PointSize | VertexFormats.Diffuse;
device.DrawUserPrimitives(PrimitiveType.PointList, 1, crosshairs);
device.EndScene();
Do you have the debug runtimes installed with the debug output set to maximum? Any debug output?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement