jaquadro / LilyPath

A 2D path and shape drawing library for MonoGame and XNA.
MIT License
93 stars 12 forks source link

Example app is just a black box #3

Closed ischyrus closed 11 years ago

ischyrus commented 11 years ago

The example, at least on windows, is just a black box untitled

jaquadro commented 11 years ago

What particular MonoGame runtime are you linking against (GL-based or DX-based), and are you using an old 3.0.1 release, or a copy built recently from source?

ischyrus commented 11 years ago

I already had monogame cloned, so it is an up-to-date build.

I added WindowsGL project to the solution and made it a project reference to LilyPath. Then added MonoGame.Framework.Windows8 project to the solution and made the example project reference it.

jaquadro commented 11 years ago

Sorry, your setup is still not clear.

MonoGame.Framework.Windows8 is a Windows Store library, but the demo application and existing lilypath library are .NET components. The demo project also explicitly depends on using the WindowsGL backend, since it's the only one that can embed into a Windows control. Make sure all your components are consistent.

I've only recently gained access to Windows 8, so I just did some playing around with it and managed to get the Logo program to run be recreating it and the library as Windows 8 Store components. I'll try and push these up to the repo soon.

ischyrus commented 11 years ago

I was rather confusing. I'm working on a Win8 app and typed what I am use to seeing. Attached is a screenshot showing the various projects. It builds and launches the window, so I'm fairly sure I am referencing the correct things.

untitled

jaquadro commented 11 years ago

As long as LilyPath and LilyPathDemo are pointing to WindowsGL, and only WindowsGL, it "should" work. Assuming your WindowsGL backend is working correctly.

While I still try untangling the demo, I pushed an update to the repo with a Windows8 solution for the library and Logo project. See if that runs okay.

ischyrus commented 11 years ago

Referencing only WindowsGL got it working.

The Windows8 project runs okay too.

Thanks, very much appreciated!