Fidchells_eye here again
I am converting an old C++ to C#
But before i can continue to do that I need the test render function DrawX() to draw an X on screen
But my setup function is failing, due to GL being NULL.
The structure of the project is;
BaseScope is inherited into any ToolScope Class.
The BaseScope class is used in the ModularScopeDisplay class so I can switch the tools as needed
The main does have a GLControl called GLDisplay1.
public class ModularScopeDisplay
public ModularScopeDisplay(OpenTK.GLControl GL_Display, ScopeBase.ScopeMode mode)
if (mode == ScopeBase.ScopeMode.WFM)
sBase = new Scope_WFM(ref GL_Display);
//gl = GL_Display;
public abstract class ScopeBase
protected OpenTK.Graphics.OpenGL.GL gl;
public class Scope_WFM:ScopeBase