style: drop redundant type qualifiers, use explicit types (IDE cleanup)
Pure formatting from the IDE's code cleanup: remove redundant ClassName./namespace qualifiers and replace var with explicit types. No behavior change.
This commit is contained in:
@@ -2,7 +2,7 @@ using OpenTK.Graphics.OpenGL4;
|
||||
|
||||
namespace VoxelEngine.Rendering;
|
||||
|
||||
public sealed class ChunkRenderer : VoxelEngine.World.Streaming.IChunkRenderer
|
||||
public sealed class ChunkRenderer : World.Streaming.IChunkRenderer
|
||||
{
|
||||
private const int FloatsPerVertex = 6; // pos.xyz, uv, shade
|
||||
|
||||
@@ -12,8 +12,8 @@ public sealed class ChunkRenderer : VoxelEngine.World.Streaming.IChunkRenderer
|
||||
|
||||
public ChunkRenderer(float[] vertices)
|
||||
{
|
||||
this._vertexCount = vertices.Length / ChunkRenderer.FloatsPerVertex;
|
||||
int stride = ChunkRenderer.FloatsPerVertex * sizeof(float);
|
||||
this._vertexCount = vertices.Length / FloatsPerVertex;
|
||||
int stride = FloatsPerVertex * sizeof(float);
|
||||
|
||||
this._vao = GL.GenVertexArray();
|
||||
GL.BindVertexArray(this._vao);
|
||||
|
||||
Reference in New Issue
Block a user