Using canvas

Started by CatalinNic, 28 September 2019, 10:22:57

CatalinNic

I try to use a canvas and I don't know if it is possible to set view? if it is, how?

texus

It currently doesn't has a view. But I could add it as the class is a wrapper around sf::RenderTexture which does seem to have a view. What are you trying to do exactly?

CatalinNic

#2
I want to use it for testing level like this: .And the level itself is a lot bigger than the canvas

texus

I didn't test to make sure that it actually works, but I have added a setView function (and getters) to the Canvas class in the latest version on github.

CatalinNic

I will see if it is an update on AUR

texus

The "tgui-git" package downloads directly from github, so updating that package always gives the latest github version.