Git Product home page Git Product logo

monogame.imgui's People

Contributors

adham084 avatar beastle9end avatar dovker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

monogame.imgui's Issues

System.BadImageFormatException on Mac.

Hello!

Getting the following type error on my M1 Mac when trying to debug the example project in README!

From this line.
GuiRenderer = new ImGUIRenderer(this).Initialize().RebuildFontAtlas();

The error is the following:

System.BadImageFormatException: Expected reference type but got type kind 17
File name: 'MonoGame.ImGui'
  at MonoGame.ImGui.ImGUIRenderer.Initialize () [0x0000e] in /Monogame.ImGui/MonoGame.ImGui/ImGUIRenderer.cs:66 
  at RabbitEngine.SceneView.Initialize () [0x0007c] in /Users/myname/Repositories/RabbitEngine/RabbitEngine/SceneView.cs:40 
  at Microsoft.Xna.Framework.Game.DoInitialize () [0x0002c] in <8f3f3a1b6ac843848b40be60a3b6f853>:0 
  at Microsoft.Xna.Framework.Game.Run (Microsoft.Xna.Framework.GameRunBehavior runBehavior) [0x0002d] in <8f3f3a1b6ac843848b40be60a3b6f853>:0 
  at Microsoft.Xna.Framework.Game.Run () [0x0000c] in <8f3f3a1b6ac843848b40be60a3b6f853>:0 
  at RabbitEngine.Program.Main () [0x00018] in /Users/myname/Repositories/RabbitEngine/RabbitEngine/Program.cs:12 

Thank you for your help in advance!

Example is not working.

When using the library like in the example:

System.InvalidOperationException: "No Graphics Device Service"

When putting the creation of the renderer below the graphics one:

System.ArgumentNullException: "The GraphicsDevice must not be null when creating new resources.
Parametername: graphicsDevice"

The creation must be in the Initialize function of the class.

This works:

protected override void Initialize()
        {
            GuiRenderer = new ImGUIRenderer(this).Initialize().RebuildFontAtlas();

            base.Initialize();
        }

Update to latest version of ImGui.NET

ImGui.NET has updated lately with some new features, such as the Tables system which has replaced the deprecated Column system. Is there any plan to update this to bring compatibility to those new features?

Alternative to Monogame.ImGui

As this project is seemingly discontinued, I have created a new alternative.

https://github.com/Mezo-hx/Monogame.ImGuiNet

Note: The NuGet package is out of date and isn't working, I'll be updating it with the working version tomorrow! as well as putting out the small source code for it (which is a SuperSet of ImGui.Net's XNA example)

Trying to initialize ImGUI throws an exception

When I try to initialize the renderer in the void Initialize methode it gives this error

System.TypeLoadException
  HResult=0x80131522
  Message=Could not load type 'Microsoft.Xna.Framework.TextInputEventArgs' from assembly 'MonoGame.ImGui, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' due to value type mismatch.
  Source=MonoGame.ImGui
  StackTrace:
   at MonoGame.ImGui.Data.InputData.Initialize(Game game)
   at MonoGame.ImGui.ImGUIRenderer.Initialize()
   at imguitest.Game1.Initialize() in D:\monogame\imguitest\Game1.cs:line 24
   at Microsoft.Xna.Framework.Game.DoInitialize()
   at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
   at imguitest.Program.Main() in D:\monogame\imguitest\Program.cs:line 11

Here is my code:
tho it's pretty much the example code

public class Game1 : Game
    {
        private GraphicsDeviceManager _graphics;
        private SpriteBatch _spriteBatch;
        public ImGUIRenderer renderer;
        public Game1()
        {
            _graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            IsMouseVisible = true;
            
        }

        protected override void Initialize()
        {
            // TODO: Add your initialization logic here
            renderer = new ImGUIRenderer(this).Initialize().RebuildFontAtlas();
            base.Initialize();
        }

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.