001 package com.croftsoft.core.media.jogl;
002
003 import javax.media.opengl.GL;
004
005 /***********************************************************************
006 * Interface for an object that can render itself using OpenGL.
007 *
008 * @version
009 * $Id: JoglRenderer.java,v 1.2 2008/02/18 21:49:19 croft Exp $
010 * @since
011 * 2008-02-15
012 * @author
013 * <a href="http://www.CroftSoft.com/">David Wallace Croft</a>
014 ***********************************************************************/
015
016 public interface JoglRenderer
017 ////////////////////////////////////////////////////////////////////////
018 ////////////////////////////////////////////////////////////////////////
019 {
020
021 public void init ( GL gl );
022
023 public void destroy ( GL gl );
024
025 public void render ( GL gl );
026
027 public void setBounds (
028 GL gl,
029 int x,
030 int y,
031 int width,
032 int height );
033
034 ////////////////////////////////////////////////////////////////////////
035 ////////////////////////////////////////////////////////////////////////
036 }