Repository navigation
[TemportalEngine] Integrating from scratch #52
Replies: 11 comments 82 replies
|
oh, that's because before running render engine you should run layout engine (most renderers require layout to be constructed first, especially tesselate renderer since it uses built layout to place renderables in UI space, either triangles or texts) - take a look at tetra's simple host update method: https://github.com/RAUI-labs/raui/blob/master/raui-tetra-renderer/src/simple_host.rs#L106 i think we should emphasize that in the docs, gonna put that on TODO! thanks for bringing that issue up <3 |
|
Got a couple questions today which are tangentially related to each other:
|
|
Is there a particular set of widgets which can be used to test each batch type? obviously Tangentially, what are the |
|
Why in the world are there two separate definitions of |
|
When displaying an image box, is there any support atm for 9-sliced images, so I could provide a texture id and say that the image box renders the image with "right", "left", "top", and "bottom" border width and anything between those padding is stretched to fill the center area of the widget? |
|
I'm finding the I do like how the properties for widgets use a rust builder-esk syntax, its just a bummer that the widgets dont follow through with the same pattern. Its easier for me to read the builder pattern than it is to understand how this macro syntax parses the tree. |
|
How do I give a widget a fixed height? I have a vertical box that contains 3 text elements that I want to float to the top instead of each of them taking up a third of the space of the vertical box. If this were unreal, I'd have them use an auto size (only take up as much vertical space as the text needs) and use top-vertical-alignment. I'm not sure how to accomplish this in raui. |
|
Is there a way to get a hover event on an element (like a button)? I'd like to implement a styled button which changes a background image / components based on its current state (default, hovered, pressed, and/or selected) |
|
Is there any support for hex-integer parsing to make_widget!(image_box)
.with_props(ImageBoxProps {
material: ImageBoxMaterial::Color(ImageBoxColor {
color: Color::hex(0xff00ff),
..Default::default()
}),
.. Default::default()
}) |
|
@zicklag whats this now? is there a way for my rendering system to tell the layout engine how big a text_box widget's contents are? #32 (comment) |
|
Are there any examples for how to setup a |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
So I'm poking about RAUI a bit and looking to integrate it into my custom engine (mostly for learning rust and some game dev stuff). Not sure how y'all use GH Discussions, but I'll probably have a number of questions along the way. My first being along the lines of not getting batches or vertices out of the tessellation renderer.
Encountered Obstacles (and solutions)
Getting an empty tesselation from my TesselateRenderer.render call
Obstacle:
I've created an application, applied a tree, and am trying to render the tree, but I get an empty
Tessellationobject back.and that logs:
Tesselation { vertices: Interleaved([]), indices: [], batches: [] }Solution:
Had to call
Application.processand thenApplication.layoutbeforeApplication.render.All reactions