dovker / monogame.imgui Goto Github PK
View Code? Open in Web Editor NEWAn ImGui.NET wrapper for Monogame
License: MIT License
An ImGui.NET wrapper for Monogame
License: MIT License
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!
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();
}
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?
Hi
Is it possible to make updated nuget package for monogame 3.8?
I'm having errrors when trying to use it
Thx
The ImGui is rendering behind sprites
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)
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();
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.