Giter Site home page Giter Site logo

cimgui-go-ebiten's Introduction

cimgui-go-ebiten

Ebiten backend for cimgui-go!

WIP

This is a work in progress!

Credit for rendering code goes to https://github.com/gabstv/ebiten-imgui. Unfortunately the ebiten-imgui repository hasn't been updated in a while and the version of imgui is forked and outdated. This implementation uses the new backend abstraction to allow it to work with the latest versions of imgui, from the cimgui-go repository.

Important!

This repository is designed to work with https://github.com/AllenDang/cimgui-go. A caveat of this, however, is that you must include the following buildtags:

  • exclude_cimgui_sdli
  • exclude_cimgui_glfw

example:

go run -tags exclude_cimgui_glfw,exclude_cimgui_sdli examples/basic/main.go

Failure to do so will result in a number of ld failures. Ebiten has it's own GLFW implementation that conflicts with vanilla cimgui-go

However

This repository has a replace line added to the go.mod file which redirects AllanDang's cimgui-go repository to a version that I strip of these third party dependencies. Using the lite version is totally optional and removes the need to include the build flags mentioned above.

require (
	github.com/AllenDang/cimgui-go v0.0.0-20240303223020-2c7d7a8d1731
	github.com/hajimehoshi/ebiten/v2 v2.6.6
)

replace github.com/AllenDang/cimgui-go => github.com/damntourists/cimgui-go-lite v1.0.0

cimgui-go-ebiten's People

Contributors

damntourists 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.