+ Bloom effect + PixelInformation + Many Summaries + Add-methods for CVectors + Exposure-Field in GenericCamera for HDR. ~ ColorAttachments now can have PixelInformation ~ Transformed MeshAttributes to a own class ~ Fixed the non-applying of transformations at texts ~ Added more information to the context ~ Improved Pipeline-Process. ~ Changed how Uniform takes arrays - Light system
50 lines
No EOL
1.4 KiB
C#
50 lines
No EOL
1.4 KiB
C#
#region usings
|
|
|
|
using OpenTK.Graphics.OpenGL4;
|
|
|
|
#endregion
|
|
|
|
namespace SM.OGL.Texture
|
|
{
|
|
/// <summary>
|
|
/// Works as a basis for textures.
|
|
/// </summary>
|
|
public abstract class TextureBase : GLObject
|
|
{
|
|
/// <inheritdoc />
|
|
protected override bool AutoCompile { get; } = true;
|
|
|
|
/// <inheritdoc />
|
|
public override ObjectLabelIdentifier TypeIdentifier { get; } = ObjectLabelIdentifier.Texture;
|
|
|
|
public PixelInformation PixelInformation;
|
|
|
|
/// <summary>
|
|
/// The texture filter.
|
|
/// <para>Default: <see cref="TextureMinFilter.Linear" /></para>
|
|
/// </summary>
|
|
public virtual TextureMinFilter Filter { get; set; } = TextureMinFilter.Linear;
|
|
|
|
/// <summary>
|
|
/// The wrap mode.
|
|
/// <para>Default: <see cref="TextureWrapMode.Repeat" /></para>
|
|
/// </summary>
|
|
public virtual TextureWrapMode WrapMode { get; set; } = TextureWrapMode.Repeat;
|
|
|
|
/// <summary>
|
|
/// The Width of the texture
|
|
/// </summary>
|
|
public virtual int Width { get; protected set; }
|
|
|
|
/// <summary>
|
|
/// The height of the texture
|
|
/// </summary>
|
|
public virtual int Height { get; protected set; }
|
|
|
|
public override void Dispose()
|
|
{
|
|
base.Dispose();
|
|
GL.DeleteTexture(_id);
|
|
}
|
|
}
|
|
} |