|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpslib.PSShapes
public class PSShapes
PSShapes Class
The PSShapes object allows a range of shapes to be rendered. All methods are static and require an OpenGL rendering context.
This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library. If not, see http://www.gnu.org/licenses/.
Constructor Summary | |
---|---|
PSShapes()
|
Method Summary | |
---|---|
static void |
axes(processing.opengl.PGraphicsOpenGL glc,
float s)
Render 3D axes to the specified OpenGL renderer |
static void |
box(processing.opengl.PGraphicsOpenGL glc,
float s)
Render a 3D box to the specified OpenGL renderer |
static void |
circle(processing.opengl.PGraphicsOpenGL glc,
int seg,
float rad)
Render a circle as a 2D object to the specified rendering context |
static void |
circle(processing.opengl.PGraphicsOpenGL glc,
int seg,
float rad,
PSVector cpv,
PSVector ctv,
PSVector cuv)
Render a circle as a 3D billboard to the specified rendering context |
static void |
doughnut(processing.opengl.PGraphicsOpenGL glc,
int seg,
float rad_i,
float rad_o)
Render a doughnut as a 2D object to the specified rendering context |
static void |
doughnut(processing.opengl.PGraphicsOpenGL glc,
int seg,
float rad_i,
float rad_o,
PSVector cpv,
PSVector ctv,
PSVector cuv)
Render a doughnut as a 3D billboard to the specified rendering context |
static void |
fan(processing.opengl.PGraphicsOpenGL glc,
int seg,
float rad,
float spd)
Render a fan as a 2D object to the specified rendering context |
static void |
fan(processing.opengl.PGraphicsOpenGL glc,
int seg,
float rad,
float spd,
PSVector cpv,
PSVector ctv,
PSVector cuv)
Render a fan as a 3D billboard to the specified rendering context |
static void |
grid(processing.opengl.PGraphicsOpenGL glc,
float w,
float h,
float xs,
float ys)
Render a grid as a 2D object to the specified OpenGL renderer |
static void |
grid(processing.opengl.PGraphicsOpenGL glc,
float w,
float h,
float xs,
float ys,
PSVector cpv,
PSVector ctv,
PSVector cuv)
Render a grid as 3D billboard to the specified OpenGL renderer |
static void |
star(processing.opengl.PGraphicsOpenGL glc,
int seg,
float rad_i,
float rad_o)
Render a star as a 2D object to the specified rendering context |
static void |
star(processing.opengl.PGraphicsOpenGL glc,
int seg,
float rad_i,
float rad_o,
PSVector cpv,
PSVector ctv,
PSVector cuv)
Render a star as a 3D billboard to the specified rendering context |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PSShapes()
Method Detail |
---|
public static void circle(processing.opengl.PGraphicsOpenGL glc, int seg, float rad)
glc
- OpenGL rendering contextseg
- segmentsrad
- radiuspublic static void circle(processing.opengl.PGraphicsOpenGL glc, int seg, float rad, PSVector cpv, PSVector ctv, PSVector cuv)
glc
- OpenGL rendering contextseg
- segmentsrad
- radiuscpv
- camera position vectorctv
- camera target vectorcuv
- camera up vectorpublic static void fan(processing.opengl.PGraphicsOpenGL glc, int seg, float rad, float spd)
glc
- OpenGL rendering contextseg
- segmentsrad
- radiusspd
- spreadpublic static void fan(processing.opengl.PGraphicsOpenGL glc, int seg, float rad, float spd, PSVector cpv, PSVector ctv, PSVector cuv)
glc
- OpenGL rendering contextseg
- segmentsrad
- radiusspd
- spreadcpv
- camera position vectorctv
- camera target vectorcuv
- camera up vectorpublic static void doughnut(processing.opengl.PGraphicsOpenGL glc, int seg, float rad_i, float rad_o)
glc
- OpenGL rendering contextseg
- segmentsrad_i
- inner radiusrad_o
- outer radiuspublic static void doughnut(processing.opengl.PGraphicsOpenGL glc, int seg, float rad_i, float rad_o, PSVector cpv, PSVector ctv, PSVector cuv)
glc
- OpenGL rendering contextseg
- segmentsrad_i
- inner radiusrad_o
- outer radiuscpv
- camera position vectorctv
- camera target vectorcuv
- camera up vectorpublic static void star(processing.opengl.PGraphicsOpenGL glc, int seg, float rad_i, float rad_o)
glc
- OpenGL rendering contextseg
- segmentsrad_i
- inner radiusrad_o
- outer radiuspublic static void star(processing.opengl.PGraphicsOpenGL glc, int seg, float rad_i, float rad_o, PSVector cpv, PSVector ctv, PSVector cuv)
glc
- OpenGL rendering contextseg
- segmentsrad_i
- inner radiusrad_o
- outer radiuscpv
- camera position vectorctv
- camera target vectorcuv
- camera up vectorpublic static void grid(processing.opengl.PGraphicsOpenGL glc, float w, float h, float xs, float ys)
glc
- OpenGL rendererw
- widthh
- heightxs
- horizontal spacingys
- vertical spacingpublic static void grid(processing.opengl.PGraphicsOpenGL glc, float w, float h, float xs, float ys, PSVector cpv, PSVector ctv, PSVector cuv)
glc
- OpenGL rendererw
- widthh
- heightxs
- horizontal spacingys
- vertical spacingcpv
- camera position vectorctv
- camera target vectorcuv
- camera up vectorpublic static void axes(processing.opengl.PGraphicsOpenGL glc, float s)
glc
- OpenGL renderers
- sizepublic static void box(processing.opengl.PGraphicsOpenGL glc, float s)
glc
- OpenGL renderers
- size
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |