MrcSnm/HipremeEngine

`setFont()` interferes with `drawRectangle()`

0xEAB opened this issue · 1 comments

0xEAB commented

setFont() interferes with drawRectangle() and makes it actually fillRectangle().

double setFont()

override void render()
{
    setFont(smallFont);
    drawRectangle(40, 40, 200, 200, HipColor(1, 0, 0.5, 1));
    setFont(null);

    renderGeometries();
    renderTexts();
    renderSprites();
}

image

no or single setFont()

override void render()
{
    drawRectangle(40, 40, 200, 200, HipColor(1, 0, 0.5, 1));
    setFont(null);

    renderGeometries();
    renderTexts();
    renderSprites();
}

It makes no difference whichever one is omitted. Bug only occurs when both are there.

image

MrcSnm commented

I think that will be fixed as soon as I merge the current metal branch. There is a bunch of things changing from behind the scenes (performance upgrades also). The changes on user code will be that you won't need to call renderGeometries(), renderSprites() and renderTexts() anymore too, they will all be managed automaticaly