Home | History | Annotate | Download | only in g3d
      1 /*******************************************************************************
      2  * Copyright 2011 See AUTHORS file.
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *   http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  ******************************************************************************/
     16 
     17 package com.badlogic.gdx.graphics.g3d;
     18 
     19 import com.badlogic.gdx.graphics.g3d.model.Node;
     20 import com.badlogic.gdx.utils.Array;
     21 import com.badlogic.gdx.utils.Pool;
     22 
     23 /** Returns a list of {@link Renderable} instances to be rendered by a {@link ModelBatch}.
     24  * @author badlogic */
     25 public interface RenderableProvider {
     26 	/** Returns {@link Renderable} instances. Renderables are obtained from the provided {@link Pool} and added to the provided
     27 	 * array. The Renderables obtained using {@link Pool#obtain()} will later be put back into the pool, do not store them
     28 	 * internally. The resulting array can be rendered via a {@link ModelBatch}.
     29 	 * @param renderables the output array
     30 	 * @param pool the pool to obtain Renderables from */
     31 	public void getRenderables (Array<Renderable> renderables, Pool<Renderable> pool);
     32 }
     33