Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve support for High Dpi displays #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,118 changes: 1,118 additions & 0 deletions Cargo.lock

Large diffs are not rendered by default.

23 changes: 6 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
[package]
name = "egui-sdl2-event"
authors = ["Valtteri Vallius"]
version = "0.2.2"
edition = "2021"
keywords = ["sdl2", "egui"]
categories = ["gui", "input"]
description = "Provides event handling for egui in SDL2 window applications."
license = "MIT"
readme = "README.md"
repository = "https://github.com/kaphula/egui-sdl2-event"
homepage = "https://github.com/kaphula/egui-sdl2-event"


[dependencies]
sdl2 = "0.35.2"
egui = { version = "0.19.0" }
[workspace]
resolver = "2"
members = [
"egui-sdl2-event",
"example"
]
3 changes: 3 additions & 0 deletions egui-sdl2-event/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/target
target/
.idea/
285 changes: 285 additions & 0 deletions egui-sdl2-event/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions egui-sdl2-event/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "egui-sdl2-event"
authors = ["Valtteri Vallius"]
version = "0.3.0"
edition = "2021"
keywords = ["sdl2", "egui"]
categories = ["gui", "input"]
description = "Provides event handling for egui in SDL2 window applications."
license = "MIT"
readme = "README.md"
repository = "https://github.com/kaphula/egui-sdl2-event"
homepage = "https://github.com/kaphula/egui-sdl2-event"


[dependencies]
sdl2 = "0.35.2"
egui = { version = "0.21.0" }
File renamed without changes.
9 changes: 8 additions & 1 deletion README.md → egui-sdl2-event/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@ the [egui-wgpu](https://github.com/emilk/egui/tree/master/crates/egui-wgpu) back

Most of the code is just adaptively copied from [egui_sdl2_gl](https://github.com/ArjunNair/egui_sdl2_gl)

Simple [example](https://github.com/kaphula/egui-sdl2-event-example) program.

[crates.io link](https://crates.io/crates/egui-sdl2-event)

## Example

Clone the [development repository](https://github.com/kaphula/egui-sdl2-event) for simple example program.

To run the example program, use this command at the root of the repository:

`cargo run --bin example`

## Related

You might be interested in checking out [egui_sdl2_platform](https://crates.io/crates/egui_sdl2_platform) as it seems to
Expand Down
Loading