Ejemplo n.º 1
0
        public void updateToCamera(InGameCamera camera, int frame)
        {
            if (Count == 0) return;

            float batchSize = Count / subDivide;
            float drawFrame = frame % subDivide;
            float start = batchSize * drawFrame;
            float end = start + batchSize;

            for (float i = start; i < end; i++)
            {
                camera.checkToDraw(this[(int)i]);
            }
        }
Ejemplo n.º 2
0
 public void DrawAxis(float length, GameRender.InGameCamera camera)
 {
     Vector2 origin = Vector2.Zero;
     Vector2 y      = new Vector2(0, length);
     Vector2 x      = new Vector2(length, 0);
 }