2 * Copyright(c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.ComponentModel;
22 [EditorBrowsable(EditorBrowsableState.Never)]
23 public class NativeImageInterface : RefObject
26 internal NativeImageInterface(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
30 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NativeImageInterface obj)
32 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
35 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
37 throw new global::System.MethodAccessException("C++ destructor does not have public access");
40 public virtual bool GlExtensionCreate()
42 bool ret = Interop.NativeImageInterface.GlExtensionCreate(SwigCPtr);
43 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
47 public virtual void GlExtensionDestroy()
49 Interop.NativeImageInterface.GlExtensionDestroy(SwigCPtr);
50 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
53 public virtual uint TargetTexture()
55 uint ret = Interop.NativeImageInterface.TargetTexture(SwigCPtr);
56 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
60 public virtual void PrepareTexture()
62 Interop.NativeImageInterface.PrepareTexture(SwigCPtr);
63 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
66 public virtual uint GetWidth()
68 uint ret = Interop.NativeImageInterface.GetWidth(SwigCPtr);
69 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
73 public virtual uint GetHeight()
75 uint ret = Interop.NativeImageInterface.GetHeight(SwigCPtr);
76 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
80 public virtual bool RequiresBlending()
82 bool ret = Interop.NativeImageInterface.RequiresBlending(SwigCPtr);
83 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();