Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreffs committed May 7, 2020
1 parent 7c8e719 commit 9412a82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import PackageDescription
let package = Package(
name: "YourPackageName",
dependencies: [
.package(url: "https://github.com/ctreffs/SwiftImGui.git", from: "1.1.1")
.package(url: "https://github.com/ctreffs/SwiftImGui.git", from: "1.2.0")
],
targets: [
.target(
Expand Down Expand Up @@ -73,8 +73,10 @@ for n in 0..<20 {
io.pointee.DisplaySize = ImVec2(x: 1920, y: 1080)
io.pointee.DeltaTime = 1.0 / 60.0
ImGuiNewFrame()
var f: Float = 0.0
ImGuiTextV("Hello, world!")
ImGuiSliderFloat("float", &f, 0.0, 1.0, nil, 1)
ImGuiSliderFloat("float", &f, 0.0, 1.0, "", 1)
ImGuiTextV("Application average %.3f ms/frame (%.1f FPS)", 1000.0 / io.pointee.Framerate, io.pointee.Framerate)
ImGuiShowDemoWindow(nil)
ImGuiRender()
}
Expand Down
2 changes: 2 additions & 0 deletions docs/HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ This file serves more as a reminder to me, so don't expect it to be complete.

### Steps

0. Be sure to clone with clone recursive: `git clone --recursive [email protected]:ctreffs/SwiftImGui.git`
1. In submodule 3rdparty/cimgui
0. `git submodule update --init --recursive`
1. Merge latest master from <https://github.com/cimgui/cimgui>
2. Apply fixes if neccessary (i.e. generator.sh updates or #defines - see i.e. Adjust generator to include the correct defs 78ebaaf Christian Treffs <[email protected]> 24. Oct 2019 at 16:03)
3. Commit and push to generator-fix branch
Expand Down

0 comments on commit 9412a82

Please sign in to comment.