public static TextureManager Create(Device _device)
        {
            TextureManager textureManager = new TextureManager();
            if (textureManager.Initialize(_device))
                return textureManager;

            return null;
        }
Example #2
0
        public static Compiler Create(Device _device)
        {
            Compiler compiler = new Compiler();
            if ( compiler.Initialize( _device ) )
                return compiler;

            return null;
        }
        public static FrameBuffer Create(Device device)
        {
            FrameBuffer newBuffer       = new FrameBuffer();
            newBuffer.d3dSwapChain      = device.D3dDevice.GetSwapChain(0);
            newBuffer.d3dBackBuffer     = newBuffer.d3dSwapChain.GetBackBuffer(0,D3d.BackBufferType.Mono );
            newBuffer.d3dDepthBuffer    = device.D3dDevice.DepthStencilSurface;
            newBuffer.d3dDevice         = device;

            return newBuffer;
        }
Example #4
0
        public static Device Create(System.Windows.Forms.Control renderWindow)
        {
            Device newDevice = new Device();
            if ( newDevice.Initialize(renderWindow) )
            {
                return newDevice;
            }

            return null;
        }
 private bool Initialize(Device device)
 {
     this.textureDevice = device;
     return true;
 }
 public Capabilities( Device device )
 {
 }
Example #7
0
 private bool Initialize(Device _device)
 {
     return true;
 }