Interface IGLTriangleFigure
- Namespace
- SearchAThing.OpenGL.Core
- Assembly
- netcore-opengl-core.dll
Specialization of IGLFigure for the type GLTriangle.
public interface IGLTriangleFigure : IGLFigure, IGLVertexManagerObject, INotifyPropertyChanged
- Inherited Members
- Extension Methods
Properties
Texture2D
Optional texture 2d object associated to this triangle.
TextureST vertex coords of triangles vertexes will be used to map the texture.
Changing this property emits FigureInvalidated event.
GLTexture2D? Texture2D { get; set; }
Property Value
Methods
Add(GLTriangle)
Add given point to the figure primitives set.
void Add(GLTriangle point)
Parameters
point
GLTriangle
Remove(GLTriangle)
Add given point to the figure primitives set.
void Remove(GLTriangle point)
Parameters
point
GLTriangle
SetupComputeNormal(bool, ComputeTriangleNormalDelegate?)
Set the triangle compute normal function.
If no argument given a default per triangle normal compute will be done.
Changing this property imply RebuildNormal(bool) event.
void SetupComputeNormal(bool mean, ComputeTriangleNormalDelegate? computeNormal)
Parameters
mean
boolIf true a mean of normals triangle vertexes grouped by position will be computed.
computeNormal
ComputeTriangleNormalDelegateAllow to override default triangle normal function DefaultComputeNormal.