GithubHelp home page GithubHelp logo

erkmkd / harfang-gui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harfang3d/harfang-ui

0.0 0.0 0.0 5.87 MB

Harfang GUI is a immediate mode GUI library built on top of HARFANG® 3D

License: MIT License

Shell 21.82% Python 56.03% Scala 17.77% SuperCollider 4.35% Batchfile 0.03%

harfang-gui's Introduction

Harfang GUI

Harfang GUI is a immediate mode GUI library built on top of HARFANG® 3D. It supports 2D, 3D & VR (wip).

hgui


Overview

  • Easy 2D/3D/VR GUI creation with HARFANG® 3D Python
  • Immediate mode, inspired by the API of DearImGui

Requirements

  • Python 3.6+
  • HARFANG 3D for Python
  • Harfang Core shaders
    • "shaders/font" to fonts rendering.
    • "fonts/..." as fonts library. Copy your fonts here if you need custom ones.
  • Harfang Gui specific assets
    • "assets/hgui_textures" contains core textures (VR mouse pointer, widgets textures...)
    • "assets/hgui_shaders" contains the shaders.

Widgets types

The current version of the Harfang GUI API provides the following widgets:

  • Window 2D / 3D
  • Info text
  • Button
  • Button image
  • Image
  • Check box
  • Input text
  • Scrollbar (vertical & horizontal)
  • Radio image button
  • Toggle button
  • Toggle image
  • ListBox
  • Slider float
  • Widgets group

How to use Harfang GUI?

Please check the code samples to see how to use the library.

How to run the samples?

Run the samples from the release file (the easy way): ✌️

  1. Download the latest release (harfang-gui-demos-hg3.X.X.zip)
  2. Unzip it
  3. Run 1-compile_content.bat
  4. Run 2-start-window2d.bat
  5. and so on!

Run the samples from the sources (the way of the warrior): 🤘

  1. Download or clone this repository to your computer (eg. in C:/harfang-gui).

  2. Download assetc for your platform from here and unzip it in bin/assetc.

  3. To compile the resources, drag and drop the resources folder on the assetc executable -OR- execute assetc passing it the path to the resources folder (eg. assetc C:/source/assets).

    assetc drag & drop

    After the compilation process finishes, you will see a assets_compiled folder next to resources ( assets ) folder.

  4. You can now execute the samples from the folder source.

harfang-gui's People

Contributors

astrofra avatar

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.