FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Changes to source and XML for 2.0 Beta Reference · atifakin/processing@46fa904 · GitHub

Repository navigation

Commit 46fa904

Browse files
committed
Changes to source and XML for 2.0 Beta Reference
1 parent ee9bcea commit 46fa904

8 files changed

Lines changed: 125 additions & 24 deletions

File tree

‎core/src/processing/core/PApplet.java‎

Lines changed: 68 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3348,12 +3348,9 @@ public void link(String url) {
33483348

33493349

33503350
/**
3351-
* ( begin auto-generated from link.xml )
3352-
*
33533351
* Links to a webpage either in the same window or in a new window. The
33543352
* complete URL must be specified.
3355-
*
3356-
* ( end auto-generated )
3353+
*
33573354
* <h3>Advanced</h3>
33583355
* Link to an external page without all the muss.
33593356
* <p>
@@ -3365,7 +3362,6 @@ public void link(String url) {
33653362
* or whatever you want as your browser, since Linux doesn't
33663363
* yet have a standard method for launching URLs.
33673364
*
3368-
* @webref input:web
33693365
* @param url the complete URL, as a String in quotes
33703366
* @param target the name of the window in which to load the URL, as a String in quotes
33713367
* @deprecated the 'target' parameter is no longer relevant with the removal of applets
@@ -5871,6 +5867,8 @@ private Frame selectFrame() {
58715867
* For advanced users, the method must be 'public', which is true for all
58725868
* methods inside a sketch when run from the PDE, but must explicitly be
58735869
* set when using Eclipse or other development environments.
5870+
*
5871+
* @webref input:files
58745872
* @param prompt message to the user
58755873
* @param callback name of the method to be called when the selection is made
58765874
*/
@@ -5896,12 +5894,17 @@ static public void selectInput(String prompt, String callbackMethod,
58965894
}
58975895

58985896

5899-
/** See selectInput() for details. */
5897+
/**
5898+
* See selectInput() for details.
5899+
*
5900+
* @webref output:files
5901+
* @param prompt message to the user
5902+
* @param callback name of the method to be called when the selection is made
5903+
*/
59005904
public void selectOutput(String prompt, String callback) {
59015905
selectOutput(prompt, callback, null);
59025906
}
5903-
5904-
5907+
59055908
public void selectOutput(String prompt, String callback, File file) {
59065909
selectOutput(prompt, callback, file, this);
59075910
}
@@ -5965,7 +5968,13 @@ public void run() {
59655968
}
59665969

59675970

5968-
/** See selectInput() for details. */
5971+
/**
5972+
* See selectInput() for details.
5973+
*
5974+
* @webref input:files
5975+
* @param prompt message to the user
5976+
* @param callback name of the method to be called when the selection is made
5977+
*/
59695978
public void selectFolder(String prompt, String callback) {
59705979
selectFolder(prompt, callback, null);
59715980
}
@@ -10613,6 +10622,16 @@ public void noClip() {
1061310622
}
1061410623

1061510624

10625+
/**
10626+
* ( begin auto-generated from blendMode.xml )
10627+
*
10628+
* This is a new reference entry for Processing 2.0. It will be updated shortly.
10629+
*
10630+
* ( end auto-generated )
10631+
*
10632+
* @webref Rendering
10633+
* @param mode the blending mode to use
10634+
*/
1061610635
public void blendMode(int mode) {
1061710636
if (recorder != null) recorder.blendMode(mode);
1061810637
g.blendMode(mode);
@@ -10644,34 +10663,72 @@ public PShape createShape(int kind, float... p) {
1064410663
}
1064510664

1064610665

10666+
/**
10667+
* ( begin auto-generated from loadShader.xml )
10668+
*
10669+
* This is a new reference entry for Processing 2.0. It will be updated shortly.
10670+
*
10671+
* ( end auto-generated )
10672+
*
10673+
* @webref rendering:shaders
10674+
* @param fragFilename name of fragment shader file
10675+
*/
1064710676
public PShader loadShader(String fragFilename) {
1064810677
return g.loadShader(fragFilename);
1064910678
}
1065010679

1065110680

10681+
/**
10682+
* @param vertFilename name of vertex shader file
10683+
*/
1065210684
public PShader loadShader(String fragFilename, String vertFilename) {
1065310685
return g.loadShader(fragFilename, vertFilename);
1065410686
}
1065510687

1065610688

10689+
/**
10690+
* ( begin auto-generated from shader.xml )
10691+
*
10692+
* This is a new reference entry for Processing 2.0. It will be updated shortly.
10693+
*
10694+
* ( end auto-generated )
10695+
*
10696+
* @webref rendering:shaders
10697+
* @param shader name of shader file
10698+
*/
1065710699
public void shader(PShader shader) {
1065810700
if (recorder != null) recorder.shader(shader);
1065910701
g.shader(shader);
1066010702
}
1066110703

1066210704

10705+
/**
10706+
* @param kind type of shader, either POINTS, LINES, or TRIANGLES
10707+
*/
1066310708
public void shader(PShader shader, int kind) {
1066410709
if (recorder != null) recorder.shader(shader, kind);
1066510710
g.shader(shader, kind);
1066610711
}
1066710712

1066810713

10714+
/**
10715+
* ( begin auto-generated from resetShader.xml )
10716+
*
10717+
* This is a new reference entry for Processing 2.0. It will be updated shortly.
10718+
*
10719+
* ( end auto-generated )
10720+
*
10721+
* @webref rendering:shaders
10722+
*/
1066910723
public void resetShader() {
1067010724
if (recorder != null) recorder.resetShader();
1067110725
g.resetShader();
1067210726
}
1067310727

1067410728

10729+
/**
10730+
* @param kind type of shader, either POINTS, LINES, or TRIANGLES
10731+
*/
1067510732
public void resetShader(int kind) {
1067610733
if (recorder != null) recorder.resetShader(kind);
1067710734
g.resetShader(kind);
@@ -11541,9 +11598,9 @@ public void smooth() {
1154111598

1154211599

1154311600
/**
11544-
*
11601+
*
1154511602
* @param level either 2, 4, or 8
11546-
*/
11603+
*/
1154711604
public void smooth(int level) {
1154811605
if (recorder != null) recorder.smooth(level);
1154911606
g.smooth(level);

‎core/src/processing/core/PGraphics.java‎

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,16 @@ public void noClip() {
15901590

15911591
// BLEND
15921592

1593-
1593+
/**
1594+
* ( begin auto-generated from blendMode.xml )
1595+
*
1596+
* This is a new reference entry for Processing 2.0. It will be updated shortly.
1597+
*
1598+
* ( end auto-generated )
1599+
*
1600+
* @webref Rendering
1601+
* @param mode the blending mode to use
1602+
*/
15941603
public void blendMode(int mode) {
15951604
showMissingWarning("blendMode");
15961605
}
@@ -1640,34 +1649,66 @@ public PShape createShape(int kind, float... p) {
16401649

16411650
// SHADERS
16421651

1643-
1652+
/**
1653+
* ( begin auto-generated from loadShader.xml )
1654+
*
1655+
* This is a new reference entry for Processing 2.0. It will be updated shortly.
1656+
*
1657+
* ( end auto-generated )
1658+
*
1659+
* @webref rendering:shaders
1660+
* @param fragFilename name of fragment shader file
1661+
*/
16441662
public PShader loadShader(String fragFilename) {
16451663
showMissingWarning("loadShader");
16461664
return null;
16471665
}
16481666

1649-
1667+
/**
1668+
* @param vertFilename name of vertex shader file
1669+
*/
16501670
public PShader loadShader(String fragFilename, String vertFilename) {
16511671
showMissingWarning("loadShader");
16521672
return null;
16531673
}
16541674

1655-
1675+
/**
1676+
* ( begin auto-generated from shader.xml )
1677+
*
1678+
* This is a new reference entry for Processing 2.0. It will be updated shortly.
1679+
*
1680+
* ( end auto-generated )
1681+
*
1682+
* @webref rendering:shaders
1683+
* @param shader name of shader file
1684+
*/
16561685
public void shader(PShader shader) {
16571686
showMissingWarning("shader");
16581687
}
16591688

1660-
1689+
/**
1690+
* @param kind type of shader, either POINTS, LINES, or TRIANGLES
1691+
*/
16611692
public void shader(PShader shader, int kind) {
16621693
showMissingWarning("shader");
16631694
}
16641695

1665-
1696+
/**
1697+
* ( begin auto-generated from resetShader.xml )
1698+
*
1699+
* This is a new reference entry for Processing 2.0. It will be updated shortly.
1700+
*
1701+
* ( end auto-generated )
1702+
*
1703+
* @webref rendering:shaders
1704+
*/
16661705
public void resetShader() {
16671706
showMissingWarning("resetShader");
16681707
}
16691708

1670-
1709+
/**
1710+
* @param kind type of shader, either POINTS, LINES, or TRIANGLES
1711+
*/
16711712
public void resetShader(int kind) {
16721713
showMissingWarning("resetShader");
16731714
}
3.54 KB
LoadingViewer requires iframe.

‎java/examples/Topics/Shaders/Deform/Deform.pde‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
/**
2-
* Deform
2+
* Deform.
3+
*
34
* A GLSL version of the oldschool 2D deformation effect, by Inigo Quilez.
45
* Ported from the webGL version available in ShaderToy:
56
* http://www.iquilezles.org/apps/shadertoy/
6-
* (look for Deform under the Plane Deformations Presets)
7+
* (Look for Deform under the Plane Deformations Presets)
78
*
89
*/
910

‎java/examples/Topics/Shaders/Monjori/Monjori.pde‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
/**
2-
* Monjori
2+
* Monjori.
3+
*
34
* GLSL version of the 1k intro Monjori from the demoscene
45
* (http://www.pouet.net/prod.php?which=52761)
56
* Ported from the webGL version available in ShaderToy:
67
* http://www.iquilezles.org/apps/shadertoy/
7-
* (look for Monjori under the Plane Deformations Presets)
8+
* (Look for Monjori under the Plane Deformations Presets)
89
*/
910

10-
PShader monjori;
11+
PShader monjori;
1112

1213
void setup() {
1314
size(640, 360, P2D);

‎java/examples/Topics/Shaders/Nebula/Nebula.pde‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/**
2-
* Nebula
2+
* Nebula.
3+
*
34
* From CoffeeBreakStudios.com (CBS)
45
* Ported from the webGL version in GLSL Sandbox:
56
* http://glsl.heroku.com/e#3265.2
-1022 Bytes
Binary file not shown.
40.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL