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#Copypublic class DirectRenderingGLView : View, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
- Implements
Constructors
DirectRenderingGLView(DirectRenderingGLView.ColorFormat)
Creates an initialized DirectRenderingGLView.
Declaration
C#Copypublic DirectRenderingGLView(DirectRenderingGLView.ColorFormat colorFormat)
Parameters
Type | Name | Description |
---|---|---|
DirectRenderingGLView.ColorFormat | colorFormat | The format of the color buffer |
Properties
Declaration
C#Copypublic GLRenderingMode RenderingMode { get; set; }
Property Value
Type | Description |
---|---|
GLRenderingMode |
Methods
BindTextureResources(List<Texture>)
Binds textures to own context. You can get the bind IDs in RenderCallbackInput in the glRenderFrame callback.
Declaration
C#Copypublic void BindTextureResources(List<Texture> textures)
Parameters
Type | Name | Description |
---|---|---|
List<Texture> | textures | List of Textures |
API Level: 11
RegisterGLCallbacks(DirectRenderingGLView.GLInitializeDelegate, DirectRenderingGLView.GLRenderFrameDelegate, DirectRenderingGLView.GLTerminateDelegate)
Registers GL callback functions to render with OpenGL ES
Declaration
C#Copypublic 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 |
Declaration
C#Copypublic void RenderOnce()
SetGraphicsConfig(Boolean, Boolean, Int32, GLESVersion)
Sets graphics configuration for the DirectRenderingGLView
Declaration
C#Copypublic 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. |