{"id":5618,"date":"2018-05-20T10:32:45","date_gmt":"2018-05-20T01:32:45","guid":{"rendered":"https:\/\/ukaapple.selfip.com\/support\/?p=5618"},"modified":"2018-05-21T07:47:22","modified_gmt":"2018-05-20T22:47:22","slug":"original_app_218","status":"publish","type":"post","link":"https:\/\/minnano.app\/support\/2018\/05\/20\/original_app_218\/","title":{"rendered":"\u72ec\u5275\u30a2\u30d7\u30ea\u958b\u767a\u65e5\u8a18 218\u65e5\u76ee \u74b0\u5883\u306b\u4f9d\u5b58\u3057\u306a\u3044Window"},"content":{"rendered":"<p><a href=\"https:\/\/minnano.app\/support\/2018\/05\/09\/ubuntu-18-04-lts-opengl\/\">\u3053\u3053\u307e\u3067<\/a>\u3067\u3001C#\u306b\u3088\u308bOpenGL\u306e\u958b\u767a\u74b0\u5883\u304c\u6574\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001GameWindow\u3068\u3044\u3046\u3001Mac\/Linux\/Windows\u306e\u3044\u305a\u308c\u306e\u74b0\u5883\u3067\u3082\u52d5\u4f5c\u3059\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u8868\u793a\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306e\u5b9f\u969b\u306e\u958b\u767a\u306fUbuntu\u4e0a\u3067\u9032\u3081\u308b\u4e88\u5b9a\u3067\u3059\u304c\u3001Mac\u3084\u618e\u3063\u304f\u304dWindows\u4e0a\u3067\u3082\u958b\u767a\u53ef\u80fd\u306a\u60f3\u5b9a\u3067\u3059\u3002<\/p>\n<pre><code>\r\nusing System;\r\nusing OpenTK;\r\n\r\nnamespace FloatingIsland\r\n{\r\n    class FloatingIsland\r\n    {\r\n        static void Main(string[] args)\r\n        {\r\n            GameWindow gw = new GameWindow();\r\n            gw.Run();\r\n        }\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3060\u3051\uff01&#8221;FloatingIsland&#8221;\u306f\u79c1\u304c\u958b\u767a\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308b\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u540d\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u3057\u305f\u3089\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002&#8217;gbm&#8217;\u304c\u30ed\u30fc\u30c9\u51fa\u6765\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre><code>\r\n\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f: CLR\/System.TypeInitializationException\r\nAn unhandled exception of type 'System.TypeInitializationException' occurred in OpenTK.dll: 'The type initializer for 'OpenTK.DisplayDevice' threw an exception.'\r\n Inner exceptions found, see $exception in variables window for more details.\r\n Innermost exception \t System.DllNotFoundException : Unable to load DLL 'gbm': The specified module or one of its dependencies could not be found.\r\n (Exception from HRESULT: 0x8007007E)\r\n   at OpenTK.Platform.Linux.Gbm.CreateDevice(Int32 fd)\r\n   at OpenTK.Platform.Linux.LinuxFactory.SetupDisplay(String gpu, IntPtr& gbm_device, IntPtr& egl_display)\r\n   at OpenTK.Platform.Linux.LinuxFactory.CreateDisplay(IntPtr& gbm_device, IntPtr& egl_display)\r\n   at OpenTK.Platform.Linux.LinuxFactory.get_gpu_fd()\r\n   at OpenTK.Platform.Linux.LinuxFactory.CreateDisplayDeviceDriver()\r\n   at OpenTK.DisplayDevice..cctor()\r\n<\/code><\/pre>\n<p>GBM\u3068\u306f\uff1a<\/p>\n<p>Generic Buffer Management\uff08GBM\uff09\u306f\u3001Mesa\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u7528\u306e\u30d0\u30c3\u30d5\u30a1\u3092\u5272\u308a\u5f53\u3066\u308b\u305f\u3081\u306e\u30e1\u30ab\u30cb\u30ba\u30e0\u3092\u63d0\u4f9b\u3059\u308bAPI\u3067\u3059\u3002<\/p>\n<p>Mesa\u3068\u306f\uff1a<\/p>\n<p>Mesa3D\u3068Mesa 3D Graphics Library\u3068\u3082\u547c\u3070\u308c\u308bMesa\u306f\u3001OpenGL\u3001Vulkan\u306a\u3069\u306e\u4ed5\u69d8\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\u3068\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u5b9f\u88c5\u3067\u3059\u3002 Mesa\u306f\u3001\u3053\u308c\u3089\u306e\u4ed5\u69d8\u3092\u3055\u307e\u3056\u307e\u306a\u30d9\u30f3\u30c0\u30fc\u56fa\u6709\u306e\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30c9\u30e9\u30a4\u30d0\u306b\u5909\u63db\u3059\u308b\u30af\u30ed\u30b9\u30e9\u30f3\u30b2\u30fc\u30b8\u3001\u30af\u30ed\u30b9\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\uff08\u4e3b\u306bBSD\u304a\u3088\u3073Linux\uff09\u306e\u6a19\u6e96API\u3092\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&#8216;gbm&#8217;\u3092\u5165\u308c\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u304d\u307e\u3059\u3002<\/p>\n<pre><code>\r\n$ sudo apt-get install libgbm-dev\r\n<\/code><\/pre>\n<p>\u518d\u5ea6\u5b9f\u884c\u3059\u308b\u3068\u3001\u307e\u305f\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002\u6b21\u306f&#8217;libEGL.dll&#8217;\u304c\u30ed\u30fc\u30c9\u51fa\u6765\u306a\u3044\u3068\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<pre><code>\r\n\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f: CLR\/System.TypeInitializationException\r\nAn unhandled exception of type 'System.TypeInitializationException' occurred in OpenTK.dll: 'The type initializer for 'OpenTK.DisplayDevice' threw an exception.'\r\n Inner exceptions found, see $exception in variables window for more details.\r\n Innermost exception \t System.DllNotFoundException : Unable to load DLL 'libEGL.dll': The specified module or one of its dependencies could not be found.\r\n (Exception from HRESULT: 0x8007007E)\r\n   at OpenTK.Platform.Egl.Egl.GetDisplay(IntPtr display_id)\r\n   at OpenTK.Platform.Linux.LinuxFactory.SetupDisplay(String gpu, IntPtr& gbm_device, IntPtr& egl_display)\r\n   at OpenTK.Platform.Linux.LinuxFactory.CreateDisplay(IntPtr& gbm_device, IntPtr& egl_display)\r\n   at OpenTK.Platform.Linux.LinuxFactory.get_gpu_fd()\r\n   at OpenTK.Platform.Linux.LinuxFactory.CreateDisplayDeviceDriver()\r\n   at OpenTK.DisplayDevice..cctor()\r\n<\/code><\/pre>\n<p>EGL\u3068\u306f\uff1a<\/p>\n<p>EGL\u306f\u3001Khronos\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0API\uff08OpenGL\u3001OpenGL ES\u3001OpenVG\u306a\u3069\uff09\u3068\u57fa\u672c\u7684\u306a\u30cd\u30a4\u30c6\u30a3\u30d6\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u30b7\u30b9\u30c6\u30e0\u3068\u306e\u9593\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3067\u3059\u3002 EGL\u306f\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u30fb\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u7ba1\u7406\u3001\u30b5\u30fc\u30d5\u30a7\u30b9\/\u30d0\u30c3\u30d5\u30a1\u30fc\u30fb\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3001\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u540c\u671f\u3092\u51e6\u7406\u3057\u3001\u300c\u4ed6\u306eKhronos API\u3092\u4f7f\u7528\u3057\u3066\u9ad8\u6027\u80fd\u3067\u9ad8\u901f\u5316\u3055\u308c\u305f\u6df7\u5408\u30e2\u30fc\u30c9\u306e2D\u304a\u3088\u30733D\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u300d\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002EGL\u306f\u975e\u55b6\u5229\u306e\u6280\u8853\u30b3\u30f3\u30bd\u30fc\u30b7\u30a2\u30e0Khronos \u30b0\u30eb\u30fc\u30d7\u306b\u3088\u3063\u3066\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Khronos\u3068\u306f\uff1a<\/p>\n<p>Khronos Group\u306f\u3001\u30a2\u30e1\u30ea\u30ab\u306e\u975e\u55b6\u5229\u56e3\u4f53\u3002 \u69d8\u3005\u306a\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3084\u30c7\u30d0\u30a4\u30b9\u306e\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u3001\u4e26\u5217\u8a08\u7b97\u3084\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u3001\u30e1\u30c7\u30a3\u30a2\u7528\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9 (API) \u306e\u30ed\u30a4\u30e4\u30ea\u30c6\u30a3\u30fc\u30d5\u30ea\u30fc\u3067\u30aa\u30fc\u30d7\u30f3\u306a\u6a19\u6e96\u898f\u683c\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u3044\u308b\u6280\u8853\u30b3\u30f3\u30bd\u30fc\u30b7\u30a2\u30e0\u3067\u3042\u308b\u3002<\/p>\n<p>Khronos\u306e\u7b56\u5b9a\u3059\u308b\u4ee3\u8868\u7684\u306a\u898f\u683c\u306b\u30013DCG\u5411\u3051API\u3067\u3042\u308bOpenGL\u3001GPGPU\u306a\u3069\u306e\u30d8\u30c6\u30ed\u30b8\u30cb\u30a2\u30b9\u30fb\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u5411\u3051API\u3067\u3042\u308bOpenCL\u306a\u3069\u304c\u3042\u308b\u3002<\/p>\n<p>Khronos\u306e\u30e1\u30f3\u30d0\u30fc\u306fKhronos\u306e\u7b56\u5b9a\u3059\u308bAPI\u4ed5\u69d8\u306e\u958b\u767a\u306b\u53c2\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u516c\u958b\u524d\u306e\u6295\u7968\u6a29\u3092\u6301\u3061\u3001\u307e\u305f\uff08\u81ea\u8eab\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3084\u30c7\u30d0\u30a4\u30b9\u3067\u305d\u308c\u3089\u306e\u898f\u683c\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306e\uff09\u898f\u683c\u8349\u6848\u304a\u3088\u3073\u898f\u683c\u9069\u5408\u6027\u8a66\u9a13\u3078\u306e\u65e9\u671f\u30a2\u30af\u30bb\u30b9\u3092\u901a\u3058\u3066\u81ea\u8eab\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u304a\u3088\u3073\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u63d0\u4f9b\u3092\u65e9\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u304d\u307e\u3059\u3002<\/p>\n<pre><code>\r\nsudo apt-get install libegl1-mesa-dev\r\n<\/code><\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002Ubuntu\u3067\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u304c\u3001Mac\u3084Windows\u3067\u3082\u540c\u3058\u30b3\u30fc\u30c9\u3067\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/minnano.app\/support\/wp-content\/uploads\/2018\/05\/Screenshot-from-2018-05-20-11-15-04.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/minnano.app\/support\/wp-content\/uploads\/2018\/05\/Screenshot-from-2018-05-20-11-15-04-300x239.png\" alt=\"\" width=\"300\" height=\"239\" class=\"alignnone size-medium wp-image-5627\" srcset=\"https:\/\/minnano.app\/support\/wp-content\/uploads\/2018\/05\/Screenshot-from-2018-05-20-11-15-04-300x239.png 300w, https:\/\/minnano.app\/support\/wp-content\/uploads\/2018\/05\/Screenshot-from-2018-05-20-11-15-04.png 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3053\u307e\u3067\u3067\u3001C#\u306b\u3088\u308bOpenGL\u306e\u958b\u767a\u74b0\u5883\u304c\u6574\u3044\u307e\u3057\u305f\u3002 \u4eca\u56de\u306f\u3001GameWindow\u3068\u3044\u3046\u3001Mac\/Linux\/Windows\u306e\u3044\u305a\u308c\u306e\u74b0\u5883\u3067\u3082\u52d5\u4f5c\u3059\u308b\u30a6\u30a3\u30f3\u30c9\u30a6\u8868\u793a\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u3053\u306e\u30d6\u30ed\u30b0\u3067\u306e\u5b9f\u969b &hellip; <a href=\"https:\/\/minnano.app\/support\/2018\/05\/20\/original_app_218\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u72ec\u5275\u30a2\u30d7\u30ea\u958b\u767a\u65e5\u8a18 218\u65e5\u76ee \u74b0\u5883\u306b\u4f9d\u5b58\u3057\u306a\u3044Window<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-5618","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/posts\/5618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/comments?post=5618"}],"version-history":[{"count":20,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/posts\/5618\/revisions"}],"predecessor-version":[{"id":5639,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/posts\/5618\/revisions\/5639"}],"wp:attachment":[{"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/media?parent=5618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/categories?post=5618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/minnano.app\/support\/wp-json\/wp\/v2\/tags?post=5618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}