-
Notifications
You must be signed in to change notification settings - Fork 298
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
Draw the remaining render::Primitive
s within the glutin_glium.rs
example
#752
Comments
I did some experimentation in a seperate branch:28b0c79 I added some code to handle polygons, glutin_glium.rs#L158 but left the vertices-pushing code below at glutin_glium.rs#L245. Do we want to convert
|
@mitchmindtree Am I correct in assuming that the render loop from |
Oh awesome! Thanks heaps for looking into this - exciting stuff :)
I'm not experienced enough with GL to know which option would be the most efficient performance-wise, but I feel like this option is probably the cleanest in terms of API 👍 I like the idea of providing a pipe-like function in the
Yeah exactly 👍 |
Guess I should post an update. It's turning into a monster. Few points:
|
Haha wow, this is looking like some kind of abstract early-net era artwork 💯 Awesome job on making it this far 👍 Perhaps it'd be a bit easier to make clearer progress on this if we have a "correct" version of the example to compare it to... I've been thinking that we could re-do the I might have a look into this later today. |
Yup, very placeholder-ish for now. I can simplify the poly, perhaps a textured half-moon? Or something more asymmetrical? Btw, I think the fish is flipped. The two fins were on the bottom when I inkscape:ed it. Could be an export issue though. We def. need a better test texture long-term too, showing off all R,G,B,A channels. The shader in trunk clobbers the G and B channels! Would also like some lines in the I probably won't commit anything until the weekend. |
Weekly progress report... Done:
Todo / bugs:
|
Hey @clicketyclack, nice work 👍 I had a look at your code and attempted to clean it up a bit and re-write some parts to make it a little more efficient and address some of the bugs. Here's some screenshots of my progress (taken from my retina display): Think I managed to address most of your points! The fork is here if you're interested. I only have a couple steps left but I'll probably leave them for tomorrow:
After I've done those, I'll move what I can into nice abstractions within the |
In #734 conrod introduced a more flexible method of rendering in a "backend agnostic" manner. Instead of requiring a constrained graphics backend, conrod now simply renders the entire
Ui
as a list ofrender::Primitive
s.#734 also introduced a
glutin_glium.rs
example in order to demonstrate this flexibility and demonstrate how to use conrod with glutin and glium directly. The PR correctly handlesText
, however the otherPrimitive
s are not yet handled.Rectangle
Lines
Polygon
Text
Image
Could probably take inspiration from the wayText
is rendered.The text was updated successfully, but these errors were encountered: