Example #1
0
        public BillboardChain(string name, int maxElements, int numberOfChains, bool useTextureCoords, bool useColors,
                              bool dynamic)
            : base(name)
        {
            this.maxElementsPerChain = maxElements;
            this.chainCount          = numberOfChains;
            this.useTexCoords        = useTextureCoords;
            this.useVertexColor      = useColors;
            this.dynamic             = dynamic;

            this.vertexDeclDirty       = true;
            this.buffersNeedRecreating = true;
            this.boundsDirty           = true;
            this.indexContentDirty     = true;
            this.radius            = 0.0f;
            this.texCoordDirection = TexCoordDirection.U;

            this.vertexData = new VertexData();
            this.indexData  = new IndexData();

            this.otherTexCoordRange[0] = 0.0f;
            this.otherTexCoordRange[1] = 1.0f;

            SetupChainContainers();

            this.vertexData.vertexStart = 0;
            // index data setup later
            // set basic white material
            MaterialName = "BaseWhiteNoLighting";
        }
Example #2
0
		public BillboardChain( string name, int maxElements, int numberOfChains, bool useTextureCoords, bool useColors, bool dynamic )
			: base( name )
		{
			this.maxElementsPerChain = maxElements;
			this.chainCount = numberOfChains;
			this.useTexCoords = useTextureCoords;
			this.useVertexColor = useColors;
			this.dynamic = dynamic;

			this.vertexDeclDirty = true;
			this.buffersNeedRecreating = true;
			this.boundsDirty = true;
			this.indexContentDirty = true;
			this.radius = 0.0f;
			this.texCoordDirection = TexCoordDirection.U;

			this.vertexData = new VertexData();
			this.indexData = new IndexData();

			this.otherTexCoordRange[ 0 ] = 0.0f;
			this.otherTexCoordRange[ 1 ] = 1.0f;

			this.SetupChainContainers();

			this.vertexData.vertexStart = 0;
			// index data setup later
			// set basic white material
			this.MaterialName = "BaseWhiteNoLighting";
		}