Class DirectRenderingGLView

    Definition

    Namespace:
    Tizen.NUI.BaseComponents
    Assembly:
    Tizen.NUI.dll

    DirectRenderingGLView allows drawing with OpenGL. You can render to a Window directly. DirectRenderingGLView creates a context.

    public class DirectRenderingGLView : View, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    DirectRenderingGLView
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    DirectRenderingGLView(ColorFormat, BackendMode)

    Creates an initialized DirectRenderingGLView.

    Declaration
    public DirectRenderingGLView(DirectRenderingGLView.ColorFormat colorFormat, DirectRenderingGLView.BackendMode backendMode)
    Parameters
    Type Name Description
    DirectRenderingGLView.ColorFormat colorFormat

    The format of the color buffer

    DirectRenderingGLView.BackendMode backendMode

    The backend mode

    View Source

    DirectRenderingGLView(ColorFormat)

    Creates an initialized DirectRenderingGLView.

    Declaration
    public DirectRenderingGLView(DirectRenderingGLView.ColorFormat colorFormat)
    Parameters
    Type Name Description
    DirectRenderingGLView.ColorFormat colorFormat

    The format of the color buffer

    Properties

    View Source

    RenderingMode

    Gets or sets the rendering mode of the DirectRenderingGLView.

    Declaration
    public GLRenderingMode RenderingMode { get; set; }
    Property Value
    Type Description
    GLRenderingMode

    Methods

    View Source

    BindTextureResources(List<Texture>)

    Binds textures to own context. You can get the bind IDs in RenderCallbackInput in the glRenderFrame callback.

    Declaration
    public void BindTextureResources(List<Texture> textures)
    Parameters
    Type Name Description
    List<><Texture> textures

    List of Textures

    View Source

    Dispose(DisposeTypes)

    you can override it to clean-up your own resources.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type

    DisposeTypes

    Overrides
    View.Dispose(DisposeTypes)
    View Source

    RegisterGLCallbacks(GLInitializeDelegate, GLRenderFrameDelegate, GLTerminateDelegate)

    Registers GL callback functions to render with OpenGL ES

    Declaration
    public void RegisterGLCallbacks(DirectRenderingGLView.GLInitializeDelegate glInit, DirectRenderingGLView.GLRenderFrameDelegate glRenderFrame, DirectRenderingGLView.GLTerminateDelegate glTerminate)
    Parameters
    Type Name Description
    DirectRenderingGLView.GLInitializeDelegate glInit

    The callback function for GL initialization

    DirectRenderingGLView.GLRenderFrameDelegate glRenderFrame

    The callback function to render the frame

    DirectRenderingGLView.GLTerminateDelegate glTerminate

    The callback function to clean up GL resources

    Remarks

    Registered callback could be called after disposed.

    View Source

    RenderOnce()

    Renders once more, even when paused.

    Declaration
    public void RenderOnce()
    View Source

    SetGraphicsConfig(bool, bool, int, GLESVersion)

    Sets graphics configuration for the DirectRenderingGLView

    Declaration
    public bool SetGraphicsConfig(bool depth, bool stencil, int msaa, GLESVersion version)
    Parameters
    Type Name Description
    bool depth

    The flag of depth buffer. When the value is true, 24bit depth buffer is enabled.

    bool stencil

    The flag of stencil. When the value is true, 8bit stencil buffer is enabled.

    int msaa

    The bit of MSAA

    GLESVersion version

    The GLES version

    Returns
    Type Description
    bool

    True if the config was successfully set, false otherwise.

    View Source

    Terminate()

    Terminate gl calls forcibly.

    Declaration
    public void Terminate()
    Remarks

    All API after Terminate don't have any effects.

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    BindingExtensions.BindingSession<T, TViewModel>(T, BindingSession<TViewModel>)
    BindingExtensions.SetBinding<T, TView>(TView, BindingSession<T>, Action<T, TView>, string)
    BindingExtensions.SetBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, BindingProperty<TView, TProperty>, string)
    BindingExtensions.SetTwoWayBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, TwoWayBindingProperty<TView, TProperty>, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    BindingExtensions.BindingSession<TViewModel>(View)
    BindingExtensions.SetBinding<T>(View, BindingSession<T>, Action<T>, string)
    BindingExtensions.SetBinding<TViewModel>(View, BindingSession<TViewModel>, string, string)
    BindingExtensions.SetTwoWayBinding<TViewModel, TProperty>(View, BindingSession<TViewModel>, TwoWayBindingProperty<View, TProperty>, string)
    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX