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
- Implements
-
System.IDisposable
Constructors
View SourceDirectRenderingGLView(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 |
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 SourceRenderingMode
Gets or sets the rendering mode of the DirectRenderingGLView.
Declaration
public GLRenderingMode RenderingMode { get; set; }
Property Value
Type | Description |
---|---|
GLRenderingMode |
Methods
View SourceBindTextureResources(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 |
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 |
RenderOnce()
Renders once more, even when paused.
Declaration
public void RenderOnce()
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. |