2 * Copyright(c) 2021 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
25 internal NativeImageInterface(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
29 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NativeImageInterface obj)
31 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
34 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
36 throw new global::System.MethodAccessException("C++ destructor does not have public access");
39 public virtual bool GlExtensionCreate()
41 bool ret = Interop.NativeImageInterface.GlExtensionCreate(SwigCPtr);
42 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
46 public virtual void GlExtensionDestroy()
48 Interop.NativeImageInterface.GlExtensionDestroy(SwigCPtr);
49 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
52 public virtual uint TargetTexture()
54 uint ret = Interop.NativeImageInterface.TargetTexture(SwigCPtr);
55 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
59 public virtual void PrepareTexture()
61 Interop.NativeImageInterface.PrepareTexture(SwigCPtr);
62 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
65 public virtual uint GetWidth()
67 uint ret = Interop.NativeImageInterface.GetWidth(SwigCPtr);
68 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
72 public virtual uint GetHeight()
74 uint ret = Interop.NativeImageInterface.GetHeight(SwigCPtr);
75 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
79 public virtual bool RequiresBlending()
81 bool ret = Interop.NativeImageInterface.RequiresBlending(SwigCPtr);
82 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();