Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions FosterSamples.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Froggymark", "Froggymark\Fr
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FosterImGui", "ImGui\FosterImGui.csproj", "{ED95B28D-2822-4F3D-B1C5-591658BB2380}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld", "HelloWorld\HelloWorld.csproj", "{CC124445-0A7B-42FC-92E1-7FE0BD3286B9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -36,5 +38,9 @@ Global
{AA3B2D39-7BF3-4CCD-8F19-672474E71D41}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AA3B2D39-7BF3-4CCD-8F19-672474E71D41}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AA3B2D39-7BF3-4CCD-8F19-672474E71D41}.Release|Any CPU.Build.0 = Release|Any CPU
{CC124445-0A7B-42FC-92E1-7FE0BD3286B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CC124445-0A7B-42FC-92E1-7FE0BD3286B9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CC124445-0A7B-42FC-92E1-7FE0BD3286B9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CC124445-0A7B-42FC-92E1-7FE0BD3286B9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
12 changes: 12 additions & 0 deletions HelloWorld/HelloWorld.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FosterFramework" Version="0.1.11-alpha" />
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions HelloWorld/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Foster.Framework;

App.Register<Game>();
App.Run("Hello World", 640, 360);

class Game : Module
{
public override void Render() => Graphics.Clear(0x7d9345);
}
4 changes: 4 additions & 0 deletions HelloWorld/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Hello World
![Screenshot](screenshot.png "Screenshot")

Hello, Foster!
Binary file added HelloWorld/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Samples Projects and Demos for the C# [Foster Framework](https://github.com/Fost

| Sample | Description | Preview |
| --- | --- | --- |
| [Hello World](https://github.com/FosterFramework/Samples/tree/main/HelloWorld) | Hello, Foster! | <img width="200" src="HelloWorld/screenshot.png"> |
| [Shapes](https://github.com/FosterFramework/Samples/tree/main/Shapes) | A small program that draws shapes to the screen without loading any assets | <img width="200" src="Shapes/screenshot.png"> |
| [Froggymark](https://github.com/FosterFramework/Samples/tree/main/Froggymark) | Performance test that draws as many quads to the screen as it can | <img width="200" src="Froggymark/screenshot.png"> |
| [ImGui](https://github.com/FosterFramework/Samples/tree/main/ImGui) | An example using ImGui.NET wrapped in Foster draw calls | <img width="200" src="ImGui/screenshot.png"> |
Expand Down