File tree Expand file tree Collapse file tree 3 files changed +44
-23
lines changed
Expand file tree Collapse file tree 3 files changed +44
-23
lines changed Original file line number Diff line number Diff line change 44import PackageDescription
55
66let package = Package (
7- name: " IgisShellD " ,
7+ name: " IgisShell " ,
88 dependencies: [
99 ] ,
1010 targets: [
1111 // Targets are the basic building blocks of a package. A target can define a module or a test suite.
1212 // Targets can depend on other targets in this package, and on products in packages which this package depends on.
1313 . target(
14- name: " IgisShellD " ) ,
14+ name: " IgisShell " ) ,
1515 ]
1616)
Original file line number Diff line number Diff line change 1+ /*
2+ IgisShell provides a minimal framework for starting Igis projects.
3+ Copyright (C) 2020 Tango Golf Digital, LLC
4+ This program is free software: you can redistribute it and/or modify
5+ it under the terms of the GNU General Public License as published by
6+ the Free Software Foundation, either version 3 of the License, or
7+ (at your option) any later version.
8+ This program is distributed in the hope that it will be useful,
9+ but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ GNU General Public License for more details.
12+ You should have received a copy of the GNU General Public License
13+ along with this program. If not, see <https://www.gnu.org/licenses/>.
14+ */
15+
16+ import Igis
17+
18+ /*
19+ The Painter class is responsible for implementing all rendering
20+ and interaction with the Canvas.
21+ */
22+ class Painter : PainterBase {
23+ required init ( ) {
24+ }
25+
26+ override func setup( canvas: Canvas ) {
27+ }
28+ }
29+
30+ /*
31+ This main code is responsible for starting Igis and initializing
32+ the Painter.
33+ It rarely needs to be altered.
34+ */
35+ print ( " Starting... " )
36+ do {
37+ let igis = Igis ( )
38+ try igis. run ( painterType: Painter . self)
39+ } catch ( let error) {
40+ print ( " Error: \( error) " )
41+ }
42+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments