Exemplo n.º 1
0
        public static EllipsoidPrimitiveRenderable CreateInstance(Pool<EllipsoidPrimitiveRenderable> pool,
            int verticesCount, int indicesWFCount, int indicesCount, VertexBuffer vertexBuffer, IndexBuffer indicesWFBuffer,
            IndexBuffer indicesBuffer, Matrix world, Matrix view, Matrix projection, Color color, bool isOpaque)
        {
            EllipsoidPrimitiveRenderable result = null;

            if (!pool.TryGetInstance(out result))
            {
                result = new EllipsoidPrimitiveRenderable();
                pool.Add(result);
            }

            result.Initialize(verticesCount, indicesWFCount, indicesCount, vertexBuffer, indicesWFBuffer, indicesBuffer, ref world, ref view, ref projection, ref color, isOpaque);

            return result;
        }