26.09.2020
+ Added BoundingBoxes to Meshes + SM.Base.Objects.Mesh + Vertex Colors + ShowItem Collections + 2D Equlivant + Default Class to store Default Values + SM.OGL.GLSystem to store OpenGL specific system information + SM2D.DrawColor // not working yet + SM2D.DrawComplex to allow access to all features. + SM2D.DrawPolygon + Polygon system // for 2D only yet ~ Renamed SM.OGL.Mesh to SM.OGL.GenericMesh
This commit is contained in:
parent
c4a0847567
commit
617a7ef044
39 changed files with 598 additions and 66 deletions
|
|
@ -14,7 +14,7 @@ namespace SM.Base.Contexts
|
|||
public Matrix4 View;
|
||||
public Instance[] Instances;
|
||||
|
||||
public Mesh Mesh;
|
||||
public GenericMesh Mesh;
|
||||
public Material Material;
|
||||
|
||||
public Vector2 WorldScale;
|
||||
|
|
|
|||
|
|
@ -4,14 +4,16 @@ using OpenTK;
|
|||
using OpenTK.Graphics;
|
||||
using OpenTK.Graphics.OpenGL4;
|
||||
using SM.Base.Contexts;
|
||||
using SM.Base.Objects.Static;
|
||||
using SM.Base.Scene;
|
||||
using SM.Base.StaticObjects;
|
||||
using SM.OGL;
|
||||
using SM.OGL.Shaders;
|
||||
|
||||
namespace SM.Base
|
||||
{
|
||||
public class GenericWindow<TScene, TCamera> : GameWindow
|
||||
where TScene : GenericScene<TCamera>, new()
|
||||
public class GenericWindow<TScene, TItem, TCamera> : GameWindow
|
||||
where TScene : GenericScene<TCamera, TItem>, new()
|
||||
where TItem : IShowItem
|
||||
where TCamera : GenericCamera, new()
|
||||
{
|
||||
private TCamera _viewportCamera;
|
||||
|
|
@ -30,6 +32,17 @@ namespace SM.Base
|
|||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
GLSystem.INIT_SYSTEM();
|
||||
|
||||
Console.Write("----------------------\n" +
|
||||
"--- OpenGL Loading ---\n" +
|
||||
"----------------------------------\n" +
|
||||
$"--- {"DeviceVersion",14}: {GLSystem.DeviceVersion,-10} ---\n" +
|
||||
$"--- {"ForcedVersion",14}: {GLSystem.ForcedVersion,-10} ---\n" +
|
||||
$"--- {"ShadingVersion",14}: {GLSystem.ShadingVersion,-10} ---\n" +
|
||||
$"--- {"Debugging",14}: {GLSystem.Debugging,-10} ---\n" +
|
||||
$"----------------------------------\n");
|
||||
|
||||
base.OnLoad(e);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue