aca
This commit is contained in:
@ -17,8 +17,16 @@ class Segment
|
||||
*/
|
||||
draw(ctx)
|
||||
{
|
||||
ctx.moveTo(this.start.x, this.start.y);
|
||||
ctx.lineTo(this.stop.x, this.stop.y);
|
||||
if(this.gl instanceof CanvasRenderingContext2D)
|
||||
{
|
||||
ctx.moveTo(this.start.x, this.start.y);
|
||||
ctx.lineTo(this.stop.x, this.stop.y);
|
||||
}
|
||||
else if(this.gl instanceof WebGLRenderingContext)
|
||||
{
|
||||
}
|
||||
else
|
||||
alert('Unknown rendering context type');
|
||||
}
|
||||
|
||||
from_json(data)
|
||||
@ -30,4 +38,4 @@ class Segment
|
||||
}
|
||||
}
|
||||
|
||||
export { Segment }
|
||||
export { Segment }
|
||||
|
Reference in New Issue
Block a user