Skip to content

Commit

Permalink
swapped version we use to be from imgui_glow_renderer in example
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbox-irl committed Sep 29, 2024
1 parent 564aae1 commit 5f41f6c
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 177 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ imgui = "0.12.0"
sdl2 = "0.37"

[dev-dependencies]
glow = "0.14"
imgui-glow-renderer = "0.12.0"
sdl2 = { version = "0.37", features = ["bundled", "static-link"] }
8 changes: 5 additions & 3 deletions examples/sdl2_01_basic.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use glow::HasContext;
use imgui::Context;
use imgui_glow_renderer::AutoRenderer;
use imgui_glow_renderer::{
glow::{self, HasContext},
AutoRenderer,
};
use imgui_sdl2_support::SdlPlatform;
use sdl2::{
event::Event,
Expand Down Expand Up @@ -58,7 +60,7 @@ fn main() {
.add_font(&[imgui::FontSource::DefaultFontData { config: None }]);

/* create platform and renderer */
let mut platform = SdlPlatform::init(&mut imgui);
let mut platform = SdlPlatform::new(&mut imgui);
let mut renderer = AutoRenderer::initialize(gl, &mut imgui).unwrap();

/* start main loop */
Expand Down
Loading

0 comments on commit 5f41f6c

Please sign in to comment.