Git Product home page Git Product logo

urhox's Introduction

Urhox

Urhox is a library that extend Urho3D using some externals libraries and custom modules.

Urhox support next features :

  • ImGui
  • Spark particles engine

Screenshots

Building

Use cmake and URHO3D_HOME variable to the Urho3D build directory.

example :

mkdir BUILD
cd BUILD
cmake .. -DURHO3D_HOME=../../Urho3D/BUILD
make -j12

Out library, samples and public headers are generated into the "output" directory.

Prepare samples data

  • Copy Urho3D "Data" and "CoreData" to output/Bin
  • Copy bin/SparkData to output/Bin

urhox's People

Contributors

fredakilla avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

urhox's Issues

Unable to compile: "error: redefinition of `unsigned int Urho3D::ClosestPowerOfTwo(unsigned int)`"

$ gcc --version
gcc (GCC) 10.2.0
[ 14%] Building CXX object Sources/Urhox/CMakeFiles/urhoxcore.dir/SystemUI/SystemUI.cpp.o
spkgen/3rdparty/Urhox/Sources/Urhox/SystemUI/SystemUI.cpp:45:17: error: redefinition ofunsigned int Urho3D::ClosestPowerOfTwo(unsigned int)’
   45 | inline unsigned ClosestPowerOfTwo(unsigned value)
      |                 ^~~~~~~~~~~~~~~~~
In file included from spkgen/3rdparty/Urho3D/build/include/Urho3D/Input/../Core/../Core/../Math/../Math/../Math/../Math/Vector2.h:26,
                 from spkgen/3rdparty/Urho3D/build/include/Urho3D/Input/../Core/../Core/../Math/../Math/../Math/Vector3.h:25,
                 from spkgen/3rdparty/Urho3D/build/include/Urho3D/Input/../Core/../Core/../Math/../Math/Vector4.h:25,
                 from spkgen/3rdparty/Urho3D/build/include/Urho3D/Input/../Core/../Core/../Math/Color.h:25,
                 from spkgen/3rdparty/Urho3D/build/include/Urho3D/Input/../Core/../Core/Variant.h:29,
                 from spkgen/3rdparty/Urho3D/build/include/Urho3D/Input/../Core/Object.h:27,
                 from spkgen/3rdparty/Urho3D/build/include/Urho3D/Input/InputEvents.h:25,
                 from spkgen/3rdparty/Urhox/Sources/Urhox/SystemUI/SystemUI.cpp:22:
spkgen/3rdparty/Urho3D/build/include/Urho3D/Input/../Core/../Core/../Math/../Math/../Math/../Math/../Math/MathDefs.h:280:17: note: ‘unsigned int Urho3D::ClosestPowerOfTwo(unsigned int)’ previously defined here
  280 | inline unsigned ClosestPowerOfTwo(unsigned value)
      |                 ^~~~~~~~~~~~~~~~~

I assume this stems from the handling of inline which is not very well defined in C / C++.


(Edit: Looks like it's enough to remove this function from SystemUI.cpp; seems to work fine then)

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.