You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,28 @@ It tries to hide the ugliness of the global state machine that is OpenGL.
8
8
9
9
## Getting Started
10
10
11
+
It is a little cumbersome, but bare with me.
12
+
11
13
Create two projects
12
14
13
15
-`YourProject` as a console project
14
-
-`YourProject.Assets` as a class library project
16
+
-`YourProject.Assets` as a class library project (your IDE might have created a `Class1.cs` file, you can delete that safely)
15
17
---
16
18
17
19
- Add `YourProject.Assets` as a project reference to `YourProject`.
18
20
- Copy `Fonts` directory from [here](https://github.com/deccer/EngineKit/tree/main/examples/ForwardRendering/ForwardRendering.Assets) into `YourProject.Assets` (i am working on a neater solution)
19
21
- Add `EngineKit` to `YourProject` via nuget as a usual package.
22
+
- We also need a few other packages:
23
+
-`Microsoft.Extensions.Configuration` - handle configuration in general
24
+
-`Microsoft.Extensions.Configuration.Json` - to load appsettings.json
25
+
-`Microsoft.Extensions.Options.ConfigurationExtensions` - to turn sections of the configuration into usable objects
26
+
-`Microsoft.Extensions.DependencyInjection` - that's the dependency injection container we use here
27
+
-`Serilog.Sinks.Console` - to print log statement to the console
28
+
-`Serilog.Settings.Configuration` - an adapter for serilog to get its configuration from our configuration object
20
29
- Create an `appsettings.json` in `YourProject` which should like like [this](https://github.com/deccer/EngineKit/blob/main/examples/ForwardRendering/ForwardRendering/appsettings.json) one.
21
30
- Make sure to have it copied when its newer by right clicking it -> Properties -> "Copy to output directory" -> "Copy if newer"
22
31
---
23
-
- Create a class `YourProjectApplication` in `YourProject` and let it derive from `GraphicsApplication` (let your IDE implement the ctor)
32
+
- Create a class `YourProjectApplication` in `YourProject` and let it derive from `GraphicsApplication` (let your IDE implement the constructor, if you cannot figure it out look at [this constructor for inspiration](https://github.com/deccer/EngineKit/blob/main/examples/ForwardRendering/ForwardRendering/ForwardRendererApplication.cs#L69C26-L69C26))
0 commit comments