{"id":374,"date":"2011-10-13T17:48:16","date_gmt":"2011-10-13T21:48:16","guid":{"rendered":"http:\/\/jausoft.com\/blog\/?p=374"},"modified":"2019-05-14T04:47:10","modified_gmt":"2019-05-14T08:47:10","slug":"jogl-osx-port","status":"publish","type":"post","link":"https:\/\/jausoft.com\/blog\/2011\/10\/13\/jogl-osx-port\/","title":{"rendered":"Jogl OS X Port is Nigh :)"},"content":{"rendered":"<p>Since the mouse features were to easy to add and my Android vacation should take a bit longer, our OS X port was a good candidate to burn some hours I don&#8217;t have.<\/p>\n<p>What should work for OS X by now:<\/p>\n<ul>\n<li>NEWT Top-Level Windowing<\/li>\n<li>NEWT Child Window w\/ NEWT Parent<\/li>\n<li>NEWT Child Window w\/ AWT Parent<\/li>\n<li>JOGL incl. shared context<\/li>\n<li>NEWT works w\/ AWT enabled JVM out of the box<\/li>\n<li>Method to execute a Runnable on the MainThread<\/li>\n<li>The new native Jar loading facility (Application, Applet, Webstart)<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>The window positioning code was a torture, since the AWT components are not top-level on OS X. Hence we have to calculation the proper screen size position in bottom-left coordination space, even when resizing the window.<br \/>\nMaybe there are still some glitches in case of a NEWT child within an AWT floating Container, but most cases work fine.<\/p>\n<p>Shared or offscreen context destruction was another issue.<br \/>\nWe have to run this task on the MainThread, otherwise we experienced a ~10s freeze.<\/p>\n<p>Btw our MainThread semantics have been simplified a lot.<br \/>\nOn OS X, it just launches the user main class in a new thread while continuing <i>as<\/i> the NSApp MainThread.<br \/>\nIn short, it is no more required when using an AWT enabled JVM, since it already launches as the NSApp MainThread.<\/p>\n<p>After a few more cleanups, I will prepare the next release and test our new native Jar loading mechanism<br \/>\nand Applets in general.<\/p>\n<ul>\n<li><a href=\"http:\/\/jogamp.org\">JogAmp<\/a><\/li>\n<li><a href=\"http:\/\/jogamp.org\/wiki\/index.php\/Downloading_and_installing_JOGL\">How to download and install.<\/a><\/li>\n<\/ul>\n<p>But be aware that these features will be promoted to the next release RC4,<br \/>\nso you would need to wait or use the autobuilds, see <a href=\"http:\/\/jogamp.org\/wiki\/index.php\/Downloading_and_installing_JOGL#Downloading_the_latest_automatic_build\">Downloading the latest automatic build<\/a>.<\/p>\n<p>Note on the side: Motivation for the OS X port was not my liking of the platform, which I don&#8217;t, but to just complete our platform independent solution. Hence having NEWT working well on OS X is mandatory here.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since the mouse features were to easy to add and my Android vacation should take a bit longer, our OS X port was a good candidate to burn some hours I don&#8217;t have. What should work for OS X by now: NEWT Top-Level Windowing NEWT Child Window w\/ NEWT Parent NEWT Child Window w\/ AWT&hellip; <a class=\"more-link\" href=\"https:\/\/jausoft.com\/blog\/2011\/10\/13\/jogl-osx-port\/\">Continue reading <span class=\"screen-reader-text\">Jogl OS X Port is Nigh \ud83d\ude42<\/span> <span class=\"meta-nav\" aria-hidden=\"true\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[7,3,8],"tags":[9,16,44,17,29],"class_list":["post-374","post","type-post","status-publish","format-standard","hentry","category-3d-opengl","category-computer-stuff","category-jogamp","tag-3d","tag-java","tag-jogamp","tag-opengl","tag-os-x"],"_links":{"self":[{"href":"https:\/\/jausoft.com\/blog\/wp-json\/wp\/v2\/posts\/374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jausoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jausoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jausoft.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jausoft.com\/blog\/wp-json\/wp\/v2\/comments?post=374"}],"version-history":[{"count":6,"href":"https:\/\/jausoft.com\/blog\/wp-json\/wp\/v2\/posts\/374\/revisions"}],"predecessor-version":[{"id":380,"href":"https:\/\/jausoft.com\/blog\/wp-json\/wp\/v2\/posts\/374\/revisions\/380"}],"wp:attachment":[{"href":"https:\/\/jausoft.com\/blog\/wp-json\/wp\/v2\/media?parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jausoft.com\/blog\/wp-json\/wp\/v2\/categories?post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jausoft.com\/blog\/wp-json\/wp\/v2\/tags?post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}