// Constructor internal Renderer(D3DDevice g) { // Initialize this.graphics = g; // Register as resource g.RegisterResource(this); // We have no destructor GC.SuppressFinalize(this); }
// Constructor public ShaderManager(D3DDevice device) { // Initialize this.device = device; // Load ReloadResource(); // Register as resource device.RegisterResource(this); // We have no destructor GC.SuppressFinalize(this); }