Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 15:28
    zfsamzfsam starred mikke89/RmlUi
  • Sep 23 12:50
    fightingbamboo starred mikke89/RmlUi
  • Sep 23 09:22
    ThisisGame starred mikke89/RmlUi
  • Sep 23 01:34
    wtjcn starred mikke89/RmlUi
  • Sep 22 19:27
    agnosticlines starred mikke89/RmlUi
  • Sep 22 02:24
    bart9h starred mikke89/RmlUi
  • Sep 21 23:01
    IonutCava starred mikke89/RmlUi
  • Sep 21 21:19
    mikke89 commented #361
  • Sep 21 21:17

    mikke89 on master

    SVG plugin: Update texture when… (compare)

  • Sep 21 21:14
    mikke89 labeled #361
  • Sep 21 21:14
    mikke89 labeled #361
  • Sep 21 15:06
    fightingbamboo starred mikke89/RmlUi
  • Sep 21 07:09
    BertHeesakkers starred mikke89/RmlUi
  • Sep 20 23:27
    Illation opened #361
  • Sep 20 14:02

    mikke89 on master

    Update readme (compare)

  • Sep 20 13:53

    mikke89 on master

    Text widget: Move cursor when c… Text widget: Fix text not being… Text widget: Don't show horizon… (compare)

  • Sep 20 12:42

    mikke89 on vulkan

    (compare)

  • Sep 20 10:47
    yangpeng515 starred mikke89/RmlUi
  • Sep 20 05:10
    jimmyleocn starred mikke89/RmlUi
  • Sep 19 21:04
    mikke89 commented #360
Michael R. P. Ragazzon
@mikke89
Ah, very cool! I'd love to see more Vulkan integrations, is it mostly for your own sake or do you publish the code somewhere? Perhaps you would be interested in reviewing #236 when it is ready? :)
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
for my own sake for now :)
sure, i can have a look at that, when the fig dissipates a bit ;)
anyway the fps drop seems to be solved now. i was calling map/unmap on the vertex/index buffer every time i had to add a new geometry to them and that was taking a lot of time while now i only map once and keep the pointer around. i knew already that was better and i was planning to do that but i didn't imagine the impact was so big
like from 100 to 1000 fps
Michael R. P. Ragazzon
@mikke89
Wow, that is a surprisingly huge difference, that new number sounds more reasonable indeed. Alright, awesome if you could contribute, I'll ping you when the PR is getting closer to merging. :)
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
ok!
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
@mikke89: hey, i have a question about the scissors: when EnableScissorRegion(true) is called, will a SetScissorRegion call always come immediately after it, or is it possible for it to set the scissors once, then disable them and then enable again without setting it again, meaning it should use the previous value?
also, is it possible that it calls SetScissorResion multiple times following a EnableScissorRegion(true)?
Michael R. P. Ragazzon
@mikke89
@giulio.camuffo:matrix.org We don't really make any guarantees here, but considering these lines are the only place we seem to make a call to the scissor interface, I would say that your assumptions should be reasonable. I don't see any reason for us to change this behavior, but I cannot make guarantees for the future. Maybe add some asserts just in case?
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
ok thanks!
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
any idea why in windows the samples fonts don't work? i'm getting a freetype error 8 when loading them, and it says they don't contain a unicode or apple roman character map
they work in linux
could it be the different freetype version?
i have 2.10.4 in windows and 2.11.1 in linux
the debugger fonts work
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
nope, it's not the version
Giulio Camuffo
@giulio.camuffo:matrix.org
[m]
ah nevermind, it was my fault
Hyper Sonic
@hsandt
2021-12-24 bug margin-bottom ignored.png

Hey, I'm trying to position my dialog box based on the window edges, using margin only, rather than width and height.

body
{
    font-family: LatoLatin;
    font-weight: normal;
    font-style: normal;
    font-size: 2em;
    color: white;
    background: #f00;
    width: 100%;
    height: 100%;
}

#box
{
    margin-bottom: 80dp;
    background: #000;
    padding: 1em;
}

I got the result in the screenshot above. The black box is not near the bottom at all, it's like it's sticking to the minimal height based on its content.
"bottom" instead of margin-bottom doesn't help. Is there a way to counter this behavior, and is it standard CSS?

Removing the default rml.rcss (which sets div display: block) gives this:
Hyper Sonic
@hsandt
For now I'm defining height = container height - margin-top - margin-bottom I wanted as a workaround.
Michael R. P. Ragazzon
@mikke89
@hsandt Hey. Is #box the body element? The body is always absolutely positioned, so in that case use height: auto; top: 0; bottom: 80dp;. I think that should do it.
1 reply
If it's not the body, you can use position: absolute; together with the above rules.
aquawicket
@aquawicket
@giulio.camuffo:matrix.org I have a SDL2Renderer Rml interface that does not require GL. Welcome to try it out.. working on everything except android at the moment. Still working on that. https://github.com/aquawicket/SDL2RendererRml
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
@aquawicket: SDL2RendererRml is working on windows/msys2? how?
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
can rmlui run in browser?
with wasm +libsdl2 ?
Michael R. P. Ragazzon
@mikke89
@zygon.sisyphus:matrix.org I don't see a reason why it couldn't work, but I haven't heard from anyone trying. Let us know how it goes if you do try it!
Sounds a bit insane though, why would you want to do this when you already have HTML+CSS?
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
bindings
native bindings, not javascript
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
also assemblyscript
and can run in browser, mobile, desktop
crossplatform
and is cool
and probably fast
c++. rust, golang, .. can generate webassembly now
Michael R. P. Ragazzon
@mikke89
Right, I understand the need for wasm, and that is all cool. However I don't understand why one would want RmlUi specifically running in a browser, that to me is the insane part ;)
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
pwa on mobile
or games in browseer
Michael R. P. Ragazzon
@mikke89
Is it possible now to run wasm without the entire web browser underneath? If so, that would be very interesting, and I could certainly see something like RmlUi making sense on top of that.
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
part 1-8
Michael R. P. Ragazzon
@mikke89
Ah, these are very cool, didn't know there were standalone runtimes. That is very interesting, then I do understand how RmlUi could be a good fit for such projects :)