Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmx::TileSet::HasTransparency() #98

Closed
Deedolith opened this issue May 29, 2021 · 1 comment
Closed

tmx::TileSet::HasTransparency() #98

Deedolith opened this issue May 29, 2021 · 1 comment

Comments

@Deedolith
Copy link

Hello,

I found out that tmx::TileSet::HasTransparency() return true even if the tilset has no transparency.

Tested on Visual studio 2019 (V 16.6.9) under Windows10.
TmxLite (2019-03-05) installed with vcpkg.

Side notes:
Can you keep repositories for packages managers (vcpkg, NuGet, yum, dnf ect ....) up to date ?
packages on vcpkg are out of date, and packages on NuGet are beyond out of date (no clue about linux package managers).

@fallahn
Copy link
Owner

fallahn commented May 31, 2021

Hi, thanks for finding this, it should be fixed now.

Unfortunately I have no control over the package managers - in fact I had no idea tmxlite appeared in any of them! However, if you are using cmake, you can use your cmake script to clone and build the latest version of tmxlite (or any specific version)

find_package(TMXLITE QUIET)

if (NOT ${TMXLITE_FOUND})
  message(STATUS "tmxlite not found, fetching from github...")
  include(FetchContent)
  FetchContent_Declare(
    tmxlite
    GIT_REPOSITORY https://github.com/fallahn/tmxlite
    GIT_TAG        1.2.2
  )
  FetchContent_MakeAvailable(tmxlite)
  add_subdirectory(${tmxlite_SOURCE_DIR}/tmxlite)
  set(TMXLITE_LIBRARIES tmxlite)
  set(TMXLITE_INCLUDE_DIR ${tmxlite_SOURCE_DIR}/tmxlite/include)
endif()

You can set GIT_TAG to any tagged version, commit hash or simply origin/master to get the latest revision. Hope this helps!

@fallahn fallahn closed this as completed Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants