Skip to content

Commit 973d0e5

Browse files
committed
Minor changes to pathnames for consistency
1 parent dadba00 commit 973d0e5

File tree

3 files changed

+44
-23
lines changed

3 files changed

+44
-23
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
import PackageDescription
55

66
let 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
)

Sources/IgisShell/main.swift

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+

Sources/IgisShellD/main.swift

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)