public static Compiler Create(Device _device) { Compiler compiler = new Compiler(); if ( compiler.Initialize( _device ) ) return compiler; return null; }
private bool Initialize(System.Windows.Forms.Control renderWindow ) { d3dSettings = new Settings(); d3dDevice = DeviceUtility.CreateDevice( d3dSettings,renderWindow ); if (d3dDevice != null) { d3dCapabilities = new Capabilities(this); // Create subsystems. d3dPrimaryFrameBuffer = FrameBuffer.Create( this ); d3dGeometryManager = GeometryManager.Create( this ); d3dTextureManager = TextureManager.Create(this); d3dQueryManager = QueryManager.Create(this); d3dCompiler = Compiler.Create(this); return true; } return false; }