2021-19-03
SM.Base: ~ Improved Keyboard.AreSpecificKeysPressed(int, int) ~ Made GenericTransformation.LastMaster's set public ~ Made the fixed update use the property "IsExiting" to determent if it should stop. ~ The MainFramebuffer of each RenderPipeline now has always a name. SM2D: ~ Moved the checking code of Mouse2D.MouseOver into a own method.
This commit is contained in:
parent
c8db1ce8bc
commit
71a22df8bd
7 changed files with 31 additions and 18 deletions
|
|
@ -36,7 +36,7 @@ namespace SM.Base.Window
|
|||
/// This contains the default shader.
|
||||
/// <para>Default: <see cref="SMRenderer.DefaultMaterialShader"/></para>
|
||||
/// </summary>
|
||||
public virtual MaterialShader DefaultShader { get; protected set; } = SMRenderer.DefaultMaterialShader;
|
||||
public virtual MaterialShader DefaultShader { get; protected set; }
|
||||
/// <summary>
|
||||
/// Here you can set a default material.
|
||||
/// </summary>
|
||||
|
|
@ -53,6 +53,8 @@ namespace SM.Base.Window
|
|||
/// <inheritdoc/>
|
||||
public virtual void Initialization()
|
||||
{
|
||||
MainFramebuffer.Name = GetType().Name + ".MainFramebuffer";
|
||||
|
||||
if (MainFramebuffer != null) Framebuffers.Add(MainFramebuffer);
|
||||
DefaultShader ??= SMRenderer.DefaultMaterialShader;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue