Keep pace with https://github.com/TizenAPI/opentk/
authoran87.li <an87.li@samsung.com>
Tue, 11 Sep 2018 06:37:51 +0000 (14:37 +0800)
committeran87.li <an87.li@samsung.com>
Tue, 11 Sep 2018 06:37:51 +0000 (14:37 +0800)
src/OpenTK/Audio/OpenAL/AL/AL.cs
src/OpenTK/Configuration.cs
src/OpenTK/OpenTK.Tizen.csproj.paket.template [deleted file]
src/OpenTK/Platform/Egl/Egl.cs
src/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs

index 9fc1bad..b00dc2c 100755 (executable)
@@ -66,12 +66,8 @@ namespace OpenTK.Audio.OpenAL
     /// </summary>
     public static partial class AL
     {
-        #if TIZEN
-        internal const string Lib = "libopenal.so.1.17.2";
-        #else
-        internal const string Lib = "openal32.dll";
-        #endif
 
+        internal const string Lib = "openal32.dll";
         private const CallingConvention Style = CallingConvention.Cdecl;
 
         /// <summary>This function enables a feature of the OpenAL driver. There are no capabilities defined in OpenAL 1.1 to be used with this function, but it may be used by an extension.</summary>
index 180c499..8fedf6a 100755 (executable)
@@ -188,10 +188,6 @@ namespace OpenTK
                     else
                     {
                         // Attempt to initialize SDL2.
-                        #if TIZEN
-                        Platform.SDL2.SDL.SetMainReady();
-                        #endif
-
                         var flags =
                             Platform.SDL2.SystemFlags.VIDEO |
                             Platform.SDL2.SystemFlags.TIMER;
diff --git a/src/OpenTK/OpenTK.Tizen.csproj.paket.template b/src/OpenTK/OpenTK.Tizen.csproj.paket.template
deleted file mode 100755 (executable)
index c32072e..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-type project
-id OpenTK.Tizen
-owners
-    opentk thefiddler
-authors
-    The Open Toolkit Team
-projectUrl
-    http://www.opentk.com
-iconUrl
-    https://raw.githubusercontent.com/opentk/opentk/master/docs/files/img/logo.png
-licenseUrl
-    http://github.com/opentk/opentk/blob/master/License.txt
-requireLicenseAcceptance
-    false
-copyright
-    Copyright (c) 2006 - 2016 Stefanos Apostolopoulos <stapostol@gmail.com> for the Open Toolkit library.
-tags
-    OpenTK OpenGL OpenAL OpenCL C# F# VB .Net Mono Graphics Game Scientific Science 3D 2D Math Input Gamepad Joystick
-summary
-    A set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL.
-description
-    The Open Toolkit is set of fast, low-level C# bindings for OpenGL, OpenGL ES and OpenAL. It runs on all major platforms and powers hundreds of apps, games and scientific research.
-    OpenTK provides several utility libraries, including a math/linear algebra package, a windowing system, and input handling.
-include-pdbs true
-excludeddependencies
-    StyleCop.Analyzers
index 4382802..7e31380 100755 (executable)
@@ -208,18 +208,11 @@ namespace OpenTK.Platform.Egl
         public const int D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE = 0x3200;
         // EGL_ANGLE_window_fixed_size
         public const int FIXED_SIZE_ANGLE = 0x3201;
-
-        #if TIZEN
-        private const string Library = "libEGL.so";
-        #else
-        private const string Library = "libEGL.dll";
-        #endif
-
         // EGL_ANGLE_query_surface_pointer
-        [DllImport(Library, EntryPoint = "eglQuerySurfacePointerANGLE")]
+        [DllImport("libEGL.dll", EntryPoint = "eglQuerySurfacePointerANGLE")]
         public static extern bool QuerySurfacePointerANGLE(EGLDisplay display, EGLSurface surface, int attribute, out IntPtr value);
 
-        [DllImport(Library, EntryPoint = "eglGetPlatformDisplayEXT")]
+        [DllImport("libEGL.dll", EntryPoint = "eglGetPlatformDisplayEXT")]
         public static extern EGLDisplay GetPlatformDisplay(int platform, EGLNativeDisplayType displayId, int[] attribList);
 
         // EGL_ANGLE_software_display
@@ -250,87 +243,87 @@ namespace OpenTK.Platform.Egl
         // See EGL_ANGLE_surface_d3d_texture_2d_share_handle
         public const int EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE = 0x3200;
 
-        [DllImportAttribute(Library, EntryPoint = "eglGetError")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglGetError")]
         public static extern ErrorCode GetError();
 
-        [DllImportAttribute(Library, EntryPoint = "eglGetDisplay")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglGetDisplay")]
         public static extern EGLDisplay GetDisplay(EGLNativeDisplayType display_id);
 
-        [DllImportAttribute(Library, EntryPoint = "eglInitialize")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglInitialize")]
         //[return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool Initialize(EGLDisplay dpy, out int major, out int minor);
 
-        [DllImportAttribute(Library, EntryPoint = "eglTerminate")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglTerminate")]
         //[return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool Terminate(EGLDisplay dpy);
 
-        [DllImportAttribute(Library, EntryPoint = "eglQueryString")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglQueryString")]
         public static extern IntPtr QueryString(EGLDisplay dpy, int name);
 
-        [DllImportAttribute(Library, EntryPoint = "eglGetConfigs")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglGetConfigs")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool GetConfigs(EGLDisplay dpy, EGLConfig[] configs, int config_size, out int num_config);
 
-        [DllImportAttribute(Library, EntryPoint = "eglChooseConfig")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglChooseConfig")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool ChooseConfig(EGLDisplay dpy, int[] attrib_list, [In, Out] EGLConfig[] configs, int config_size, out int num_config);
 
-        [DllImportAttribute(Library, EntryPoint = "eglGetConfigAttrib")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglGetConfigAttrib")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool GetConfigAttrib(EGLDisplay dpy, EGLConfig config, int attribute, out int value);
 
-        [DllImportAttribute(Library, EntryPoint = "eglCreateWindowSurface")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglCreateWindowSurface")]
         public static extern  EGLSurface CreateWindowSurface(EGLDisplay dpy, EGLConfig config, IntPtr win, IntPtr attrib_list);
 
-        [DllImportAttribute(Library, EntryPoint = "eglCreatePbufferSurface")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglCreatePbufferSurface")]
         public static extern EGLSurface CreatePbufferSurface(EGLDisplay dpy, EGLConfig config, int[] attrib_list);
 
-        [DllImportAttribute(Library, EntryPoint = "eglCreatePixmapSurface")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglCreatePixmapSurface")]
         public static extern EGLSurface CreatePixmapSurface(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, int[] attrib_list);
 
-        [DllImportAttribute(Library, EntryPoint = "eglDestroySurface")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglDestroySurface")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool DestroySurface(EGLDisplay dpy, EGLSurface surface);
 
-        [DllImportAttribute(Library, EntryPoint = "eglQuerySurface")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglQuerySurface")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool QuerySurface(EGLDisplay dpy, EGLSurface surface, int attribute, out int value);
 
-        [DllImportAttribute(Library, EntryPoint = "eglBindAPI")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglBindAPI")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool BindAPI(RenderApi api);
 
-        [DllImportAttribute(Library, EntryPoint = "eglQueryAPI")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglQueryAPI")]
         public static extern int QueryAPI();
 
-        [DllImportAttribute(Library, EntryPoint = "eglWaitClient")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglWaitClient")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool WaitClient();
 
-        [DllImportAttribute(Library, EntryPoint = "eglReleaseThread")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglReleaseThread")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool ReleaseThread();
 
-        [DllImportAttribute(Library, EntryPoint = "eglCreatePbufferFromClientBuffer")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglCreatePbufferFromClientBuffer")]
         public static extern EGLSurface CreatePbufferFromClientBuffer(EGLDisplay dpy, int buftype, EGLClientBuffer buffer, EGLConfig config, int[] attrib_list);
 
-        [DllImportAttribute(Library, EntryPoint = "eglSurfaceAttrib")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglSurfaceAttrib")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool SurfaceAttrib(EGLDisplay dpy, EGLSurface surface, int attribute, int value);
 
-        [DllImportAttribute(Library, EntryPoint = "eglBindTexImage")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglBindTexImage")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool BindTexImage(EGLDisplay dpy, EGLSurface surface, int buffer);
 
-        [DllImportAttribute(Library, EntryPoint = "eglReleaseTexImage")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglReleaseTexImage")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool ReleaseTexImage(EGLDisplay dpy, EGLSurface surface, int buffer);
 
-        [DllImportAttribute(Library, EntryPoint = "eglSwapInterval")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglSwapInterval")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool SwapInterval(EGLDisplay dpy, int interval);
 
-        [DllImportAttribute(Library, EntryPoint = "eglCreateContext")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglCreateContext")]
         private static extern IntPtr eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, int[] attrib_list);
 
         public static EGLContext CreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, int[] attrib_list)
@@ -343,57 +336,57 @@ namespace OpenTK.Platform.Egl
             return ptr;
         }
 
-        [DllImportAttribute(Library, EntryPoint = "eglDestroyContext")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglDestroyContext")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool DestroyContext(EGLDisplay dpy, EGLContext ctx);
 
-        [DllImportAttribute(Library, EntryPoint = "eglMakeCurrent")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglMakeCurrent")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool MakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
 
-        [DllImportAttribute(Library, EntryPoint = "eglGetCurrentContext")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglGetCurrentContext")]
         public static extern EGLContext GetCurrentContext();
 
-        [DllImportAttribute(Library, EntryPoint = "eglGetCurrentSurface")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglGetCurrentSurface")]
         public static extern EGLSurface GetCurrentSurface(int readdraw);
 
-        [DllImportAttribute(Library, EntryPoint = "eglGetCurrentDisplay")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglGetCurrentDisplay")]
         public static extern EGLDisplay GetCurrentDisplay();
 
-        [DllImportAttribute(Library, EntryPoint = "eglQueryContext")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglQueryContext")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool QueryContext(EGLDisplay dpy, EGLContext ctx, int attribute, out int value);
 
-        [DllImportAttribute(Library, EntryPoint = "eglWaitGL")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglWaitGL")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool WaitGL();
 
-        [DllImportAttribute(Library, EntryPoint = "eglWaitNative")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglWaitNative")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool WaitNative(int engine);
 
-        [DllImportAttribute(Library, EntryPoint = "eglSwapBuffers")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglSwapBuffers")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool SwapBuffers(EGLDisplay dpy, EGLSurface surface);
 
-        [DllImportAttribute(Library, EntryPoint = "eglCopyBuffers")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglCopyBuffers")]
         [return: MarshalAsAttribute(UnmanagedType.I1)]
         public static extern bool CopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
 
-        [DllImportAttribute(Library, EntryPoint = "eglGetProcAddress")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglGetProcAddress")]
         public static extern IntPtr GetProcAddress(string funcname);
 
-        [DllImportAttribute(Library, EntryPoint = "eglGetProcAddress")]
+        [DllImportAttribute("libEGL.dll", EntryPoint = "eglGetProcAddress")]
         public static extern IntPtr GetProcAddress(IntPtr funcname);
 
         // EGL_EXT_platform_base
-        [DllImport(Library, EntryPoint = "eglGetPlatformDisplayEXT")]
+        [DllImport("libEGL.dll", EntryPoint = "eglGetPlatformDisplayEXT")]
         public static extern EGLDisplay GetPlatformDisplayEXT(int platform, EGLNativeDisplayType native_display, int[] attrib_list);
 
-        [DllImport(Library, EntryPoint = "eglCreatePlatformWindowSurfaceEXT")]
+        [DllImport("libEGL.dll", EntryPoint = "eglCreatePlatformWindowSurfaceEXT")]
         public static extern EGLSurface CreatePlatformWindowSurfaceEXT(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType native_window, int[] attrib_list);
 
-        [DllImport(Library, EntryPoint = "eglCreatePlatformPixmapSurfaceEXT")]
+        [DllImport("libEGL.dll", EntryPoint = "eglCreatePlatformPixmapSurfaceEXT")]
         public static extern EGLSurface CreatePlatformPixmapSurfaceEXT(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType native_pixmap, int[] attrib_list);
 
         // Returns true if Egl drivers exist on the system.
index 5d18477..45f15e9 100755 (executable)
@@ -77,13 +77,7 @@ namespace OpenTK.Platform.SDL2
                 var bounds = device.Bounds;
                 var flags = TranslateFlags(options);
                 flags |= WindowFlags.OPENGL;
-
-                #if TIZEN
-                flags |= WindowFlags.SHOWN;
-                #else
                 flags |= WindowFlags.HIDDEN;
-                #endif
-
                 if (Toolkit.Options.EnableHighResolution)
                 {
                     flags |= WindowFlags.ALLOW_HIGHDPI;
@@ -110,10 +104,6 @@ namespace OpenTK.Platform.SDL2
                 window = new Sdl2WindowInfo(handle, null);
                 window_id = SDL.GetWindowID(handle);
                 windows.Add(window_id, this);
-
-                #if TIZEN
-                SDL.SetHint("SDL_IOS_ORIENTATIONS", "Portrait LandscapeLeft LandscapeRight PortraitUpsideDown");
-                #endif
             }
         }