mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-09-26 11:29:07 +02:00
Updated GameDevCommon submodule to use .NET 4.6 & Mo
And fixed some color errors
This commit is contained in:
parent
a368099b07
commit
d1fd63dafa
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user