jsandusky / imguicli Goto Github PK
View Code? Open in Web Editor NEWC++/CLI wrapper for DearImGui Viewports branch
License: MIT License
C++/CLI wrapper for DearImGui Viewports branch
License: MIT License
Hi,
using (in example) ImGuiCli.InputText ("Name",ref objName); , being objName null crashes trying to copy the string. I suppose it would be better to throw an exception when this happens, otherwise a very scary error message about memory protection appears :)
(being c# and the string passed as a ref, I suppose the best way to react would be to maintain the string as null, until a key is typed, then creating a brand new string, but I'm not up to date of the internals of the lib, so I don't know if this is possible)
Hi,
in order to make the monogame changes compile, I had to add this, in addition to your instructions:
[DllImport("user32.dll")]
static extern bool TranslateMessage([In] ref NativeMessage lpMsg);
[DllImport("user32.dll")]
static extern bool DispatchMessage([In] ref NativeMessage lpMsg);
and also had to make the HorizontalMouseWheelEventArgs class public.
Now into trying to get the whole thing running... :)
I'm having problems when mixing ImGui and ZBuffer
I've modified your sample (just removed the extra docked dialogs, only 'demo' and 'debug' panels appear) and added a rotating cube:
When pressing the mouse left button, ImGui initializes and ZBuffer is somehow lost. Do you know if I need a special flag to pass to ImGui in order to conserve ZBuffer?
note:
explicitely clearing the zbuffer before myRender doesn't work either. ( i.e. GraphicsDevice.Clear (ClearOptions.Target | ClearOptions.DepthBuffer | ClearOptions.Stencil, Color.Red,1,0); )
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.