Skip to content

Commit

Permalink
feat(imgui): add sliderFloat api
Browse files Browse the repository at this point in the history
(fix(imgui): move "render_imgui" after "render_skybox")
  • Loading branch information
yyc-git committed May 13, 2019
1 parent 3394966 commit 6252277
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/no_worker/pipeline/loop_pipelines.json
Expand Up @@ -51,10 +51,10 @@
"name": "draw_outline"
},
{
"name": "render_imgui"
"name": "render_skybox"
},
{
"name": "render_skybox"
"name": "render_imgui"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions examples/config/no_worker/pipeline/loop_pipelines.json
Expand Up @@ -51,10 +51,10 @@
"name": "draw_outline"
},
{
"name": "render_imgui"
"name": "render_skybox"
},
{
"name": "render_skybox"
"name": "render_imgui"
}
]
}
Expand Down
2 changes: 2 additions & 0 deletions src/Index.re
Expand Up @@ -476,6 +476,8 @@ let createRenderGroup = RenderGroupAPI.createRenderGroup;

let buildRenderGroup = RenderGroupAPI.buildRenderGroup;

let sliderFloat = FixedLayoutControlIMGUIAPI.sliderFloat;

let image = FixedLayoutControlIMGUIAPI.image;

let label = FixedLayoutControlIMGUIAPI.label;
Expand Down
16 changes: 15 additions & 1 deletion src/api/imgui/FixedLayoutControlIMGUIAPI.re
Expand Up @@ -8,4 +8,18 @@ let label =

let image =
(. rect: (int, int, int, int), uv, id, record) =>
FixedLayoutControlIMGUIAPI.image(. rect, uv, id, record);
FixedLayoutControlIMGUIAPI.image(. rect, uv, id, record);

let sliderFloat =
(.
(rect, textWidth),
(min, max, numDecimalDigits),
(defaultValue, str),
record,
) =>
FixedLayoutControlIMGUIMainService.sliderFloat(.
(rect, textWidth),
(min, max, numDecimalDigits),
(defaultValue, str),
record,
);

0 comments on commit 6252277

Please sign in to comment.