Skip to content

Commit

Permalink
release of v 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hageldave committed May 6, 2020
1 parent 330add2 commit 6a0926c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion jplotter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.github.hageldave.jplotter</groupId>
<artifactId>jplotter</artifactId>
<version>0.3.0-SNAPSHOT</version>
<version>0.3.0</version>

<name>JPlotter</name>
<url>https://github.com/hageldave/JPlotter</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import hageldave.jplotter.gl.FBO;
import hageldave.jplotter.gl.VertexArray;
import hageldave.jplotter.misc.Glyph;
import hageldave.jplotter.renderers.PointsRenderer;
import hageldave.jplotter.util.Utils;
import hageldave.jplotter.util.Annotations.GLContextRequired;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public CoordSysRenderer() {
* Sets the {@link #isDirty} state of this CoordSysRenderer to true.
* This indicates that axis locations, tick marks, labels and guides
* have to be recomputed.
* This will be done during {@link #paintToFBO(int, int)} which
* The recomputing will be done during {@link #render(int, int, int, int)} which
* will set the isDirty state back to false.
*/
public void setDirty() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* for rendering some kind of {@link Renderable} (e.g. Points).
* It provides some typical attributes such as a List of Renderables to render,
* a Shader object, a projection and view matrix.
* It also implements the {@link #render(int, int)} method while exposing
* It also implements the {@link #render(int, int, int, int)} method while exposing
* a new interface for implementations of GenericRenderers that need
* to implement {@link #renderStart(int, int)} {@link #renderItem(Renderable)}
* and {@link #renderEnd()}.
Expand Down Expand Up @@ -81,7 +81,7 @@ public void render(int vpx, int vpy, int w, int h) {
}

/**
* Is called during the {@link #render(int, int)} routine before
* Is called during the {@link #render(int, int, int, int)} routine before
* {@link #renderItem(Renderable)} is called.
* At this stage the {@link #shader} has already been bound,
* the projection matrix {@link #orthoMX} been set
Expand All @@ -97,7 +97,7 @@ public void render(int vpx, int vpy, int w, int h) {
protected abstract void renderStart(int w, int h);

/**
* Is called during the {@link #render(int, int)} routine after
* Is called during the {@link #render(int, int, int, int)} routine after
* {@link #renderStart(int, int)} for every item contained in this renderer.
* <p>
* This method should take care of rendering the specified item, i.e.
Expand All @@ -110,7 +110,7 @@ public void render(int vpx, int vpy, int w, int h) {
protected abstract void renderItem(T item);

/**
* Is called during the {@link #render(int, int)} routine after
* Is called during the {@link #render(int, int, int, int)} routine after
* all items have been rendered ({@link #renderItem(Renderable)}).
* This will be called before the {@link #shader} is closed.
* <p>
Expand All @@ -123,7 +123,7 @@ public void render(int vpx, int vpy, int w, int h) {
/**
* Adds an item to this renderer's {@link #itemsToRender} list.
* The renderer will take care of calling {@link Renderable#initGL()} during
* its {@link #render(int, int)} method and will as well call
* its {@link #render(int, int, int, int)} method and will as well call
* {@link Renderable#updateGL()} if {@link Renderable#isDirty()}.
*
* @param item to add
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
* The Renderer interface defines methods to
* initialize the renderer,
* execute a rendering pass,
* closing the renderer.
* close the renderer.
* <p>
* <b>Implementation Notice:</b><br>
* A renderer's fragment shader is obliged to output color for two
* If this renderer directly uses a shader,
* its fragment shader is obliged to output color for two
* buffers, which are the two color attachments of an {@link FBO}.
* These have to be written to <br>
* {@code layout(location=0) out vec4 c1;} and <br>
Expand Down Expand Up @@ -51,15 +52,15 @@ public interface Renderer extends AutoCloseable, SVGRenderer {

/**
* En-/Disables this renderer. By default a renderer is enabled and will
* render upon {@link #render(int, int)} or {@link #renderSVG(org.w3c.dom.Document, org.w3c.dom.Element, int, int)}.
* render upon {@link #render(int, int, int, int)} or {@link #renderSVG(org.w3c.dom.Document, org.w3c.dom.Element, int, int)}.
* When disabled those methods return right away and will not render anything.
* @param enable true when activating, false when deactivating.
*/
public void setEnabled(boolean enable);

/**
* Whether this renderer is enabled or not. By default a renderer is enabled and will
* render upon {@link #render(int, int)} or {@link #renderSVG(org.w3c.dom.Document, org.w3c.dom.Element, int, int)}.
* render upon {@link #render(int, int, int, int)} or {@link #renderSVG(org.w3c.dom.Document, org.w3c.dom.Element, int, int)}.
* When disabled those methods return right away and will not render anything.
* @return true when active
*/
Expand Down

0 comments on commit 6a0926c

Please sign in to comment.