https://github.com/cmst0us/appbootstrapkit
SDL ImGui OpenGL etc. bootstrap in Swift
https://github.com/cmst0us/appbootstrapkit
imgui linux sdl2 swift
Last synced: about 2 months ago
JSON representation
SDL ImGui OpenGL etc. bootstrap in Swift
- Host: GitHub
- URL: https://github.com/cmst0us/appbootstrapkit
- Owner: CmST0us
- License: mit
- Created: 2023-09-09T15:48:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-09T20:06:21.000Z (over 1 year ago)
- Last Synced: 2025-02-04T17:52:14.659Z (4 months ago)
- Topics: imgui, linux, sdl2, swift
- Language: C++
- Homepage:
- Size: 258 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AppBootstrapKit

AppBootstrap is a framework of help boot swift app with SDL or ImGui and etc.
# How to integrate
This is an SPM-compliant Swift Package: First, add the following line in Package.swift to your package dependencies:
```swift
.package(url: "https://github.com/CmST0us/AppBootstrapKit.git", branch: "master")
```
Then, add the module AppBootstrapKit – where necessary – to your target dependencies.# Usage
Subclass of `Application`
```swift
public class MyApp: Application {
public override func update() {
// every frame update will invoke this
}public override func setup() {
// after application setup, will invoke this
}
}
```Create instrance
```swift
let config = Application.Configuration(pipeline: .sdl2_imgui, openglVersion: .gles2_glsl100,
windowName: "MyApp",
clearColor: (0, 0, 0, 1.0))
let app = MyApp(configuration: config)
app.run
```# License and Contributions
This package is licensed under the term of the MIT License. Contributions are always welcome!