示例#1
0
        // Constructor
        internal Renderer(D3DDevice g)
        {
            // Initialize
            this.graphics = g;

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

            // We have no destructor
            GC.SuppressFinalize(this);
        }
示例#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);
        }