[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/model EdgeAttributes.java, 1.1, 1.2
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-05-07 13:39:39
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv14127/src/net/sourceforge/bprocessor/gl/model Modified Files: EdgeAttributes.java Log Message: added displaylists on surfaces and forward update call from glView to view to clear these in a consdervative manner. Better performance. Made drawGeneralEdge use drawEdge method with EdgeAttribute as well, seem to work, but look out for edge flaws :-D Index: EdgeAttributes.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/model/EdgeAttributes.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EdgeAttributes.java 7 Feb 2007 10:00:03 -0000 1.1 --- EdgeAttributes.java 7 May 2007 13:39:39 -0000 1.2 *************** *** 16,23 **** private boolean stipple; private float lineWidth; /** ! * Create default EdgeAttributes: black, nonstippled, and width of 1 */ public EdgeAttributes() { --- 16,24 ---- private boolean stipple; private float lineWidth; + private boolean drawVertices; /** ! * Create default EdgeAttributes: black, nonstippled, and width of 1 no vertex drawing */ public EdgeAttributes() { *************** *** 25,28 **** --- 26,30 ---- this.stipple = false; this.lineWidth = 1; + this.drawVertices = false; } *************** *** 72,75 **** --- 74,91 ---- return lineWidth; } + + /** + * @param b set the vertices to be drawn + */ + public void setDrawVertices(boolean b) { + this.drawVertices = b; + } + /** + * + * @return the drawVertices attribute + */ + public boolean getDrawVertices() { + return this.drawVertices; + } } |