Coder Social home page Coder Social logo

imosmdemo's Introduction

ImOsmDemo

This is an application for demonstrate possibilities of ImOsmWidget. It is based on ImProject template.

ImOsmWidget is included as submodule in directory external/imosmwidget/.

In short I use ImGui with GLFW backend, ImPlot, CURL and STB libraries to display interactive map using tiles provided by OpenStreetMap.

image

Ubuntu dependencies

For ImGui with GLFW backend the following packages must be installed

libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev freeglut3-dev

For ImOsmWidget libcurl needed

libcurl4-gnutls-dev

imosmdemo's People

Contributors

gorbatschow avatar ramgon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

imosmdemo's Issues

MinGW64 and Windows

when compiling, the compiler will throw an error:
g++ main.cpp -o main -std=c++20 D:\MinGW64\home\38097\Test\ImOsmDemo\external\imgui\imgui*.cpp D:\MinGW64\home\38097\Test\ImOsmDemo\external\imgui\backends\imgui_impl_glfw.cpp D:\MinGW64\home\38097\Test\ImOsmDemo\external\imgui\backends\imgui_impl_opengl3.cpp -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\imgui\backends -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\imgui -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\imapp -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\imosm -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\imosm\include -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\implot -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\imwrap -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\imwrap\include -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\latlon -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\imfonts -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\mini\src\mini -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\stb -ID:\MinGW64\home\38097\Test\ImOsmDemo\external\glfw\include\GLFW -lglfw3 -lopenGL32
In file included from D:\MinGW64\home\38097\Test\ImOsmDemo\external\imosm/imosm.h:7,
from ImOsmDemoApp.h:3,
from main.cpp:1:
D:\MinGW64\home\38097\Test\ImOsmDemo\external\imosm\include/ImOsmTile.h:14:23: error: conflicting return type specified for 'virtual std::size_t ImOsm::Tile::rawBlobSize() const'
14 | virtual std::size_t rawBlobSize() const override;
| ^~~~~~~~~~~
In file included from D:\MinGW64\home\38097\Test\ImOsmDemo\external\imosm\include/ImOsmTile.h:2:
D:\MinGW64\home\38097\Test\ImOsmDemo\external\imosm\include/ImOsmTileDummy.h:29:18: note: overridden function is 'virtual ImOsm::size_t ImOsm::TileDummy::rawBlobSize() const'
29 | virtual size_t rawBlobSize() const override { return 0; }
| ^~~~~~~~~~~
D:\MinGW64\home\38097\Test\ImOsmDemo\external\imosm\include/ImOsmTile.h:17:23: error: conflicting return type specified for 'virtual std::size_t ImOsm::Tile::rgbaBlobSize() const'
17 | virtual std::size_t rgbaBlobSize() const override;
| ^~~~~~~~~~~~
D:\MinGW64\home\38097\Test\ImOsmDemo\external\imosm\include/ImOsmTileDummy.h:33:18: note: overridden function is 'virtual ImOsm::size_t ImOsm::TileDummy::rgbaBlobSize() const'
33 | virtual size_t rgbaBlobSize() const override { return 0; }

can you help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.