Michael Ludwig avatar Michael Ludwig committed 7e18bcc

Add toString()

Comments (0)

Files changed (14)

src/com/ferox/effect/AlphaTest.java

 	public void setReferenceValue(float refValue) {
 		this.refValue = Math.max(0, Math.min(1f, refValue));
 	}
+
+	@Override
+	public String toString() {
+		return "(AlphaTest test: " + alphaTest + " reference: " + refValue
+						+ ")";
+	}
 }

src/com/ferox/effect/BlendMode.java

 		}
 		this.dstBlendFactor = dstBlendFactor;
 	}
+
+	@Override
+	public String toString() {
+		return "(BlendMode blendFunc: " + blendFunc + " src: " + srcBlendFactor
+						+ " dst:" + dstBlendFactor + ")";
+	}
 }

src/com/ferox/effect/DepthTest.java

 	public void setWriteEnabled(boolean writeDepth) {
 		enableWrite = writeDepth;
 	}
+
+	@Override
+	public String toString() {
+		return "(DepthTest test: " + depthTest + " write: " + enableWrite + ")";
+	}
 }

src/com/ferox/effect/EffectSet.java

+package com.ferox.effect;
+
+public class EffectSet {
+
+}

src/com/ferox/effect/FogReceiver.java

 		}
 		this.fogSource = fogSource;
 	}
+
+	@Override
+	public String toString() {
+		return "(FogReceiver coord: " + fogSource + ")";
+	}
 }

src/com/ferox/effect/GlslShader.java

 package com.ferox.effect;
 
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.IdentityHashMap;
 import java.util.List;
 		public GlslUniform getUniform() {
 			return variable;
 		}
+
+		@Override
+		public String toString() {
+			return "<"
+							+ variable
+							+ " = "
+							+ (value instanceof int[] ? Arrays
+											.toString((int[]) value) : Arrays
+											.toString((float[]) value))
+							+ ", dirty: " + isDirty + ">";
+		}
 	}
 
 	private final Map<GlslUniform, Integer> indexMap;
 			indexMap.put(uniforms.get(i).variable, Integer.valueOf(i));
 		}
 	}
+
+	@Override
+	public String toString() {
+		return "(GlslShader bindings: " + uniforms + ")";
+	}
 }

src/com/ferox/effect/LightReceiver.java

 		}
 		this.globalAmb = globalAmb;
 	}
+
+	@Override
+	public String toString() {
+		return "(LightReceiver ambient: " + globalAmb + " separateSpec: "
+						+ separateSpec + " local: " + localViewer
+						+ " twoSided: " + useTwoSidedLighting + ")";
+	}
 }

src/com/ferox/effect/LineStyle.java

 	public void setLineWidth(float lineWidth) {
 		this.lineWidth = Math.max(1f, lineWidth);
 	}
+
+	@Override
+	public String toString() {
+		return "(LineStyle width: " + lineWidth + " smoothed: "
+						+ enableSmoothing + " stippled: " + enableStippling
+						+ " pattern: " + Integer.toHexString(stipplePattern)
+						+ " factor: " + stippleFactor + ")";
+	}
 }

src/com/ferox/effect/Material.java

 		}
 		this.spec = spec;
 	}
+
+	@Override
+	public String toString() {
+		return "(Material ambient: " + amb + " diffuse: " + diff
+						+ " specular: " + spec + " shininess: " + shininess
+						+ " smoothed: " + smooth + ")";
+	}
 }

src/com/ferox/effect/MultiTexture.java

 	public void clearTextures() {
 		units.clear();
 	}
+
+	@Override
+	public String toString() {
+		return "(" + super.toString() + " numTextures: " + getNumTextures()
+						+ ")";
+	}
 }

src/com/ferox/effect/PointStyle.java

 		pointSizeMin = Math.max(1f, min);
 		pointSizeMax = Math.max(1f, max);
 	}
+	
+	@Override
+	public String toString() {
+		return "(" + super.toString() + " size: " + pointSize + ")";
+	}
 }

src/com/ferox/effect/PolygonStyle.java

 		}
 		this.winding = winding;
 	}
+
+	@Override
+	public String toString() {
+		return "(PolygonStyle front: " + frontMode + " back: " + backMode
+						+ " winding: " + winding + " offset: " + offset
+						+ " smoothed: " + enableSmoothing + ")";
+	}
 }

src/com/ferox/effect/StencilTest.java

 	public void setWriteMask(int writeMask) {
 		this.writeMask = writeMask;
 	}
+
+	@Override
+	public String toString() {
+		return "(StencilTest test: " + stencilFunc + " stencilFail: "
+						+ stencilFail + " depthFail: " + depthFail
+						+ " depthPass: " + depthPass + " reference: "
+						+ reference + " testMask: " + funcMask + " writeMask: "
+						+ writeMask + ")";
+	}
 }

src/com/ferox/effect/Texture.java

 		setTexCoordGenT(t);
 		setTexCoordGenR(r);
 	}
+	
+	@Override
+	public String toString() {
+		return "(" + super.toString() + " envMode: " + texEnvMode + ")";
+	}
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.