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
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue