public void PointSpritesBegin(string name) { // Set pointsprites if (name == null) { devicepointsprites = new G3DPointSprites(); } else { devicepointsprites = ((G3DPointSprites)pointspriteslist[name]); } }
public void MakePointSprites(string name, CustomVertex.PositionColored[] vertices) { G3DPointSprites g3dpointsprites = new G3DPointSprites(); g3dpointsprites.Vertices = vertices.Length; // Vertices/Points g3dpointsprites.VertexBuffer = new VertexBuffer(vertices[0].GetType(), vertices.Length, device, Usage.WriteOnly, CustomVertex.PositionColored.Format, Pool.Default); g3dpointsprites.VertexBuffer.SetData(vertices, 0, LockFlags.None); // Add to list pointspriteslist.Add(name, g3dpointsprites); }
public void PointSpritesEnd() { devicepointsprites = new G3DPointSprites(); }