Ejemplo n.º 1
0
 public DX11VertexGeometry(DX11RenderContext context)
     : base(context)
 {
     this.drawer = new DX11DefaultVertexDrawer();
     this.drawer.Assign(this);
     this.ownsvbo = true;
 }
Ejemplo n.º 2
0
 public DX11NullGeometry(DX11NullGeometry owner)
 {
     this.context = owner.context;
     this.drawer = owner.drawer;
     this.InputLayout = owner.InputLayout;
     this.Topology = owner.Topology;
 }
Ejemplo n.º 3
0
 public DX11NullGeometry(DX11RenderContext context, IDX11GeometryDrawer<DX11NullGeometry> drawer)
     : base(context)
 {
     this.drawer = drawer;
     this.drawer.Assign(this);
     this.InputLayout = new InputElement[0];
     this.Topology = PrimitiveTopology.PointList;
 }
Ejemplo n.º 4
0
 public DX11NullGeometry(DX11NullGeometry owner)
 {
     this.context = owner.context;
     this.drawer = owner.drawer;
     this.InputLayout = owner.InputLayout;
     this.Topology = owner.Topology;
     this.HasBoundingBox = owner.HasBoundingBox;
     this.BoundingBox = owner.BoundingBox;
 }
Ejemplo n.º 5
0
        public DX11NullGeometry(DX11RenderContext context, int VertexCount)
            : base(context)
        {
            DX11NullDrawer d = new DX11NullDrawer();
            d.VertexCount = VertexCount;
            this.drawer = d;
            this.drawer.Assign(this);

            this.InputLayout = new InputElement[0];
            this.Topology = PrimitiveTopology.PointList;
        }
Ejemplo n.º 6
0
        public DX11IndexOnlyGeometry(DX11RenderContext context)
            : base(context)
        {
            this.drawer = new DX11DefaultIndexOnlyDrawer();
            this.drawer.Assign(this);

            this.ownsido = true;
            this.LargeIndexFormat = true;
            this.InputLayout = new InputElement[0];
            this.Topology = PrimitiveTopology.TriangleList;
        }
Ejemplo n.º 7
0
        public DX11VertexGeometry(DX11VertexGeometry owner)
        {
            this.ownsvbo = false;

            this.context = owner.context;
            this.drawer = owner.drawer;
            this.InputLayout = owner.InputLayout;
            this.Topology = owner.Topology;
            this.VertexBuffer = owner.VertexBuffer;
            this.VertexSize = owner.VertexSize;
            this.VerticesCount = owner.VerticesCount;
        }
Ejemplo n.º 8
0
        internal DX11IndexOnlyGeometry(DX11IndexOnlyGeometry owner)
        {
            this.ownsido = false;

            this.context = owner.context;
            this.drawer = owner.drawer;
            this.InputLayout = owner.InputLayout;
            this.Topology = owner.Topology;
            this.IndexBuffer = owner.IndexBuffer;
            this.HasBoundingBox = owner.HasBoundingBox;
            this.BoundingBox = owner.BoundingBox;
        }
Ejemplo n.º 9
0
        public DX11IndexedGeometry(DX11IndexedGeometry owner)
        {
            this.ownsvbo = false;
            this.ownsido = false;

            this.context        = owner.context;
            this.drawer         = owner.drawer;
            this.IndexBuffer    = owner.IndexBuffer;
            this.InputLayout    = owner.InputLayout;
            this.Topology       = owner.Topology;
            this.VertexBuffer   = owner.VertexBuffer;
            this.VertexSize     = owner.VertexSize;
            this.VerticesCount  = owner.VerticesCount;
            this.HasBoundingBox = owner.HasBoundingBox;
            this.BoundingBox    = owner.BoundingBox;
        }
Ejemplo n.º 10
0
 public void AssignDrawer(IDX11GeometryDrawer <DX11IndexOnlyGeometry> drawer)
 {
     this.drawer = drawer;
     this.drawer.Assign(this);
 }
Ejemplo n.º 11
0
 public void AssignDrawer(IDX11GeometryDrawer <DX11NullGeometry> drawer)
 {
     this.drawer = drawer;
     this.drawer.Assign(this);
 }
Ejemplo n.º 12
0
 public void AssignDrawer(IDX11GeometryDrawer<DX11VertexGeometry> drawer)
 {
     this.drawer = drawer;
     this.drawer.Assign(this);
 }
Ejemplo n.º 13
0
 public void Draw(IDX11GeometryDrawer <DX11IndexedGeometry> drawer)
 {
     drawer.Draw(this.context.CurrentDeviceContext);
 }
Ejemplo n.º 14
0
 public void AssignDrawer(IDX11GeometryDrawer<DX11IndexOnlyGeometry> drawer)
 {
     this.drawer = drawer;
     this.drawer.Assign(this);
 }