[committed] Issue 15: Misleading Documentation / Incorrect implementation

cleaning up some issues.

http://code.google.com/p/jmonkeyengine/issues/detail?id=15



GLSLShaderObjectsState.load(string,string) has a misleading javadoc.

It says it loads a file, when i really just parses the input string.


Index: src/com/jme/scene/state/GLSLShaderObjectsState.java
===================================================================
--- src/com/jme/scene/state/GLSLShaderObjectsState.java   (revision 4075)
+++ src/com/jme/scene/state/GLSLShaderObjectsState.java   (working copy)
@@ -810,13 +810,13 @@
    }
     
     /**
-     * <code>load</code> loads the shader object from the specified file. The
+     * <code>load</code> loads the shader object from the specified string. The
      * program must be in ASCII format. We delegate the loading to each
      * implementation because we do not know in what format the underlying API
      * wants the data.
      *
-     * @param vert text file containing the vertex shader object
-     * @param frag text file containing the fragment shader object
+     * @param vert string containing the vertex shader object
+     * @param frag string containing the fragment shader object
      */
     public void load(String vert, String frag){
         vertShader = vert;

Nice, didn't even know about that section :slight_smile:



Got one done also…

committed