craftworkgames / MonoGame.WpfCore

MonoGame embedded inside a WPF app.
MIT License
71 stars 13 forks source link

trivial update to MG 3.81 #10

Closed damian-666 closed 1 month ago

damian-666 commented 2 years ago

This is updated, but since, net standard 2.0 cores are not supported. in MG 3.81 , it might not be a canonical example since net6 still supports netstandard 2.0.. net 4.8 is not allowed to link if game cores are in shared .net 6 dlls as is the new MG templante. and 3.1 netcore is not needed t build content. this is for my in hourselevel editor, its not expected to work on linux or mac since there are dX references. this was just to move to 3.81 for my game codebase which now targets phones and pcs. .

I don't know if its a good idea or even possible for everyone using this , especially since they might have legacy docking stuff, but csscipt is updated.. avalonia also , But I use an old devcomponents docking thing. hat hasnt been updated in years... the update-assistant was of no use to me on this. Mabye this should be a branch its quite a lot of breaking changes and people might need to stick with 3.8 , because of the netstandard 2.0 issue ( mg 3.8.1 doestn support it but .net 6 and the new Net Silk does) and thats where all my sharded game code lives . took me 3days to do this update and im not through it.. my core game support android, and windows and now maybe mac and linux but now not so sure how to deploy to those and ARM toolchain is in high flux.

anyways thx i hope to get my MG underlay working again today but this was not a smooth update, its just a new foundation i guess.

Gandifil commented 3 months ago

Do you steel need this changes?

damian-666 commented 3 months ago

yes, there are many interested int this

not the keyboard but tabs. i looking at the core2D project and another tabbed more basic project, both have some bugs with redocking.

but i want to try this in avalonia, it should be possible in both opengl via FBO or directX shared surface.

also seems better to use the the KNI branch. I did the the chatgpt4o to do this. .but it did not use the public class MonoGame Service Provider : IServiceProvider {

i don't have that much time this week to try iit but i can pass the code.. its wasa using silk and another generating biidngin , intsteeda of sharpdx. also it was using FBO and for GL and s a swapChain for DX. .. i can try to find the code if you are mainting this officially. thx.

im trying to just make a sample simple avalonia app with a 3d view and camera embedded in multiple tabs that are tearable. just for desktop.

but not having to copy a writable bitmaps like avalonia.Inside does for monogame. on netcore 8 the performance is ok for me but others have said its not. its not meant for use in browser or android... avalonia ui should be ble to go over it so that Monogame items can be rendered with adorers from avalonia and no flicker issues. swaapping out the entire renderer , i was advised against thta by the bot. because of fonts and window edge and etc.