17.09.2020
+ Generic Scene + Generic Camera + Generic Window + Contexts for drawing and updateing + very basic 2D-implermention
This commit is contained in:
parent
9889366317
commit
589d131246
25 changed files with 383 additions and 78 deletions
24
SMCode/SM2D/Drawing/DrawEmpty.cs
Normal file
24
SMCode/SM2D/Drawing/DrawEmpty.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using OpenTK;
|
||||
using SM.Base.Contexts;
|
||||
using SM.Base.Scene;
|
||||
using SM.Base.Shader;
|
||||
using SM.Base.StaticObjects;
|
||||
using SM.OGL.Mesh;
|
||||
|
||||
namespace SM2D.Drawing
|
||||
{
|
||||
public class DrawEmpty : IShowItem
|
||||
{
|
||||
public void Update(UpdateContext context)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public void Draw(DrawContext context)
|
||||
{
|
||||
context.ModelMatrix = Matrix4.CreateScale(100, 100, 1);
|
||||
|
||||
Shaders.Default.Draw(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue