Skip to content

Commit dcc778d

Browse files
author
LoneWandererProductions
committed
sync some stuff
1 parent c4ecb36 commit dcc778d

16 files changed

Lines changed: 128 additions & 168 deletions
189 Bytes
Loading
48 Bytes
Loading

RenderEngine/GLResourceManager.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ public sealed class GlResourceManager : IDisposable
3737
/// </summary>
3838
private bool _disposed;
3939

40+
public bool UseMatrices { get; set; } = true;
41+
4042
// --- Textures ---
4143

4244
/// <summary>
4345
/// Gets the texture.
44-
/// Be carefull, this can overwrite existing textures.
46+
/// Be careful, this can overwrite existing textures.
4547
/// </summary>
4648
/// <param name="filePath">The file path.</param>
4749
/// <returns>Id of Texture</returns>
@@ -126,11 +128,10 @@ public int GetShaderProgram(ShaderTypeApp appType)
126128
break;
127129

128130
case ShaderTypeApp.Wireframe:
129-
var useMatrices = true;
130-
vertexSrc = useMatrices
131+
vertexSrc = UseMatrices
131132
? ShaderResource.WireframeVertexShader
132133
: ShaderResource.WireframeVertexShaderPassThrough;
133-
fragmentSrc = useMatrices
134+
fragmentSrc = UseMatrices
134135
? ShaderResource.WireframeFragmentShader
135136
: ShaderResource.WireframeFragmentShaderPassThrough;
136137
break;
@@ -272,4 +273,4 @@ public void Dispose()
272273
GC.SuppressFinalize(this);
273274
}
274275
}
275-
}
276+
}

RenderEngine/Geometry2DBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,4 @@ internal static (float x, float y, int r, int g, int b, int a)[] BuildCircleOutl
197197
return pts;
198198
}
199199
}
200-
}
200+
}

RenderEngine/ImageToolkit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,4 @@ public int[] CompositeToBits()
187187
}
188188
}
189189
}
190-
}
190+
}

RenderEngine/Interfaces/IImageToolkit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ public interface IImageToolkit
6363
/// <param name="insertAt">The insert at.</param>
6464
void MergeLayers(LayeredImageContainer container, int[] layerIndices, int insertAt);
6565
}
66-
}
66+
}

RenderEngine/LayeredImageContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,4 @@ private static unsafe void AlphaBlend(Span<byte> baseSpan, Span<byte> overlaySpa
236236
}
237237
}
238238
}
239-
}
239+
}

RenderEngine/OpenTKHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,4 +295,4 @@ internal static bool IsOpenGlCompatible(int requiredMajor = 4, int requiredMinor
295295
return _glVersion >= new Version(requiredMajor, requiredMinor);
296296
}
297297
}
298-
}
298+
}

RenderEngine/RenderBatch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,4 +309,4 @@ public void AddHostAction(Action action)
309309
HostActions.Add(action);
310310
}
311311
}
312-
}
312+
}

RenderEngine/RenderResource.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,9 @@ internal static class RenderResource
3333
/// </summary>
3434
internal const string ErrorNoLayers = "No layers to composite.";
3535

36-
/// <summary>
37-
/// The shader skybox vertex
38-
/// </summary>
39-
internal const string ShaderSkyboxVertex = "skybox_vertex.glsl";
40-
41-
/// <summary>
42-
/// The shader skybox fragment
43-
/// </summary>
44-
internal const string ShaderSkyboxFragment = "skybox_fragment.glsl";
45-
4636
/// <summary>
4737
/// The error layer size mismatch
4838
/// </summary>
4939
internal const string ErrorLayerSizeMismatch = "Layer size mismatch.";
5040
}
51-
}
41+
}

0 commit comments

Comments
 (0)