I'm trying to do something that feels like it should be possible to me, but I'm struggling to actually accomplish it. In my game, I want my UI to act as a frame around my actual gameplay. The window will show some kind of UI with a box in the middle which should render a viewport that's capturing content from a camera. Here's a wireframe, and an example of what it could look like in-game. (i'll be posting more messages here so I can have images in the right place, so bear with me)
#Render viewport in a smaller container within the window
1 messages · Page 1 of 1 (latest)
In my room editor, I'd ideally want my viewport to be the dimension of whats actually going to be rendered in-game so make it easier to work with. For example,
I have the viewport configured so that it should theoretically be rendering in the exact position I want, but unfortunately what happens is that it gets stretched out to fill application_surface
the only workaround ive been able to get to work is to put my actual camera into viewport 1, and have viewport 0 render just an empty space that corresponds to my normal window size. this feels.... not great to me
it works but input gets weird when moving the mouse from the contents of viewport 1 to the outside of the box, since now it thinks the mouse is way to the left of the actual room
is there a better way to accomplish what im going for, or do I just gotta deal with this as it is?
something ive tried is disabling application_surface and rendering my viewport as a surface, but now anything within that viewport doesn't receive mouse events so that's not viable