It copied the naming style from GLView.
It depends on
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-adaptor/+/268653
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-csharp-binder/+/268654
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GlWindow_Assign")]
public static extern global::System.IntPtr GlWindowAssign(HandleRef jarg1, HandleRef jarg2);
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GlWindow_Assign")]
public static extern global::System.IntPtr GlWindowAssign(HandleRef jarg1, HandleRef jarg2);
- [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GlWindow_SetEglConfig")]
- public static extern global::System.IntPtr GlWindowSetEglConfig(HandleRef jarg1, bool jarg2, bool jarg3, int jarg4, int jarg5);
+ [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GlWindow_SetGraphicsConfig")]
+ public static extern global::System.IntPtr GlWindowSetGraphicsConfig(HandleRef jarg1, bool jarg2, bool jarg3, int jarg4, int jarg5);
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GlWindow_Raise")]
public static extern void GlWindowRaise(HandleRef jarg1);
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GlWindow_Raise")]
public static extern void GlWindowRaise(HandleRef jarg1);
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GlWindow_SetPreferredOrientation")]
public static extern void GlWindowSetPreferredOrientation(HandleRef jarg1, int jarg2);
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GlWindow_SetPreferredOrientation")]
public static extern void GlWindowSetPreferredOrientation(HandleRef jarg1, int jarg2);
- [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GlWindow_RegisterGlCallback")]
- public static extern void GlWindowRegisterGlCallback(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4);
+ [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GlWindow_RegisterGlCallbacks")]
+ public static extern void GlWindowRegisterGlCallbacks(HandleRef jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4);
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GlWindow_RenderOnce")]
public static extern void GlWindowRenderOnce(HandleRef jarg1);
[DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_GlWindow_RenderOnce")]
public static extern void GlWindowRenderOnce(HandleRef jarg1);
- /// Sets egl configuration for GLWindow
+ /// Sets graphics configuration for GLWindow
/// </summary>
/// <param name="depth">The flag of depth buffer. If true is set, 24bit depth buffer is enabled.</param>
/// <param name="stencil">The flag of stencil. it true is set, 8bit stencil buffer is enabled.</param>
/// <param name="msaa">The bit of msaa.</param>
/// <param name="version">The GLES version.</param>
[EditorBrowsable(EditorBrowsableState.Never)]
/// </summary>
/// <param name="depth">The flag of depth buffer. If true is set, 24bit depth buffer is enabled.</param>
/// <param name="stencil">The flag of stencil. it true is set, 8bit stencil buffer is enabled.</param>
/// <param name="msaa">The bit of msaa.</param>
/// <param name="version">The GLES version.</param>
[EditorBrowsable(EditorBrowsableState.Never)]
- public void SetEglConfig(bool depth, bool stencil, int msaa, GLESVersion version)
+ public void SetGraphicsConfig(bool depth, bool stencil, int msaa, GLESVersion version)
- Interop.GLWindow.GlWindowSetEglConfig(SwigCPtr, depth, stencil, msaa, (int)version);
+ Interop.GLWindow.GlWindowSetGraphicsConfig(SwigCPtr, depth, stencil, msaa, (int)version);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
HandleRef TerminateHandlerRef;
/// <summary>
HandleRef TerminateHandlerRef;
/// <summary>
- /// Registers a GL callback function for application.
+ /// Registers GL callback functions for application.
/// </summary>
/// <param name="glInit">The callback function for application initialize</param>
/// <param name="glRenderFrame">The callback function to render to the frame</param>
/// <param name="glTerminate">The callback function to clean-up application GL resource</param>
[EditorBrowsable(EditorBrowsableState.Never)]
/// </summary>
/// <param name="glInit">The callback function for application initialize</param>
/// <param name="glRenderFrame">The callback function to render to the frame</param>
/// <param name="glTerminate">The callback function to clean-up application GL resource</param>
[EditorBrowsable(EditorBrowsableState.Never)]
- public void RegisterGlCallback(GLInitializeCallbackType glInit, GLRenderFrameCallbackType glRenderFrame, GLTerminateCallbackType glTerminate)
+ public void RegisterGLCallbacks(GLInitializeCallbackType glInit, GLRenderFrameCallbackType glRenderFrame, GLTerminateCallbackType glTerminate)
{
GLInitializeCallback = glInit;
InitHandleRef = new HandleRef(this, Marshal.GetFunctionPointerForDelegate<Delegate>(GLInitializeCallback));
{
GLInitializeCallback = glInit;
InitHandleRef = new HandleRef(this, Marshal.GetFunctionPointerForDelegate<Delegate>(GLInitializeCallback));
GLTerminateCallback = glTerminate;
TerminateHandlerRef = new HandleRef(this, Marshal.GetFunctionPointerForDelegate<Delegate>(GLTerminateCallback));
GLTerminateCallback = glTerminate;
TerminateHandlerRef = new HandleRef(this, Marshal.GetFunctionPointerForDelegate<Delegate>(GLTerminateCallback));
- Interop.GLWindow.GlWindowRegisterGlCallback(SwigCPtr, InitHandleRef, RenderHandlerRef, TerminateHandlerRef);
+ Interop.GLWindow.GlWindowRegisterGlCallbacks(SwigCPtr, InitHandleRef, RenderHandlerRef, TerminateHandlerRef);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}