Forum Replies Created
-
AuthorPosts
-
silly thought (not used a mac in anger) but it’s not failing to find env is it….
> Sweet! You should add it to the bananas bunch of examples.
Mark (or anyone else) is free to do what they want with it…I did try using two different windows with their own context’s but the GL window got its GL state mixed up and the problem with GL states is it can be hard to track down whats been changed to not set up as the code expects. I would expect you will encounter similar issues trying to share the same view…
If you do get it working all on the same view please do post a minimal example here…
@richard-betson – if you get close but could do with a second pair of eye’s please do feel free to contact me via http://bedroomcoders.co.uk/captcha/
sadly missing a Main function so couldn’t test on Linux…
a lot easier with your help! thanks…!
I’ve hacked together using HTML as a game menu that can start a “game” that uses Mojo and GL…
http://bedroomcoders.co.uk/monkey2-using-html-for-your-game-menu/
just
#import “assets/”then throw all the junk in there, it should “just work” (famous last words)
I have issues when trying to use it as a gui, I tried opening another window with a link – which works, but the GL state in the second window seems messed up somehow (text printed as filled in blocks)
ideally I’d want to somehow magically morph the htmlview window into a glwindow (so you can then render the “game”) in the same window you used for the htmlview…
but I’m thinking really the html should be rendered to a GL texture, but I’m not sure what is the best way to proceed for now…
@Richard Betson just nail together any old page, one caveat tho… resource paths must include asset::
[/crayon]Monkey123[crayon-5cba9fff669f0544608184 inline="true" ]<img src="asset::image.png" />for example
@coppercircle I might take this code further and develop a blog post about making a simple UI with HTML and monkey if you don’t mind me using this code…
Thanks for sharing…
… ah the penny drops, I’ll make a comment in the online docs if I can find somewhere appropriate…
I think it must do – if for example if you grep the build directory of the calculator banana you’ll for litehtml, i was looking for an example myself as documentation is so much more than api docs…
If i get chance i’ll nail a simple example together if only so i can grok it myself…
html5 is about the only truly “universal” GUI, and that *does* work nearly everywhere… you might want to look at the litehtml module…
I *had* thought sticking private into a class body would make the following methods private but it seems to do nothing silently public private and protected are all very useful for library writers…
I’ve seen that happen with C and just SDL, sadly I can’t off hand remember fixing it either…
Am I right in thinking that GTK either does or can use “native” GUI widgets in Windows ?
although something like GTK would rule out web targets, it would at least work on the main three of Linux, MacOS and Windows….
are you assuming functions that would only return a “native” value type like an int or double etc ?
as you can import whole C files what would be the difference with this approach ?
-
AuthorPosts