Skip to content
This repository has been archived by the owner on Sep 18, 2022. It is now read-only.

Commit

Permalink
Added Initialize method
Browse files Browse the repository at this point in the history
  • Loading branch information
craftersmine committed Mar 27, 2019
1 parent 463b38c commit 1acba9e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions craftersmine.EtherEngine.Rendering/GLGDI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ public sealed class GLGDI
public GLGDI()
{
GLGraphics = new GLGraphics();
Initialize();
}

/// <summary>
/// Initializes GLGDI wrapper. It's automatically being called in constructor! Only use ones if you are having troubles with rendering!
/// </summary>
public void Initialize()
{
GLGraphics.Init();
GLGraphics.Reset();
GLGraphics.Clear();
Expand Down

0 comments on commit 1acba9e

Please sign in to comment.