// Constructor
        internal Renderer(D3DDevice g)
        {
            // Initialize
            this.graphics = g;

            // Register as resource
            g.RegisterResource(this);

            // We have no destructor
            GC.SuppressFinalize(this);
        }
Example #2
0
        // Constructor
        public ShaderManager(D3DDevice device)
        {
            // Initialize
            this.device = device;

            // Load
            ReloadResource();

            // Register as resource
            device.RegisterResource(this);

            // We have no destructor
            GC.SuppressFinalize(this);
        }