Updated GameDevCommon submodule to use .NET 4.6 & Mo

And fixed some color errors
This commit is contained in:
JappaWakka 2021-10-21 20:49:07 +02:00
parent a368099b07
commit d1fd63dafa
4 changed files with 5 additions and 5 deletions

View File

@ -523,7 +523,7 @@
If Me.EntityID <> "Floor" And Me.EntityID <> "Water" Then If Me.EntityID <> "Floor" And Me.EntityID <> "Water" Then
If drawViewBox = True Then If drawViewBox = True Then
BoundingBoxRenderer.Render(ViewBox, Core.GraphicsDevice, Screen.Camera.View, Screen.Camera.Projection, Color.LightCoral) BoundingBoxRenderer.Render(ViewBox, GraphicsDevice, Screen.Camera.View, Screen.Camera.Projection, Microsoft.Xna.Framework.Color.LightCoral)
End If End If
End If End If
Else Else

View File

@ -66,7 +66,7 @@
End If End If
If drawViewBox = True Then If drawViewBox = True Then
BoundingBoxRenderer.Render(ViewBox, Core.GraphicsDevice, Screen.Camera.View, Screen.Camera.Projection, Color.Red) BoundingBoxRenderer.Render(ViewBox, Core.GraphicsDevice, Screen.Camera.View, Screen.Camera.Projection, Microsoft.Xna.Framework.Color.Red)
End If End If
End If End If
End Sub End Sub

View File

@ -371,11 +371,11 @@
Dim renderTarget As RenderTarget2D = New RenderTarget2D(Core.GraphicsDevice, CInt(size.X), CInt(size.Y * 3)) Dim renderTarget As RenderTarget2D = New RenderTarget2D(Core.GraphicsDevice, CInt(size.X), CInt(size.Y * 3))
Core.GraphicsDevice.SetRenderTarget(renderTarget) Core.GraphicsDevice.SetRenderTarget(renderTarget)
Core.GraphicsDevice.Clear(Color.Transparent) Core.GraphicsDevice.Clear(Microsoft.Xna.Framework.Color.Transparent)
Core.SpriteBatch.Begin() Core.SpriteBatch.Begin()
Canvas.DrawRectangle(New Rectangle(0, 0, CInt(size.X), CInt(size.Y)), New Color(0, 0, 0, 150)) Canvas.DrawRectangle(New Rectangle(0, 0, CInt(size.X), CInt(size.Y)), New Color(0, 0, 0, 150))
Core.SpriteBatch.DrawString(font, text, Vector2.Zero, Color.White) Core.SpriteBatch.DrawString(font, text, Vector2.Zero, Microsoft.Xna.Framework.Color.White)
Core.SpriteBatch.End() Core.SpriteBatch.End()
Core.GraphicsDevice.SetRenderTarget(Nothing) Core.GraphicsDevice.SetRenderTarget(Nothing)

@ -1 +1 @@
Subproject commit 01d3ca9ff328a6b0f2776714a8852645a95f83c9 Subproject commit 9e7889cb8f763df06c13cc982b8f27ab59d255ac