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

Using conrod with opengl_graphics and sdl2_window? #1133

Open
GGalizzi opened this issue Feb 6, 2018 · 0 comments
Open

Using conrod with opengl_graphics and sdl2_window? #1133

GGalizzi opened this issue Feb 6, 2018 · 0 comments

Comments

@GGalizzi
Copy link

GGalizzi commented Feb 6, 2018

The guide mentions support for both, though I find nothing in the documentation/source.

I'm creating my window with sdl2_window and drawing with opengl_graphics, I managed to create the UI and a Text primitive following the "all_piston_example" found here, making the necessary changes. But I can not figure out how to draw! The one backend that seems like the one I might want is piston, but I of course get an error that the types wont match since the Context I have is from graphics::Context, not conrod::backend::piston::draw::Context. And the Graphics I have implement graphics::Graphics, not conrod::backend::piston::draw::Graphics.

I'm kinda new to Rust so I might be missing something.

Any help is appreciated, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant