style: apply code-style cleanup (explicit types, this-qualification, switch expressions)
This commit is contained in:
@@ -9,8 +9,8 @@ public sealed class Texture : IDisposable
|
||||
|
||||
public Texture(string path)
|
||||
{
|
||||
_handle = GL.GenTexture();
|
||||
GL.BindTexture(TextureTarget.Texture2D, _handle);
|
||||
this._handle = GL.GenTexture();
|
||||
GL.BindTexture(TextureTarget.Texture2D, this._handle);
|
||||
|
||||
StbImage.stbi_set_flip_vertically_on_load(1);
|
||||
using FileStream stream = File.OpenRead(path);
|
||||
@@ -28,8 +28,8 @@ public sealed class Texture : IDisposable
|
||||
public void Use(TextureUnit unit = TextureUnit.Texture0)
|
||||
{
|
||||
GL.ActiveTexture(unit);
|
||||
GL.BindTexture(TextureTarget.Texture2D, _handle);
|
||||
GL.BindTexture(TextureTarget.Texture2D, this._handle);
|
||||
}
|
||||
|
||||
public void Dispose() => GL.DeleteTexture(_handle);
|
||||
public void Dispose() => GL.DeleteTexture(this._handle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user