Exemplo n.º 1
0
        /// <inheritdoc /> from IComponent
        public void Load()
        {
            ThrowIfDisposed();

            if (program == null)
            {
                lock (ProgramStateLock)
                {
                    if (program == null)
                    {
                        program        = programBuilder.Build();
                        programBuilder = null;
                    }
                }
            }

            this.vertexBuffer        = this.vertexBufferBuilder.Build();
            this.vertexBufferBuilder = null;
        }
Exemplo n.º 2
0
        /// <inheritdoc />
        public void Load()
        {
            ThrowIfDisposed();

            if (program == null)
            {
                lock (ProgramStateLock)
                {
                    if (program == null)
                    {
                        program        = programBuilder.Build();
                        programBuilder = null;
                    }
                }
            }

            this.coloredTriangleBuffer        = coloredTriangleBufferBuilder.Build();
            this.coloredTriangleBufferBuilder = null;

            this.coloredLineBuffer        = coloredLineBufferBuilder.Build();
            this.coloredLineBufferBuilder = null;
        }