17.09.2020

+ Generic Scene
+ Generic Camera
+ Generic Window
+ Contexts for drawing and updateing

+ very basic 2D-implermention
This commit is contained in:
Michel Fedde 2020-09-17 21:28:16 +02:00
parent 9889366317
commit 589d131246
25 changed files with 383 additions and 78 deletions

View file

@ -4,15 +4,26 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SM.Base;
using SM2D;
using SM2D.Drawing;
using SM2D.Scene;
namespace SM_TEST
{
class Program
{
static Scene scene;
static void Main(string[] args)
{
GenericWindow window = new GenericWindow();
GLWindow2D window = new GLWindow2D();
window.SetScene(scene = new Scene());
window.Load += WindowOnLoad;
window.Run();
}
private static void WindowOnLoad(object sender, EventArgs e)
{
scene.Objects.Add(new DrawEmpty());
}
}
}

View file

@ -63,6 +63,10 @@
<Project>{f604d684-bc1d-4819-88b5-8b5d03a17be0}</Project>
<Name>SM.OGL</Name>
</ProjectReference>
<ProjectReference Include="..\SMCode\SM2D\SM2D.csproj">
<Project>{a4565538-625a-42c6-a330-dd4f1abb3986}</Project>
<Name>SM2D</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>