Added missing summeries #1
This commit is contained in:
parent
03d99ea28e
commit
8665b5b709
104 changed files with 1165 additions and 821 deletions
|
|
@ -1,7 +1,6 @@
|
|||
#region usings
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using OpenTK.Graphics.OpenGL4;
|
||||
using SM.OGL.Mesh;
|
||||
|
||||
|
|
@ -15,7 +14,7 @@ namespace SM.OGL.Shaders
|
|||
public abstract class GenericShader : GLObject
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override bool AutoCompile { get; } = true;
|
||||
protected override bool AutoCompile { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Contains the different files for the shader.
|
||||
|
|
@ -97,7 +96,6 @@ namespace SM.OGL.Shaders
|
|||
|
||||
ShaderFileFiles.Append(this);
|
||||
GL.LinkProgram(_id);
|
||||
Name(GetType().Name);
|
||||
ShaderFileFiles.Detach(this);
|
||||
|
||||
Uniforms = new UniformCollection {ParentShader = this};
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ namespace SM.OGL.Shaders
|
|||
for (var i = 0; i < GLSLExtensions.Count; i++) GLSLExtensions[i].Compile(shader, type);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void Dispose()
|
||||
{
|
||||
GL.DeleteShader(this);
|
||||
|
|
|
|||
|
|
@ -51,6 +51,12 @@ namespace SM.OGL.Shaders
|
|||
Fragment = new []{fragment};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a collection with arrays of shader files.
|
||||
/// </summary>
|
||||
/// <param name="vertex"></param>
|
||||
/// <param name="fragment"></param>
|
||||
/// <param name="geometry"></param>
|
||||
public ShaderFileCollection(ShaderFile[] vertex, ShaderFile[] fragment, ShaderFile[] geometry = default)
|
||||
{
|
||||
Vertex = vertex;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System.Collections.Generic;
|
||||
using OpenTK.Graphics.OpenGL;
|
||||
|
||||
namespace SM.OGL.Shaders
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue