Skip to content

Commit

Permalink
v0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Jspa2 committed Jan 31, 2023
1 parent fb4711a commit e94bfd8
Show file tree
Hide file tree
Showing 191 changed files with 4,818 additions and 1,883 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Text;
using System.Threading.Tasks;

namespace NextCore.UI.Drawings
namespace NextCore.Graphics.Drawings
{
public class ClipDrawingElement : DrawingElement
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace NextCore.UI.Drawings
namespace NextCore.Graphics.Drawings
{
public class Drawing
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Text;
using System.Threading.Tasks;

namespace NextCore.UI.Drawings
namespace NextCore.Graphics.Drawings
{
public abstract class DrawingElement
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System.Text;
using System.Threading.Tasks;

namespace NextCore.UI.Drawings
namespace NextCore.Graphics.Drawings
{
public abstract class RasterisableDrawingElement : DrawingElement
{
Expand Down
24 changes: 24 additions & 0 deletions NextCore.Graphics/NextCore.Graphics.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup>
<None Remove="Resources\zap-light16.psf" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Resources\zap-light16.psf" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Cosmos.Core" Version="0.1.0-localbuild20230102084851" />
<PackageReference Include="Cosmos.HAL2" Version="0.1.0-localbuild20230102084851" />
<PackageReference Include="Cosmos.System2" Version="0.1.0-localbuild20230102084851" />
</ItemGroup>

</Project>
Binary file added NextCore.Graphics/Resources/zap-light16.psf
Binary file not shown.
15 changes: 15 additions & 0 deletions NextCore.Graphics/VideoConsole/Fonts.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#pragma warning disable CS8618

using Cosmos.System.Graphics.Fonts;
using IL2CPU.API.Attribs;

namespace NextCore.Graphics.VideoConsole
{
internal static class Fonts
{
[ManifestResourceStream(ResourceName = "NextCore.Graphics.Resources.zap-light16.psf")]
private static byte[] _videoConsoleFontBytes;

internal static PCScreenFont VideoConsoleFont = PCScreenFont.LoadFont(_videoConsoleFontBytes);
}
}
Loading

0 comments on commit e94bfd8

Please sign in to comment.