Add Consolas as sprite font
GitOrigin-RevId: e30c036fa144e580655d0b4bbbd5077eba72b62b
This commit is contained in:
parent
83709e9a61
commit
c247b6c389
@ -81,13 +81,13 @@ namespace Jumpy {
|
|||||||
// Draw RenderTarget to screen.
|
// Draw RenderTarget to screen.
|
||||||
GraphicsDevice.SetRenderTarget(null);
|
GraphicsDevice.SetRenderTarget(null);
|
||||||
GraphicsDevice.Clear(Color.Black);
|
GraphicsDevice.Clear(Color.Black);
|
||||||
spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Opaque,
|
spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend,
|
||||||
SamplerState.PointClamp, DepthStencilState.Default,
|
SamplerState.PointClamp, DepthStencilState.Default,
|
||||||
RasterizerState.CullNone);
|
RasterizerState.CullNone);
|
||||||
Rectangle drawRect = new Rectangle(
|
Rectangle drawRect = new Rectangle(
|
||||||
0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height);
|
0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height);
|
||||||
spriteBatch.Draw(renderTarget, drawRect, Color.White);
|
spriteBatch.Draw(renderTarget, drawRect, Color.White);
|
||||||
// spriteBatch.DrawString(font, "hello world", new Vector2(10, 10), Color.Black);
|
spriteBatch.DrawString(font, "FPS: 60", new Vector2(10, 10), Color.White);
|
||||||
spriteBatch.End();
|
spriteBatch.End();
|
||||||
|
|
||||||
base.Draw(gameTime);
|
base.Draw(gameTime);
|
||||||
|
Loading…
Reference in New Issue
Block a user