04.10.2020
+ render pipeline system for more control about the renderering. + Log system + Framebuffer system ~ Default shader was moved to pipelines.
This commit is contained in:
parent
97e638d9d9
commit
820d6ce700
34 changed files with 660 additions and 106 deletions
|
|
@ -4,6 +4,7 @@ using System.Drawing;
|
|||
using System.Runtime.InteropServices;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using SM.Base;
|
||||
using SM.Base.Time;
|
||||
using SM2D;
|
||||
using SM2D.Drawing;
|
||||
|
|
@ -28,6 +29,8 @@ namespace SM_TEST
|
|||
FontSize = 32
|
||||
};
|
||||
|
||||
Log.SetLogFile(compressionFolder:"logs");
|
||||
|
||||
window = new GLWindow2D {Scaling = new Vector2(0, 1000)};
|
||||
//window.GrabCursor();
|
||||
window.SetScene(scene = new Scene());
|
||||
|
|
@ -53,11 +56,11 @@ namespace SM_TEST
|
|||
ZIndex = 1
|
||||
};
|
||||
|
||||
col.Objects.Add(new DrawTexture(new Bitmap("soldier_logo.png"))
|
||||
col.Add(new DrawTexture(new Bitmap("soldier_logo.png"))
|
||||
{
|
||||
ZIndex = 1
|
||||
});
|
||||
col.Objects.Add(new DrawColor(Color4.Black)
|
||||
col.Add(new DrawColor(Color4.Black)
|
||||
{
|
||||
Transform = { Rotation = 45, Position = new SM.Base.Types.CVector2(0, 25) },
|
||||
ZIndex = 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue