Reworked the VBO
This commit is contained in:
parent
3bc90dd83b
commit
ee732240f7
11 changed files with 174 additions and 253 deletions
|
|
@ -53,11 +53,13 @@ namespace SM_TEST
|
|||
|
||||
private static void WindowOnUpdateFrame(object sender, FrameEventArgs e)
|
||||
{
|
||||
|
||||
line.Vertex.RemoveRange(3, 3);
|
||||
line.Vertex.Add(Mouse2D.InWorld(window.ViewportCamera as Camera), 0);
|
||||
line.Update();
|
||||
if (SM.Base.Controls.Mouse.LeftClick)
|
||||
line.Vertex.Add(Vector3.Zero);
|
||||
|
||||
line.Vertex.RemoveAt(1);
|
||||
line.Vertex.Add(new Vector3(Mouse2D.InWorld(window.ViewportCamera as Camera)));
|
||||
line.Update();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue