Hello @harry-cpp where is full source . I don’t see where is link. You mean Post: 118
But It looks only github’s issue.
// EDIT You are right.
How do I add renderWindow? Why do you call RenderWindow? What does it mean? I thought you add Gtk Button like I saw your picture. How did you? I want know. Why do you say my net framework horrible? But It is as “Area” not “Window”.
Now updating the FrameworkDispatcher to enable Audio in MonoGame.Forms [DX; GL].
Create SoundEffects, SoundEffectInstances and Songs, and play them using the MonoGame.Framework.
RenderTargets created with the RenderTargetManager are now enabled on creation, so they are becoming available without the need of resizing a control first [DX].
I remembering that someone here wanted to create a GameBoy Emulator with MonoGame.Forms. This audio update should be very useful
You could also create a MediaPlayer now or load and preview audio fles in your editor.
I’m having an issue where whenever I move my mouse over a DrawWindow in my project, the scroll bar for the form containing it automatically resets. I was able to find that somebody on stackoverflow had the same issue but the thread was deleted. Is this a common issue with an easy solution?
In my last post I talked about the guy who wanted to create a GameBoy Emulator with MonoGame.Forms and - coincidentally (hacked my SNES MINI and installed RetroArch on it) - I just played around a little - literally:
There are no P/Invokes for embding a window of a different emulator application or such tricks; an original Super Mario World.sfc rom was natively loaded using the snes9x_libretro.dll core.
Using the LibretroAPI it was possible to get the Framebuffer and process this data to a Texture2D which I then draw using the SpriteBatch of MonoGame.
With Libretro it’s also possible to load different cores such as for a GameBoy, Playstation and so on, so that it would become possible to create an application like RetroArch.
RetroArch is - by the way - the official frontend of Libretro. With that in mind MonoGame would be the frontend of Libretro using a c# wrapper of Libretro. You can find one here (the one which inspired me).
I just thought to share this with you because it’s interesting and fun, isn’t it?
Fortunately this bug was only in the test project of MonoGame.Forms and I already fixed it.
Just download the new version from GitHub and you are good to go.
All the NuGet packages and the core libraries are still working as before.
Cheers!
PS: Can you please delete the flickering image from your last post? Because some people have problems with seeing flickering images. This would be very polite Thank you very much!
There is a built-in intervall for the OpenGL version. But even if you set it to 1ms the fps are around 60fps.
It would be the same for the WindowsDX version of the library, because the content already renders as soon as the application enters the idle state. This at least leads to a smooth editing experience.
But i’m always open to see different approaches, when they are practical enough.
Hello Sir sqrMin1^_^y may I ask how do you set GraphicsProfile to HiDef when in winform where there is no Game instance and can’t create a GameDeviceManager ?