Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/model
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16636/src/net/sourceforge/bprocessor/gl/model
Added Files:
GlObject.java
Log Message:
Added GLObject to the gl/model and made view contain a list of them to draw and intersect
--- NEW FILE: GlObject.java ---
//---------------------------------------------------------------------------------
// $Id: GlObject.java,v 1.1 2006/12/13 17:42:13 rimestad Exp $
//
// Copyright (c) 2005 The BProcessor Team (http://bprocessor.sourceforge.net)
// Released under the Lesser GNU Public License v2.1
//---------------------------------------------------------------------------------
package net.sourceforge.bprocessor.gl.model;
import net.java.games.jogl.GLDrawable;
import net.sourceforge.bprocessor.model.Edge;
import net.sourceforge.bprocessor.model.Vertex;
/**
* A object for making more interesting graphics for tools and the like
* Can make any gl operations, and are called during every drawing in the view
*/
public interface GlObject {
/**
* Draw the globject via the GL draw methods
* @param gld the GLDrawable
*/
public void draw(GLDrawable gld);
/**
* Calculate the intersection between the GLObject and the given edge
* @param e The edge to calc intersection with
* @return The intersection vertex
*/
public Vertex intersection(Edge e);
}
|