Skip to content
Alexander Orzechowski edited this page Oct 16, 2015 · 1 revision

This is a renderer that is designed to render models. This renderer in actuality does not render anything, it only calls the objects in the model that render everything. A argument may be passed to the .render() function and this renderer will render that model.

Extends: RendererAbstract

###Constructor

  • ModelRenderer(Tessellator tessellator)
    This creates a ModelRenderer that uses a default shader created by the passed tessellator object. This shader is the Tessellator.MODEL_FRAGMENT_LIGHTING_SHADER. This shader is cached so it be used later when it needs to use the default shader again.

  • ModelRenderer(Tessellator.Program shader)
    This creates a ModelRenderer that will use the passed shader to render models.

  • ModelRenderer(Tessellator.Model)
    This creates a ModelRenderer that will reneder the passed model unless a model was passed with the render functions. This will use the default renderer.

  • ModelRenderer(Tessellator tessellator, Tessellator.Model)
    This creates a ModelRenderer that will reneder the passed model unless a model was passed with the render functions. This will use the default renderer.

  • ModelRenderer(Tessellator.Program shader, Tessellator.Model)
    This creates a ModelRenderer that will reneder the passed model unless a model was passed with the render functions. The model will be rendered with the passed shader.
Clone this wiki locally