Class Shader
Definition
- Assembly:
- Tizen.NUI.dll
Shader allows custom vertex and color transformations in the GPU.
public class Shader : Animatable, IDynamicResourceHandler, INameScope, System.IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceShader(string, string, string)
Creates Shader object with name
Declaration
public Shader(string vertexShader, string fragmentShader, string shaderName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | vertexShader | The vertex shader code for the effect. |
| string | fragmentShader | The fragment Shader code for the effect. |
| string | shaderName | The name of this shader object. |
Shader(string, string, Value)
Creates Shader object.
Declaration
public Shader(string vertexShader, string fragmentShader, Shader.Hint.Value hints)
Parameters
| Type | Name | Description |
|---|---|---|
| string | vertexShader | The vertex shader code for the effect. |
| string | fragmentShader | The fragment Shader code for the effect. |
| Shader.Hint.Value | hints | The hints to define the geometry of the rendered object. |
Shader(string, string, ShaderHint, string)
Creates Shader object with hints and name
Declaration
public Shader(string vertexShader, string fragmentShader, ShaderHint hints, string shaderName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | vertexShader | The vertex shader code for the effect. |
| string | fragmentShader | The fragment Shader code for the effect. |
| ShaderHint | hints | The hints to define the geometry of the rendered object. |
| string | shaderName | The name of this shader object. |
Shader(string, string, ShaderHint)
Creates Shader object.
Declaration
public Shader(string vertexShader, string fragmentShader, ShaderHint hints)
Parameters
| Type | Name | Description |
|---|---|---|
| string | vertexShader | The vertex shader code for the effect. |
| string | fragmentShader | The fragment Shader code for the effect. |
| ShaderHint | hints | The hints to define the geometry of the rendered object. |
Shader(string, string)
Creates Shader object.
Declaration
public Shader(string vertexShader, string fragmentShader)
Parameters
| Type | Name | Description |
|---|---|---|
| string | vertexShader | The vertex shader code for the effect. |
| string | fragmentShader | The fragment Shader code for the effect. |
Properties
View SourceAliveCount
Gets the number of currently alived Shader object.
Declaration
public static int AliveCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Name
Gets the name of program.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Program
Gets and Sets the program property.
Declaration
public PropertyMap Program { get; set; }
Property Value
| Type | Description |
|---|---|
| PropertyMap |
Methods
View SourceDispose(DisposeTypes)
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type |
Overrides
View SourceReleaseSwigCPtr(HandleRef)
Declaration
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.InteropServices.HandleRef | swigCPtr |