Mercurial > projects > openmelee
comparison render.d @ 12:2ecd16840900
added tracker
author | Mason Green <mason.green@gmail.com> |
---|---|
date | Sun, 22 Mar 2009 12:10:16 -0400 |
parents | 2217fd1fe384 |
children | af1e8620f027 |
comparison
equal
deleted
inserted
replaced
11:d998bf1b0654 | 12:2ecd16840900 |
---|---|
331 gl.MatrixMode(GL_MODELVIEW); | 331 gl.MatrixMode(GL_MODELVIEW); |
332 gl.Disable(GL_DEPTH_TEST); | 332 gl.Disable(GL_DEPTH_TEST); |
333 gl.LoadIdentity(); | 333 gl.LoadIdentity(); |
334 gl.Clear(GL_COLOR_BUFFER_BIT); | 334 gl.Clear(GL_COLOR_BUFFER_BIT); |
335 | 335 |
336 vec2 pp1 = vec2.from(ship2.rBody.position); | |
337 vec2 pp2 = vec2.from(ship2.state.target); | |
338 | |
339 gl.drawSegment(pp1, pp2, Color(0, 1, 0)); | |
340 | |
336 // Draw dynamic bodies | 341 // Draw dynamic bodies |
337 if (settings.drawShapes) { | 342 if (settings.drawShapes) { |
338 for (bzBody b = world.bodyList; b; b = b.next) { | 343 for (bzBody b = world.bodyList; b; b = b.next) { |
339 for (bzShape shape = b.shapeList; shape; shape = shape.next) { | 344 for (bzShape shape = b.shapeList; shape; shape = shape.next) { |
340 | 345 |