@@ -23,7 +23,6 @@ public static class Draws
2323 public static Draw CreateDraw ( SampleContext context )
2424 {
2525 var draw = new Draw ( ) ;
26- draw . camera = context . camera ;
2726 draw . gl = context . gl ;
2827
2928 draw . background = CreateBackground ( context . gl ) ;
@@ -129,16 +128,16 @@ public static void DrawPoint(Draw draw, B2Vec2 p, float size, B2HexColor color)
129128
130129
131130
132- public static void FlushDraw ( Draw draw )
131+ public static void FlushDraw ( Draw draw , Camera camera )
133132 {
134133 // order matters
135- FlushSolidCircles ( draw . gl , ref draw . circles , draw . camera ) ;
136- FlushCapsules ( draw . gl , ref draw . capsules , draw . camera ) ;
137- FlushPolygons ( draw . gl , ref draw . polygons , draw . camera ) ;
138- FlushCircles ( draw . gl , ref draw . hollowCircles , draw . camera ) ;
139- FlushLines ( draw . gl , ref draw . lines , draw . camera ) ;
140- FlushPoints ( draw . gl , ref draw . points , draw . camera ) ;
141- FlushText ( draw . gl , ref draw . font , draw . camera ) ;
134+ FlushSolidCircles ( draw . gl , ref draw . circles , camera ) ;
135+ FlushCapsules ( draw . gl , ref draw . capsules , camera ) ;
136+ FlushPolygons ( draw . gl , ref draw . polygons , camera ) ;
137+ FlushCircles ( draw . gl , ref draw . hollowCircles , camera ) ;
138+ FlushLines ( draw . gl , ref draw . lines , camera ) ;
139+ FlushPoints ( draw . gl , ref draw . points , camera ) ;
140+ FlushText ( draw . gl , ref draw . font , camera ) ;
142141 draw . gl . CheckOpenGL ( ) ;
143142 }
144143}
0 commit comments