Class DirectRenderingGLView

Definition

Namespace:
Tizen.NUI.BaseComponents
Assembly:
Tizen.NUI.dll
API Level:
11

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

C#
Copy
public class DirectRenderingGLView : View, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

DirectRenderingGLView(DirectRenderingGLView.ColorFormat)

Creates an initialized DirectRenderingGLView.

Declaration
C#
Copy
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
C#
Copy
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
C#
Copy
public void BindTextureResources(List<Texture> textures)
Parameters
Type Name Description
List<Texture> textures

List of Textures

API Level: 11
View Source

RegisterGLCallbacks(DirectRenderingGLView.GLInitializeDelegate, DirectRenderingGLView.GLRenderFrameDelegate, DirectRenderingGLView.GLTerminateDelegate)

Registers GL callback functions to render with OpenGL ES

Declaration
C#
Copy
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

View Source

RenderOnce()

Renders once more, even when paused.

Declaration
C#
Copy
public void RenderOnce()
View Source

SetGraphicsConfig(Boolean, Boolean, Int32, GLESVersion)

Sets graphics configuration for the DirectRenderingGLView

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

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

Boolean stencil

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

Int32 msaa

The bit of MSAA

GLESVersion version

The GLES version

Returns
Type Description
Boolean

True if the config was successfully set, false otherwise.

Implements

Extension Methods