Original Post
I'm pretty new to C# and have an error that I don't understand...
Here is my error: error CS1729: 'LevelEditor.Graphics.GraphicsEngine' does not contain a constructor that takes '1' arguments
The weird part is that I DO have a constructor that takes 1 argument defined in my graphics engine class... Any help on this would be great! Thanks!
In main.cs:
In Graphics.cs
Here is my error: error CS1729: 'LevelEditor.Graphics.GraphicsEngine' does not contain a constructor that takes '1' arguments
The weird part is that I DO have a constructor that takes 1 argument defined in my graphics engine class... Any help on this would be great! Thanks!
In main.cs:
static void Main(){ MainClass form = new MainClass(); // Create the form //Initialize the Engines GraphicsEngine m_graphics = new GraphicsEngine(ref form); ...}In Graphics.cs
namespace LevelEditor.Graphics{ public class GraphicsEngine { private Device DX_Device = null; GraphicsEngine(ref MainClass form) { if (InitializeDirect3D(ref form) == false) { MessageBox.Show("Could not initialize Direct3D.", "Error"); return; } } }}