Using canvas

  • 5 Replies
  • 76 Views
Using canvas
« on: 28 September 2019, 10:22:57 »
I try to use a canvas and I don't know if it is possible to set view? if it is, how?

*

texus

  • *****
  • 1475
    • View Profile
    • Texus's Blog
Re: Using canvas
« Reply #1 on: 28 September 2019, 10:35:50 »
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?

Re: Using canvas
« Reply #2 on: 28 September 2019, 10:41:55 »
I want to use it for testing level like this: .And the level itself is a lot bigger than the canvas
« Last Edit: 28 September 2019, 10:43:48 by CatalinNic »

*

texus

  • *****
  • 1475
    • View Profile
    • Texus's Blog
Re: Using canvas
« Reply #3 on: 28 September 2019, 11:19:08 »
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.

Re: Using canvas
« Reply #4 on: 28 September 2019, 11:23:57 »
I will see if it is an update on AUR

*

texus

  • *****
  • 1475
    • View Profile
    • Texus's Blog
Re: Using canvas
« Reply #5 on: 28 September 2019, 14:26:25 »
The "tgui-git" package downloads directly from github, so updating that package always gives the latest github version.