コード例 #1
0
        public void FillCircle(float x, float y, float radius, VertigoMaterial material = null)
        {
            material = material ?? fillMaterial;
            int pathId = shapeGenerator.Circle(x, y, radius);

            geometryGenerator.Fill(shapeGenerator, new RangeInt(pathId, 1), defaultShapeMode, geometryCache);
            batcher.AddDrawCall(geometryCache, new RangeInt(geometryCache.shapeCount - 1, 1), material, renderState);
        }