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

@ -15,7 +15,7 @@ namespace SM.OGL.Shaders
ShaderFileFiles = shaderFileFiles;
}
public void Compile()
public void Load()
{
_id = GL.CreateProgram();
@ -41,6 +41,11 @@ namespace SM.OGL.Shaders
}
protected override void Compile()
{
Load();
}
public void DrawObject(Mesh.Mesh mesh, bool bindVAO = false)
{
if (bindVAO) GL.BindVertexArray(mesh);