[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 |
Beta Was this translation helpful? Give feedback.
-
Got a couple questions today which are tangentially related to each other:
|
Beta Was this translation helpful? Give feedback.
-
Is there a particular set of widgets which can be used to test each batch type? obviously Tangentially, what are the |
Beta Was this translation helpful? Give feedback.
-
Why in the world are there two separate definitions of |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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) |
Beta Was this translation helpful? Give feedback.
-
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()
}) |
Beta Was this translation helpful? Give feedback.
-
@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) |
Beta Was this translation helpful? Give feedback.
-
Are there any examples for how to setup a |
Beta Was this translation helpful? Give feedback.
-
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
Tessellation
object back.and that logs:
Tesselation { vertices: Interleaved([]), indices: [], batches: [] }
Solution:
Had to call
Application.process
and thenApplication.layout
beforeApplication.render
.Beta Was this translation helpful? Give feedback.
All reactions