Skip to content

Commit 327954d

Browse files
committed
Minor reference changes for v215
1 parent cfb40dc commit 327954d

5 files changed

Lines changed: 24 additions & 16 deletions

File tree

content/api_en/LIB_net/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ <h5>Server</h5>
4343
<a href="Server_available_.html">available()</a><br />
4444
<a href="Server_stop_.html">stop()</a><br />
4545
<a href="Server_disconnect_.html">disconnect()</a><br />
46+
<a href="Server_ip_.html">ip()</a><br />
4647
<br />
4748
</p>
4849

content/api_en/hint.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@
1111
<description><![CDATA[
1212
Set various hints and hacks for the renderer. This is used to handle obscure rendering features that cannot be implemented in a consistent manner across renderers. Each hint is enabled with the "ENABLE" syntax and disabled with "DISABLE." Some are enabled by default and other are disabled. For example, to turn on native fonts, use <b>hint(ENABLE_NATIVE_FONTS)</b> and later use <b>hint(DISABLE_NATIVE_FONTS)</b> to stop using the feature. Some options might graduate to standard features instead of hints over time.
1313
<br/><br/>
14-
hint(ENABLE_NATIVE_FONTS) - Use the native version fonts when they are installed, rather than the bitmapped version from a .vlw file. This is useful with the default renderer setting, as it will improve font rendering speed. This is not enabled by default, because it can be misleading while testing because the type will look great on your machine (because you have the font installed) but lousy on others' machines if the identical font is unavailable. This option can only be set per-sketch, and must be called before any use of <b>textFont()</b>.
14+
<b>hint(ENABLE_NATIVE_FONTS)</b> - Use the native version fonts when they are installed, rather than the bitmapped version from a .vlw file. This is useful with the default renderer setting, as it will improve font rendering speed. This is not enabled by default, because it can be misleading while testing because the type will look great on your machine (because you have the font installed) but lousy on others' machines if the identical font is unavailable. This option can only be set per-sketch, and must be called before any use of <b>textFont()</b>.
1515
<br/><br/>
16-
hint(DISABLE_DEPTH_TEST) - Disable the zbuffer, allowing you to draw on top of everything at will. When depth testing is disabled, items will be drawn to the screen sequentially, like a painting. This hint is most often used to draw in 3D, then draw in 2D on top of it (for instance, to draw GUI controls in 2D on top of a 3D interface). Starting in release 0149, this will also clear the depth buffer. Restore the default with hint(ENABLE_DEPTH_TEST), but note that with the depth buffer cleared, any 3D drawing that happens later in <b>draw()</b> will ignore existing shapes on the screen.
16+
<b>hint(DISABLE_DEPTH_TEST)</b> - Disable the zbuffer, allowing you to draw on top of everything at will. When depth testing is disabled, items will be drawn to the screen sequentially, like a painting. This hint is most often used to draw in 3D, then draw in 2D on top of it (for instance, to draw GUI controls in 2D on top of a 3D interface). Starting in release 0149, this will also clear the depth buffer. Restore the default with <b>hint(ENABLE_DEPTH_TEST)</b>, but note that with the depth buffer cleared, any 3D drawing that happens later in <b>draw()</b> will ignore existing shapes on the screen.
1717
<br/><br/>
18-
hint(ENABLE_DEPTH_SORT) - Enable primitive z-sorting of triangles and lines in P3D. This can slow performance considerably, and the algorithm is not yet perfect.
18+
<b>hint(ENABLE_DEPTH_SORT)</b> - Enable primitive z-sorting of triangles and lines in <b>P3D</b>. This can slow performance considerably, and the algorithm is not yet perfect.
1919
<br/><br/>
20-
hint(DISABLE_OPENGL_ERRORS) - Speeds up the P3D renderer setting by not checking for errors while running.
20+
<b>hint(DISABLE_OPENGL_ERRORS)</b> - Speeds up the <b>P3D</b> renderer setting by not checking for errors while running.
2121
<br/><br/>
22-
hint(DISABLE_DEPTH_MASK) - Disables writing into the depth buffer. This means that a shape drawn with this hint can be hidden by another shape drawn later, irrespective of their distances to the camera. Note that this is different from disabling the depth test. The depth test is still applied, as long as the DISABLE_DEPTH_TEST hint is not called, but the depth values of the objects are not recorded. This is useful when drawing a semi-transparent 3D object without depth sorting, in order to avoid visual glitches due the faces of the object being at different distances from the camera, but still having the object properly occluded by the rest of the objects in the scene.
22+
<b>hint(DISABLE_DEPTH_MASK)</b> - Disables writing into the depth buffer. This means that a shape drawn with this hint can be hidden by another shape drawn later, irrespective of their distances to the camera. Note that this is different from disabling the depth test. The depth test is still applied, as long as the <b>DISABLE_DEPTH_TEST</b> hint is not called, but the depth values of the objects are not recorded. This is useful when drawing a semi-transparent 3D object without depth sorting, in order to avoid visual glitches due the faces of the object being at different distances from the camera, but still having the object properly occluded by the rest of the objects in the scene.
2323
<br/><br/>
24-
hint(ENABLE_ACCURATE_2D) - It forces the P3D renderer to draw each shape (including its strokes) separately, instead of batching them into larger groups for better performance. One consequence of this is that 2D items drawn with P3D are correctly stacked on the screen, depending on the order in which they were drawn. Otherwise, glitches such as the stroke lines being drawn on top of the interior of all the shapes will occur. However, this hint could make rendering substantially slower, so it is recommended to use it only when drawing a small amount of shapes. For drawing entirely two-dimensional scenes, it is advised to use the P2D renderer instead, which doesn't need the hint to properly stack shapes and their strokes.
24+
<b>hint(ENABLE_ACCURATE_2D)</b> - It forces the <b>P3D</b> renderer to draw each shape (including its strokes) separately, instead of batching them into larger groups for better performance. One consequence of this is that 2D items drawn with <b>P3D</b> are correctly stacked on the screen, depending on the order in which they were drawn. Otherwise, glitches such as the stroke lines being drawn on top of the interior of all the shapes will occur. However, this hint could make rendering substantially slower, so it is recommended to use it only when drawing a small amount of shapes. For drawing entirely two-dimensional scenes, it is advised to use the <b>P2D</b> renderer instead, which doesn't need the hint to properly stack shapes and their strokes.
2525
<br/><br/>
26-
hint(ENABLE_STROKE_PERSPECTIVE) - It makes the stroke geometry (lines and points) to be affected by the perspective, meaning that they will look smaller as they move away from the camera.
26+
<b>hint(ENABLE_STROKE_PERSPECTIVE)</b> - It makes the stroke geometry (lines and points) to be affected by the perspective, meaning that they will look smaller as they move away from the camera.
2727
<br/><br/>
28-
hint(DISABLE_TEXTURE_MIPMAPS) - Disable generation of texture mipmaps in P2D or P3D. This results in lower quality - but faster - rendering of texture images when they appear smaller than their native resolutions (the mipmaps are scaled-down versions of a texture that make it look better when drawing it at a small size). However, the difference in performance is fairly minor on recent desktop video cards.
28+
<b>hint(DISABLE_TEXTURE_MIPMAPS)</b> - Disable generation of texture mipmaps in <b>P2D</b> or <b>P3D</b>. This results in lower quality - but faster - rendering of texture images when they appear smaller than their native resolutions (the mipmaps are scaled-down versions of a texture that make it look better when drawing it at a small size). However, the difference in performance is fairly minor on recent desktop video cards.
2929
<br/><br/>
30-
hint(ENABLE_STROKE_PURE) - Improves rendering glitches with <b>vertex()</b> in the default renderer
30+
<b>hint(ENABLE_STROKE_PURE)</b> - Improves rendering glitches with <b>vertex()</b> in the default renderer
3131
<br/><br/>
3232
As of release 0149, <b>unhint()</b> has been removed in favor of adding additional ENABLE/DISABLE constants to reset the default behavior. This prevents the double negatives, and also reinforces which hints can be enabled or disabled.
3333
]]></description>

content/api_en/include/ArrayList.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void draw() {
3030
// we say balls.size(). The length of an ArrayList is dynamic.
3131
// Notice how we are looping through the ArrayList backwards.
3232
// This is because we are deleting elements from the list.
33-
for (int i = balls.size()-1; i > 0; i--) {
33+
for (int i = balls.size()-1; i >= 0; i--) {
3434
// An ArrayList doesn't know what it is storing,
3535
// so we have to cast the object coming out.
3636
Ball ball = (Ball) balls.get(i);

generate/keywords_base.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ BOTTOM LITERAL2 textAlign_
3232
BURN LITERAL2 blend_
3333
CENTER LITERAL2
3434
CHATTER LITERAL2
35-
CHORD LITERAL2
35+
CHORD LITERAL2 arc_
3636
CLAMP LITERAL2
3737
CLICK LITERAL2
3838
CLOSE LITERAL2
@@ -109,7 +109,7 @@ MACOSX LITERAL2
109109
MAX_FLOAT LITERAL2
110110
MAX_INT LITERAL2
111111
MITER LITERAL2 stokeJoin_
112-
MODEL LITERAL2
112+
MODEL LITERAL2 textMode_
113113
MOVE LITERAL2 cursor_
114114
MULTIPLY LITERAL2 blend_
115115
NORMAL LITERAL2
@@ -151,6 +151,7 @@ RIGHT LITERAL2 keyCode
151151
ROUND LITERAL2 strokeCap_
152152
SCREEN LITERAL2 blend_
153153
SECAM LITERAL2
154+
SHAPE LITERAL2 textMode_
154155
SHIFT LITERAL2
155156
SPECULAR LITERAL2
156157
SOFT_LIGHT LITERAL2 blend_
@@ -212,9 +213,7 @@ extends KEYWORD1 extends
212213
false KEYWORD1 false
213214
final KEYWORD1 final
214215
finally KEYWORD1
215-
for KEYWORD1 for
216216
float KEYWORD1 float
217-
if KEYWORD1 if
218217
implements KEYWORD1 implements
219218
import KEYWORD1 import
220219
instanceof KEYWORD1
@@ -233,7 +232,6 @@ short KEYWORD1
233232
static KEYWORD1 static
234233
strictfp KEYWORD1
235234
super KEYWORD1 super
236-
switch KEYWORD1 switch
237235
this KEYWORD1 this
238236
throw KEYWORD1
239237
throws KEYWORD1
@@ -254,7 +252,7 @@ while FUNCTION1 while
254252

255253
# These items are a part of Processing but are not included in the reference
256254

257-
color KEYWORD1 color_datatype
255+
color KEYWORD1 color_datatype
258256

259257
boolean FUNCTION1 booleanconvert_
260258
byte FUNCTION1 byteconvert_
@@ -346,6 +344,8 @@ width KEYWORD3 width_
346344
height KEYWORD3 height_
347345

348346
PVector FUNCTION1 PVector
347+
ArrayList FUNCTION1 ArrayList
348+
HashMap FUNCTION1 HashMap
349349

350350

351351
# THE TEXT ABOVE IS HAND-WRITTEN AND FOUND IN THE FILE "keywords_base.txt"

todo.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ NEW LANGUAGE ELEMENTS IN REFERENCE
2929
- loadTable("somethingorother", "csv");
3030
- loadTable("somethingorother.csv", "tsv"); // override the .csv extension since the contents are tab delimited
3131

32+
- Will we add PShape.save to save out SVG and OBJ shapes created with the new syntax?
33+
3234
- add Server.ip()
3335
http://code.google.com/p/processing/issues/detail?id=1411
3436

@@ -50,6 +52,11 @@ loadXXX with second parameter for file type:
5052
- loadTable("somethingorother", "csv");
5153
- loadTable("somethingorother.csv", "tsv"); // override the .csv extension since the contents are tab delimited
5254

55+
- for functions that load/write a file, make sure this is consistent:
56+
1) a file in the data folder (or a relative path to it)
57+
2) an absolute path (something that starts with / on Linux or a drive letter on Windows)
58+
3) a URL (input only)
59+
5360
- add clear() in place of background(0, 0, 0, 0), this clears the background, only applicable to off-screen buffers
5461

5562
- write reference for getChild() re: OBJ

0 commit comments

Comments
 (0)