mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-04 15:24:12 +01:00
1406 lines
92 KiB
HTML
1406 lines
92 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
|
<!--NewPage-->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>
|
||
|
PGraphicsOpenGL
|
||
|
</TITLE>
|
||
|
|
||
|
<META NAME="keywords" CONTENT="processing.opengl.PGraphicsOpenGL class">
|
||
|
|
||
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
|
||
|
|
||
|
<SCRIPT type="text/javascript">
|
||
|
function windowTitle()
|
||
|
{
|
||
|
parent.document.title="PGraphicsOpenGL";
|
||
|
}
|
||
|
</SCRIPT>
|
||
|
<NOSCRIPT>
|
||
|
</NOSCRIPT>
|
||
|
|
||
|
</HEAD>
|
||
|
|
||
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
||
|
|
||
|
|
||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||
|
<A NAME="navbar_top"><!-- --></A>
|
||
|
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
||
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||
|
<TR>
|
||
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
||
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||
|
<TR ALIGN="center" VALIGN="top">
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
</TD>
|
||
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
||
|
</EM>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
|
||
|
<TR>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
PREV CLASS
|
||
|
<A HREF="../../processing/opengl/PGraphicsOpenGL.TessCallback.html" title="class in processing.opengl"><B>NEXT CLASS</B></A></FONT></TD>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../index.html?processing/opengl/PGraphicsOpenGL.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="PGraphicsOpenGL.html" target="_top"><B>NO FRAMES</B></A>
|
||
|
<SCRIPT type="text/javascript">
|
||
|
<!--
|
||
|
if(window==top) {
|
||
|
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
|
||
|
}
|
||
|
//-->
|
||
|
</SCRIPT>
|
||
|
<NOSCRIPT>
|
||
|
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
|
||
|
</NOSCRIPT>
|
||
|
|
||
|
|
||
|
</FONT></TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="skip-navbar_top"></A>
|
||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||
|
|
||
|
<HR>
|
||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||
|
<H2>
|
||
|
<FONT SIZE="-1">
|
||
|
processing.opengl</FONT>
|
||
|
<BR>
|
||
|
Class PGraphicsOpenGL</H2>
|
||
|
<PRE>
|
||
|
java.lang.Object
|
||
|
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="../../processing/core/PImage.html" title="class in processing.core">processing.core.PImage</A>
|
||
|
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="../../processing/core/PGraphics.html" title="class in processing.core">processing.core.PGraphics</A>
|
||
|
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">processing.core.PGraphics3D</A>
|
||
|
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>processing.opengl.PGraphicsOpenGL</B>
|
||
|
</PRE>
|
||
|
<DL>
|
||
|
<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, <A HREF="../../processing/core/PConstants.html" title="interface in processing.core">PConstants</A></DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
<DL>
|
||
|
<DT><PRE>public class <B>PGraphicsOpenGL</B><DT>extends <A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></DL>
|
||
|
</PRE>
|
||
|
|
||
|
<P>
|
||
|
Implementation of the PGraphics API that employs OpenGL rendering via JOGL.
|
||
|
<p/>
|
||
|
JOGL requires Java 1.4 or higher, so there are no restrictions on this
|
||
|
code to be compatible with Java 1.1 or Java 1.3.
|
||
|
<p/>
|
||
|
This code relies on PGraphics3D for all lighting and transformations.
|
||
|
Meaning that translate(), rotate(), and any lighting will be done in
|
||
|
PGraphics3D, and OpenGL is only used to blit lines and triangles as fast
|
||
|
as it possibly can.
|
||
|
<p/>
|
||
|
For this reason, OpenGL may not be accelerated as far as it could be,
|
||
|
but I don't have the time to maintain two separate versions of the
|
||
|
renderer. My development time must always be focused on implementation
|
||
|
and covering features first, and optimizing later.
|
||
|
<p/>
|
||
|
Further, the difference may be negligible, as the primary slowdown
|
||
|
in Java is moving pixels (i.e. a large frame buffer is nearly impossible
|
||
|
because Java just can't do a MemoryImageSource at screen resolution)
|
||
|
and the overhead from JNI tends to be significant. In the latter case,
|
||
|
we may even save time in some cases where a large number of calls to
|
||
|
OpenGL would otherwise be used, but that's probably a stretch.
|
||
|
<p/>
|
||
|
The code is also very messy, while features are being added and
|
||
|
removed rapidly as we head towards 1.0. Things got particularly ugly
|
||
|
as we approached beta while both Simon and I were working on it.
|
||
|
Relax, we'll get it fixed up later.
|
||
|
<p/>
|
||
|
When exporting applets, the JOGL Applet Launcher is used. More information
|
||
|
about the launcher can be found at its <A HREF="http://download.java.net/media/jogl/builds/nightly/javadoc_public/com/sun/opengl/util/JOGLAppletLauncher.html">documentation page</A>.
|
||
|
<P>
|
||
|
|
||
|
<P>
|
||
|
<HR>
|
||
|
|
||
|
<P>
|
||
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
||
|
|
||
|
<A NAME="nested_class_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Nested Class Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> class</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.TessCallback.html" title="class in processing.opengl">PGraphicsOpenGL.TessCallback</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
There must be a better way to do this, but I'm having a brain fart
|
||
|
with all the inner class crap.</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<!-- =========== FIELD SUMMARY =========== -->
|
||
|
|
||
|
<A NAME="field_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Field Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE>static boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#BIG_ENDIAN">BIG_ENDIAN</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
Set to true if the host system is big endian (PowerPC, MIPS, SPARC),
|
||
|
false if little endian (x86 Intel for Mac or PC).</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> javax.media.opengl.GL</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#gl">gl</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> javax.media.opengl.glu.GLU</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#glu">glu</A></B></CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="fields_inherited_from_class_processing.core.PGraphics3D"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
|
<TH ALIGN="left"><B>Fields inherited from class processing.core.<A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../processing/core/PGraphics3D.html#camera">camera</A>, <A HREF="../../processing/core/PGraphics3D.html#cameraAspect">cameraAspect</A>, <A HREF="../../processing/core/PGraphics3D.html#cameraFar">cameraFar</A>, <A HREF="../../processing/core/PGraphics3D.html#cameraFOV">cameraFOV</A>, <A HREF="../../processing/core/PGraphics3D.html#cameraNear">cameraNear</A>, <A HREF="../../processing/core/PGraphics3D.html#cameraX">cameraX</A>, <A HREF="../../processing/core/PGraphics3D.html#cameraY">cameraY</A>, <A HREF="../../processing/core/PGraphics3D.html#cameraZ">cameraZ</A>, <A HREF="../../processing/core/PGraphics3D.html#currentLightFalloffConstant">currentLightFalloffConstant</A>, <A HREF="../../processing/core/PGraphics3D.html#currentLightFalloffLinear">currentLightFalloffLinear</A>, <A HREF="../../processing/core/PGraphics3D.html#currentLightFalloffQuadratic">currentLightFalloffQuadratic</A>, <A HREF="../../processing/core/PGraphics3D.html#currentLightSpecular">currentLightSpecular</A>, <A HREF="../../processing/core/PGraphics3D.html#lightCount">lightCount</A>, <A HREF="../../processing/core/PGraphics3D.html#lightDiffuse">lightDiffuse</A>, <A HREF="../../processing/core/PGraphics3D.html#lightFalloffConstant">lightFalloffConstant</A>, <A HREF="../../processing/core/PGraphics3D.html#lightFalloffLinear">lightFalloffLinear</A>, <A HREF="../../processing/core/PGraphics3D.html#lightFalloffQuadratic">lightFalloffQuadratic</A>, <A HREF="../../processing/core/PGraphics3D.html#lightNormal">lightNormal</A>, <A HREF="../../processing/core/PGraphics3D.html#lightPosition">lightPosition</A>, <A HREF="../../processing/core/PGraphics3D.html#lightSpecular">lightSpecular</A>, <A HREF="../../processing/core/PGraphics3D.html#lightSpotAngle">lightSpotAngle</A>, <A HREF="../../processing/core/PGraphics3D.html#lightSpotAngleCos">lightSpotAngleCos</A>, <A HREF="../../processing/core/PGraphics3D.html#lightSpotConcentration">lightSpotConcentration</A>, <A HREF="../../processing/core/PGraphics3D.html#lightType">lightType</A>, <A HREF="../../processing/core/PGraphics3D.html#line">line</A>, <A HREF="../../processing/core/PGraphics3D.html#MAX_LIGHTS">MAX_LIGHTS</A>, <A HREF="../../processing/core/PGraphics3D.html#modelview">modelview</A>, <A HREF="../../processing/core/PGraphics3D.html#modelviewInv">modelviewInv</A>, <A HREF="../../processing/core/PGraphics3D.html#projection">projection</A>, <A HREF="../../processing/core/PGraphics3D.html#smoothTriangle">smoothTriangle</A>, <A HREF="../../processing/core/PGraphics3D.html#TRI_COLOR_COUNT">TRI_COLOR_COUNT</A>, <A HREF="../../processing/core/PGraphics3D.html#TRI_DIFFUSE_A">TRI_DIFFUSE_A</A>, <A HREF="../../processing/core/PGraphics3D.html#TRI_DIFFUSE_B">TRI_DIFFUSE_B</A>, <A HREF="../../processing/core/PGraphics3D.html#TRI_DIFFUSE_G">TRI_DIFFUSE_G</A>, <A HREF="../../processing/core/PGraphics3D.html#TRI_DIFFUSE_R">TRI_DIFFUSE_R</A>, <A HREF="../../processing/core/PGraphics3D.html#TRI_SPECULAR_B">TRI_SPECULAR_B</A>, <A HREF="../../processing/core/PGraphics3D.html#TRI_SPECULAR_G">TRI_SPECULAR_G</A>, <A HREF="../../processing/core/PGraphics3D.html#TRI_SPECULAR_R">TRI_SPECULAR_R</A>, <A HREF="../../processing/core/PGraphics3D.html#triangle">triangle</A>, <A HREF="../../processing/core/PGraphics3D.html#zbuffer">zbuffer</A></CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="fields_inherited_from_class_processing.core.PGraphics"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
|
<TH ALIGN="left"><B>Fields inherited from class processing.core.<A HREF="../../processing/core/PGraphics.html" title="class in processing.core">PGraphics</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../processing/core/PGraphics.html#ambientB">ambientB</A>, <A HREF="../../processing/core/PGraphics.html#ambientG">ambientG</A>, <A HREF="../../processing/core/PGraphics.html#ambientR">ambientR</A>, <A HREF="../../processing/core/PGraphics.html#backgroundColor">backgroundColor</A>, <A HREF="../../processing/core/PGraphics.html#bezierDetail">bezierDetail</A>, <A HREF="../../processing/core/PGraphics.html#colorMode">colorMode</A>, <A HREF="../../processing/core/PGraphics.html#colorModeA">colorModeA</A>, <A HREF="../../processing/core/PGraphics.html#colorModeX">colorModeX</A>, <A HREF="../../processing/core/PGraphics.html#colorModeY">colorModeY</A>, <A HREF="../../processing/core/PGraphics.html#colorModeZ">colorModeZ</A>, <A HREF="../../processing/core/PGraphics.html#curveTightness">curveTightness</A>, <A HREF="../../processing/core/PGraphics.html#edge">edge</A>, <A HREF="../../processing/core/PGraphics.html#ellipseMode">ellipseMode</A>, <A HREF="../../processing/core/PGraphics.html#emissiveB">emissiveB</A>, <A HREF="../../processing/core/PGraphics.html#emissiveG">emissiveG</A>, <A HREF="../../processing/core/PGraphics.html#emissiveR">emissiveR</A>, <A HREF="../../processing/core/PGraphics.html#fill">fill</A>, <A HREF="../../processing/core/PGraphics.html#fillColor">fillColor</A>, <A HREF="../../processing/core/PGraphics.html#image">image</A>, <A HREF="../../processing/core/PGraphics.html#imageMode">imageMode</A>, <A HREF="../../processing/core/PGraphics.html#normalX">normalX</A>, <A HREF="../../processing/core/PGraphics.html#normalY">normalY</A>, <A HREF="../../processing/core/PGraphics.html#normalZ">normalZ</A>, <A HREF="../../processing/core/PGraphics.html#pixelCount">pixelCount</A>, <A HREF="../../processing/core/PGraphics.html#rectMode">rectMode</A>, <A HREF="../../processing/core/PGraphics.html#shapeMode">shapeMode</A>, <A HREF="../../processing/core/PGraphics.html#shininess">shininess</A>, <A HREF="../../processing/core/PGraphics.html#smooth">smooth</A>, <A HREF="../../processing/core/PGraphics.html#specularB">specularB</A>, <A HREF="../../processing/core/PGraphics.html#specularG">specularG</A>, <A HREF="../../processing/core/PGraphics.html#specularR">specularR</A>, <A HREF="../../processing/core/PGraphics.html#sphereDetailU">sphereDetailU</A>, <A HREF="../../processing/core/PGraphics.html#sphereDetailV">sphereDetailV</A>, <A HREF="../../processing/core/PGraphics.html#stroke">stroke</A>, <A HREF="../../processing/core/PGraphics.html#strokeCap">strokeCap</A>, <A HREF="../../processing/core/PGraphics.html#strokeColor">strokeColor</A>, <A HREF="../../processing/core/PGraphics.html#strokeJoin">strokeJoin</A>, <A HREF="../../processing/core/PGraphics.html#strokeWeight">strokeWeight</A>, <A HREF="../../processing/core/PGraphics.html#textAlign">textAlign</A>, <A HREF="../../processing/core/PGraphics.html#textAlignY">textAlignY</A>, <A HREF="../../processing/core/PGraphics.html#textFont">textFont</A>, <A HREF="../../processing/core/PGraphics.html#textLeading">textLeading</A>, <A HREF="../../processing/core/PGraphics.html#textMode">textMode</A>, <A HREF="../../processing/core/PGraphics.html#textSize">textSize</A>, <A HREF="../../processing/core/PGraphics.html#textureImage">textureImage</A>, <A HREF="../../processing/core/PGraphics.html#textureMode">textureMode</A>, <A HREF="../../processing/core/PGraphics.html#textureU">textureU</A>, <A HREF="../../processing/core/PGraphics.html#textureV">textureV</A>, <A HREF="../../processing/core/PGraphics.html#tint">tint</A>, <A HREF="../../processing/core/PGraphics.html#tintColor">tintColor</A></CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="fields_inherited_from_class_processing.core.PImage"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
|
<TH ALIGN="left"><B>Fields inherited from class processing.core.<A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../processing/core/PImage.html#format">format</A>, <A HREF="../../processing/core/PImage.html#height">height</A>, <A HREF="../../processing/core/PImage.html#parent">parent</A>, <A HREF="../../processing/core/PImage.html#pixels">pixels</A>, <A HREF="../../processing/core/PImage.html#width">width</A></CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="fields_inherited_from_class_processing.core.PConstants"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
|
<TH ALIGN="left"><B>Fields inherited from interface processing.core.<A HREF="../../processing/core/PConstants.html" title="interface in processing.core">PConstants</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../processing/core/PConstants.html#A">A</A>, <A HREF="../../processing/core/PConstants.html#AB">AB</A>, <A HREF="../../processing/core/PConstants.html#ADD">ADD</A>, <A HREF="../../processing/core/PConstants.html#AG">AG</A>, <A HREF="../../processing/core/PConstants.html#ALPHA">ALPHA</A>, <A HREF="../../processing/core/PConstants.html#ALPHA_MASK">ALPHA_MASK</A>, <A HREF="../../processing/core/PConstants.html#ALT">ALT</A>, <A HREF="../../processing/core/PConstants.html#AMBIENT">AMBIENT</A>, <A HREF="../../processing/core/PConstants.html#AR">AR</A>, <A HREF="../../processing/core/PConstants.html#ARC">ARC</A>, <A HREF="../../processing/core/PConstants.html#ARGB">ARGB</A>, <A HREF="../../processing/core/PConstants.html#ARROW">ARROW</A>, <A HREF="../../processing/core/PConstants.html#B">B</A>, <A HREF="../../processing/core/PConstants.html#BACKSPACE">BACKSPACE</A>, <A HREF="../../processing/core/PConstants.html#BASELINE">BASELINE</A>, <A HREF="../../processing/core/PConstants.html#BEEN_LIT">BEEN_LIT</A>, <A HREF="../../processing/core/PConstants.html#BEVEL">BEVEL</A>, <A HREF="../../processing/core/PConstants.html#BLEND">BLEND</A>, <A HREF="../../processing/core/PConstants.html#BLUE_MASK">BLUE_MASK</A>, <A HREF="../../processing/core/PConstants.html#BLUR">BLUR</A>, <A HREF="../../processing/core/PConstants.html#BOTTOM">BOTTOM</A>, <A HREF="../../processing/core/PConstants.html#BOX">BOX</A>, <A HREF="../../processing/core/PConstants.html#BURN">BURN</A>, <A HREF="../../processing/core/PConstants.html#CENTER">CENTER</A>, <A HREF="../../processing/core/PConstants.html#CENTER_DIAMETER">CENTER_DIAMETER</A>, <A HREF="../../processing/core/PConstants.html#CENTER_RADIUS">CENTER_RADIUS</A>, <A HREF="../../processing/core/PConstants.html#CHATTER">CHATTER</A>, <A HREF="../../processing/core/PConstants.html#CLOSE">CLOSE</A>, <A HREF="../../processing/core/PConstants.html#CMYK">CMYK</A>, <A HREF="../../processing/core/PConstants.html#CODED">CODED</A>, <A HREF="../../processing/core/PConstants.html#COMPLAINT">COMPLAINT</A>, <A HREF="../../processing/core/PConstants.html#CONTROL">CONTROL</A>, <A HREF="../../processing/core/PConstants.html#CORNER">CORNER</A>, <A HREF="../../processing/core/PConstants.html#CORNERS">CORNERS</A>, <A HREF="../../processing/core/PConstants.html#CROSS">CROSS</A>, <A HREF="../../processing/core/PConstants.html#CUSTOM">CUSTOM</A>, <A HREF="../../processing/core/PConstants.html#DA">DA</A>, <A HREF="../../processing/core/PConstants.html#DARKEST">DARKEST</A>, <A HREF="../../processing/core/PConstants.html#DB">DB</A>, <A HREF="../../processing/core/PConstants.html#DEG_TO_RAD">DEG_TO_RAD</A>, <A HREF="../../processing/core/PConstants.html#DELETE">DELETE</A>, <A HREF="../../processing/core/PConstants.html#DG">DG</A>, <A HREF="../../processing/core/PConstants.html#DIAMETER">DIAMETER</A>, <A HREF="../../processing/core/PConstants.html#DIFFERENCE">DIFFERENCE</A>, <A HREF="../../processing/core/PConstants.html#DILATE">DILATE</A>, <A HREF="../../processing/core/PConstants.html#DIRECTIONAL">DIRECTIONAL</A>, <A HREF="../../processing/core/PConstants.html#DISABLE_ACCURATE_TEXTURES">DISABLE_ACCURATE_TEXTURES</A>, <A HREF="../../processing/core/PConstants.html#DISABLE_DEPTH_SORT">DISABLE_DEPTH_SORT</A>, <A HREF="../../processing/core/PConstants.html#DISABLE_DEPTH_TEST">DISABLE_DEPTH_TEST</A>, <A HREF="../../processing/core/PConstants.html#DISABLE_OPENGL_2X_SMOOTH">DISABLE_OPENGL_2X_SMOOTH</A>, <A HREF="../../processing/core/PConstants.html#DISABLE_OPENGL_ERROR_REPORT">DISABLE_OPENGL_ERROR_REPORT</A>, <A HREF="../../processing/core/PConstants.html#DODGE">DODGE</A>, <A HREF="../../processing/core/PConstants.html#DOWN">DOWN</A>, <A HREF="../../processing/core/PConstants.html#DR">DR</A>, <A HREF="../../processing/core/PConstants.html#DXF">DXF</A>, <A HREF="../../processing/core/PConstants.html#EB">EB</A>, <A HREF="../../processing/core/PConstants.html#EDGE">EDGE</A>, <A HREF="../../processing/core/PConstants.html#EG">EG</A>, <A HREF="../../processing/core/PConstants.html#ELLIPSE">ELLIPSE</A>, <A HREF="../../process
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||
|
|
||
|
<A NAME="constructor_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Constructor Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#PGraphicsOpenGL()">PGraphicsOpenGL</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||
|
|
||
|
<A NAME="method_summary"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
||
|
<B>Method Summary</B></FONT></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#ambientLight(float, float, float)">ambientLight</A></B>(float r,
|
||
|
float g,
|
||
|
float b)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Add an ambient light based on the current color mode.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#ambientLight(float, float, float, float, float, float)">ambientLight</A></B>(float r,
|
||
|
float g,
|
||
|
float b,
|
||
|
float x,
|
||
|
float y,
|
||
|
float z)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Add an ambient light based on the current color mode.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#beginDraw()">beginDraw</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Prepares the PGraphics for drawing.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> javax.media.opengl.GL</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#beginGL()">beginGL</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> boolean</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#canDraw()">canDraw</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
OpenGL cannot draw until a proper native peer is available, so this
|
||
|
returns the value of PApplet.isDisplayable() (inherited from Component).</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#directionalLight(float, float, float, float, float, float)">directionalLight</A></B>(float r,
|
||
|
float g,
|
||
|
float b,
|
||
|
float nx,
|
||
|
float ny,
|
||
|
float nz)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#endDraw()">endDraw</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
See notes in PGraphics.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#endGL()">endGL</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#filter(int)">filter</A></B>(int kind)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
This is really inefficient and not a good idea in OpenGL.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#filter(int, float)">filter</A></B>(int kind,
|
||
|
float param)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
This is really inefficient and not a good idea in OpenGL.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> <A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#get()">get</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns a copy of this PImage.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> int</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#get(int, int)">get</A></B>(int x,
|
||
|
int y)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns an ARGB "color" type (a packed 32 bit int with the color.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> javax.media.opengl.GLContext</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#getContext()">getContext</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Get the current context, for use by libraries that need to talk to it.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#hint(int)">hint</A></B>(int which)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Enable a hint option.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#lightFalloff(float, float, float)">lightFalloff</A></B>(float constant,
|
||
|
float linear,
|
||
|
float quadratic)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Set the light falloff rates for the last light that was created.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#lightSpecular(float, float, float)">lightSpecular</A></B>(float x,
|
||
|
float y,
|
||
|
float z)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Set the specular color of the last light created.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#loadPixels()">loadPixels</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Call this when you want to mess with the pixels[] array.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#mask(int[])">mask</A></B>(int[] alpha)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Set alpha channel for an image.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#mask(processing.core.PImage)">mask</A></B>(<A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A> alpha)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Set alpha channel for an image using another image as the source.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#noSmooth()">noSmooth</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Disable smoothing.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#pointLight(float, float, float, float, float, float)">pointLight</A></B>(float r,
|
||
|
float g,
|
||
|
float b,
|
||
|
float x,
|
||
|
float y,
|
||
|
float z)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#report(java.lang.String)">report</A></B>(java.lang.String where)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Report on anything from glError().</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#resize(int, int)">resize</A></B>(int wide,
|
||
|
int high)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Resize this image to a new width and height.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#set(int, int, int)">set</A></B>(int x,
|
||
|
int y,
|
||
|
int argb)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Set a single pixel to the specified color.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#set(int, int, processing.core.PImage)">set</A></B>(int x,
|
||
|
int y,
|
||
|
<A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A> source)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Set an image directly to the screen.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#shininess(float)">shininess</A></B>(float shine)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#smooth()">smooth</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
If true in PImage, use bilinear interpolation for copy()
|
||
|
operations.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#spotLight(float, float, float, float, float, float, float, float, float, float, float)">spotLight</A></B>(float r,
|
||
|
float g,
|
||
|
float b,
|
||
|
float x,
|
||
|
float y,
|
||
|
float z,
|
||
|
float nx,
|
||
|
float ny,
|
||
|
float nz,
|
||
|
float angle,
|
||
|
float concentration)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#strokeCap(int)">strokeCap</A></B>(int cap)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#strokeJoin(int)">strokeJoin</A></B>(int join)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#strokeWeight(float)">strokeWeight</A></B>(float weight)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> float</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#textAscent()">textAscent</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns the ascent of the current font at the current size.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> float</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#textDescent()">textDescent</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Returns the descent of the current font at the current size.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#textFont(processing.core.PFont)">textFont</A></B>(<A HREF="../../processing/core/PFont.html" title="class in processing.core">PFont</A> which)</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Sets the current font.</TD>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
||
|
<CODE> void</CODE></FONT></TD>
|
||
|
<TD><CODE><B><A HREF="../../processing/opengl/PGraphicsOpenGL.html#updatePixels()">updatePixels</A></B>()</CODE>
|
||
|
|
||
|
<BR>
|
||
|
Call this when finished messing with the pixels[] array.</TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="methods_inherited_from_class_processing.core.PGraphics3D"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
|
<TH ALIGN="left"><B>Methods inherited from class processing.core.<A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../processing/core/PGraphics3D.html#applyMatrix(float, float, float, float, float, float)">applyMatrix</A>, <A HREF="../../processing/core/PGraphics3D.html#applyMatrix(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)">applyMatrix</A>, <A HREF="../../processing/core/PGraphics3D.html#applyMatrix(processing.core.PMatrix2D)">applyMatrix</A>, <A HREF="../../processing/core/PGraphics3D.html#applyMatrix(processing.core.PMatrix3D)">applyMatrix</A>, <A HREF="../../processing/core/PGraphics3D.html#beginCamera()">beginCamera</A>, <A HREF="../../processing/core/PGraphics3D.html#beginShape(int)">beginShape</A>, <A HREF="../../processing/core/PGraphics3D.html#box(float, float, float)">box</A>, <A HREF="../../processing/core/PGraphics3D.html#camera()">camera</A>, <A HREF="../../processing/core/PGraphics3D.html#camera(float, float, float, float, float, float, float, float, float)">camera</A>, <A HREF="../../processing/core/PGraphics3D.html#endCamera()">endCamera</A>, <A HREF="../../processing/core/PGraphics3D.html#endShape(int)">endShape</A>, <A HREF="../../processing/core/PGraphics3D.html#flush()">flush</A>, <A HREF="../../processing/core/PGraphics3D.html#frustum(float, float, float, float, float, float)">frustum</A>, <A HREF="../../processing/core/PGraphics3D.html#getMatrix()">getMatrix</A>, <A HREF="../../processing/core/PGraphics3D.html#getMatrix(processing.core.PMatrix3D)">getMatrix</A>, <A HREF="../../processing/core/PGraphics3D.html#is2D()">is2D</A>, <A HREF="../../processing/core/PGraphics3D.html#is3D()">is3D</A>, <A HREF="../../processing/core/PGraphics3D.html#lights()">lights</A>, <A HREF="../../processing/core/PGraphics3D.html#modelX(float, float, float)">modelX</A>, <A HREF="../../processing/core/PGraphics3D.html#modelY(float, float, float)">modelY</A>, <A HREF="../../processing/core/PGraphics3D.html#modelZ(float, float, float)">modelZ</A>, <A HREF="../../processing/core/PGraphics3D.html#noLights()">noLights</A>, <A HREF="../../processing/core/PGraphics3D.html#ortho()">ortho</A>, <A HREF="../../processing/core/PGraphics3D.html#ortho(float, float, float, float, float, float)">ortho</A>, <A HREF="../../processing/core/PGraphics3D.html#perspective()">perspective</A>, <A HREF="../../processing/core/PGraphics3D.html#perspective(float, float, float, float)">perspective</A>, <A HREF="../../processing/core/PGraphics3D.html#popMatrix()">popMatrix</A>, <A HREF="../../processing/core/PGraphics3D.html#printCamera()">printCamera</A>, <A HREF="../../processing/core/PGraphics3D.html#printMatrix()">printMatrix</A>, <A HREF="../../processing/core/PGraphics3D.html#printProjection()">printProjection</A>, <A HREF="../../processing/core/PGraphics3D.html#pushMatrix()">pushMatrix</A>, <A HREF="../../processing/core/PGraphics3D.html#resetMatrix()">resetMatrix</A>, <A HREF="../../processing/core/PGraphics3D.html#rotate(float)">rotate</A>, <A HREF="../../processing/core/PGraphics3D.html#rotate(float, float, float, float)">rotate</A>, <A HREF="../../processing/core/PGraphics3D.html#rotateX(float)">rotateX</A>, <A HREF="../../processing/core/PGraphics3D.html#rotateY(float)">rotateY</A>, <A HREF="../../processing/core/PGraphics3D.html#rotateZ(float)">rotateZ</A>, <A HREF="../../processing/core/PGraphics3D.html#scale(float)">scale</A>, <A HREF="../../processing/core/PGraphics3D.html#scale(float, float)">scale</A>, <A HREF="../../processing/core/PGraphics3D.html#scale(float, float, float)">scale</A>, <A HREF="../../processing/core/PGraphics3D.html#screenX(float, float)">screenX</A>, <A HREF="../../processing/core/PGraphics3D.html#screenX(float, float, float)">screenX</A>, <A HREF="../../processing/core/PGraphics3D.html#screenY(float, float)">screenY</A>, <A HREF="../../processing/core/PGraphics3D.html#screenY(float, float, float)">screenY</A>, <A HREF="../../processing/core/PGraphics3D.html#screenZ(float, float, float)">screenZ</A>, <A HREF="../../processing/core/PGraphics3D.html#setMatrix(processing.core.PMatrix2D)">setMatrix</A>, <A HREF="../../processing/core/PGraphic
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="methods_inherited_from_class_processing.core.PGraphics"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
|
<TH ALIGN="left"><B>Methods inherited from class processing.core.<A HREF="../../processing/core/PGraphics.html" title="class in processing.core">PGraphics</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../processing/core/PGraphics.html#alpha(int)">alpha</A>, <A HREF="../../processing/core/PGraphics.html#ambient(float)">ambient</A>, <A HREF="../../processing/core/PGraphics.html#ambient(float, float, float)">ambient</A>, <A HREF="../../processing/core/PGraphics.html#ambient(int)">ambient</A>, <A HREF="../../processing/core/PGraphics.html#applyMatrix(processing.core.PMatrix)">applyMatrix</A>, <A HREF="../../processing/core/PGraphics.html#arc(float, float, float, float, float, float)">arc</A>, <A HREF="../../processing/core/PGraphics.html#background(float)">background</A>, <A HREF="../../processing/core/PGraphics.html#background(float, float)">background</A>, <A HREF="../../processing/core/PGraphics.html#background(float, float, float)">background</A>, <A HREF="../../processing/core/PGraphics.html#background(float, float, float, float)">background</A>, <A HREF="../../processing/core/PGraphics.html#background(int)">background</A>, <A HREF="../../processing/core/PGraphics.html#background(int, float)">background</A>, <A HREF="../../processing/core/PGraphics.html#background(processing.core.PImage)">background</A>, <A HREF="../../processing/core/PGraphics.html#beginRaw(processing.core.PGraphics)">beginRaw</A>, <A HREF="../../processing/core/PGraphics.html#beginShape()">beginShape</A>, <A HREF="../../processing/core/PGraphics.html#bezier(float, float, float, float, float, float, float, float)">bezier</A>, <A HREF="../../processing/core/PGraphics.html#bezier(float, float, float, float, float, float, float, float, float, float, float, float)">bezier</A>, <A HREF="../../processing/core/PGraphics.html#bezierDetail(int)">bezierDetail</A>, <A HREF="../../processing/core/PGraphics.html#bezierPoint(float, float, float, float, float)">bezierPoint</A>, <A HREF="../../processing/core/PGraphics.html#bezierTangent(float, float, float, float, float)">bezierTangent</A>, <A HREF="../../processing/core/PGraphics.html#bezierVertex(float, float, float, float, float, float)">bezierVertex</A>, <A HREF="../../processing/core/PGraphics.html#bezierVertex(float, float, float, float, float, float, float, float, float)">bezierVertex</A>, <A HREF="../../processing/core/PGraphics.html#blue(int)">blue</A>, <A HREF="../../processing/core/PGraphics.html#box(float)">box</A>, <A HREF="../../processing/core/PGraphics.html#breakShape()">breakShape</A>, <A HREF="../../processing/core/PGraphics.html#brightness(int)">brightness</A>, <A HREF="../../processing/core/PGraphics.html#color(float)">color</A>, <A HREF="../../processing/core/PGraphics.html#color(float, float)">color</A>, <A HREF="../../processing/core/PGraphics.html#color(float, float, float)">color</A>, <A HREF="../../processing/core/PGraphics.html#color(float, float, float, float)">color</A>, <A HREF="../../processing/core/PGraphics.html#color(int)">color</A>, <A HREF="../../processing/core/PGraphics.html#color(int, float)">color</A>, <A HREF="../../processing/core/PGraphics.html#color(int, int)">color</A>, <A HREF="../../processing/core/PGraphics.html#color(int, int, int)">color</A>, <A HREF="../../processing/core/PGraphics.html#color(int, int, int, int)">color</A>, <A HREF="../../processing/core/PGraphics.html#colorMode(int)">colorMode</A>, <A HREF="../../processing/core/PGraphics.html#colorMode(int, float)">colorMode</A>, <A HREF="../../processing/core/PGraphics.html#colorMode(int, float, float, float)">colorMode</A>, <A HREF="../../processing/core/PGraphics.html#colorMode(int, float, float, float, float)">colorMode</A>, <A HREF="../../processing/core/PGraphics.html#curve(float, float, float, float, float, float, float, float)">curve</A>, <A HREF="../../processing/core/PGraphics.html#curve(float, float, float, float, float, float, float, float, float, float, float, float)">curve</A>, <A HREF="../../processing/core/PGraphics.html#curveDetail(int)">curveDetail</A>, <A HREF="../../processing/core/PGraphics.html#curvePoint(float, float, float, float, float)">curvePoint</A>, <A HREF="../../processing/core/PGraphics.html#curveTangent(float, float, float, float, float)">curveTangent</A>,
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="methods_inherited_from_class_processing.core.PImage"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
|
<TH ALIGN="left"><B>Methods inherited from class processing.core.<A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE><A HREF="../../processing/core/PImage.html#blend(int, int, int, int, int, int, int, int, int)">blend</A>, <A HREF="../../processing/core/PImage.html#blend(processing.core.PImage, int, int, int, int, int, int, int, int, int)">blend</A>, <A HREF="../../processing/core/PImage.html#blendColor(int, int, int)">blendColor</A>, <A HREF="../../processing/core/PImage.html#clone()">clone</A>, <A HREF="../../processing/core/PImage.html#copy(int, int, int, int, int, int, int, int)">copy</A>, <A HREF="../../processing/core/PImage.html#copy(processing.core.PImage, int, int, int, int, int, int, int, int)">copy</A>, <A HREF="../../processing/core/PImage.html#get(int, int, int, int)">get</A>, <A HREF="../../processing/core/PImage.html#getCache(java.lang.Object)">getCache</A>, <A HREF="../../processing/core/PImage.html#getImage()">getImage</A>, <A HREF="../../processing/core/PImage.html#init(int, int, int)">init</A>, <A HREF="../../processing/core/PImage.html#isModified()">isModified</A>, <A HREF="../../processing/core/PImage.html#removeCache(java.lang.Object)">removeCache</A>, <A HREF="../../processing/core/PImage.html#save(java.lang.String)">save</A>, <A HREF="../../processing/core/PImage.html#setCache(java.lang.Object, java.lang.Object)">setCache</A>, <A HREF="../../processing/core/PImage.html#setModified()">setModified</A>, <A HREF="../../processing/core/PImage.html#setModified(boolean)">setModified</A>, <A HREF="../../processing/core/PImage.html#updatePixels(int, int, int, int)">updatePixels</A></CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
||
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
||
|
</TR>
|
||
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
||
|
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<P>
|
||
|
|
||
|
<!-- ============ FIELD DETAIL =========== -->
|
||
|
|
||
|
<A NAME="field_detail"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
|
<B>Field Detail</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<A NAME="gl"><!-- --></A><H3>
|
||
|
gl</H3>
|
||
|
<PRE>
|
||
|
public javax.media.opengl.GL <B>gl</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="glu"><!-- --></A><H3>
|
||
|
glu</H3>
|
||
|
<PRE>
|
||
|
public javax.media.opengl.glu.GLU <B>glu</B></PRE>
|
||
|
<DL>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="BIG_ENDIAN"><!-- --></A><H3>
|
||
|
BIG_ENDIAN</H3>
|
||
|
<PRE>
|
||
|
public static boolean <B>BIG_ENDIAN</B></PRE>
|
||
|
<DL>
|
||
|
<DD>Set to true if the host system is big endian (PowerPC, MIPS, SPARC),
|
||
|
false if little endian (x86 Intel for Mac or PC).
|
||
|
<P>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
</DL>
|
||
|
|
||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||
|
|
||
|
<A NAME="constructor_detail"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
|
<B>Constructor Detail</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<A NAME="PGraphicsOpenGL()"><!-- --></A><H3>
|
||
|
PGraphicsOpenGL</H3>
|
||
|
<PRE>
|
||
|
public <B>PGraphicsOpenGL</B>()</PRE>
|
||
|
<DL>
|
||
|
</DL>
|
||
|
|
||
|
<!-- ============ METHOD DETAIL ========== -->
|
||
|
|
||
|
<A NAME="method_detail"><!-- --></A>
|
||
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
||
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
||
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
||
|
<B>Method Detail</B></FONT></TH>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
|
||
|
<A NAME="getContext()"><!-- --></A><H3>
|
||
|
getContext</H3>
|
||
|
<PRE>
|
||
|
public javax.media.opengl.GLContext <B>getContext</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>Get the current context, for use by libraries that need to talk to it.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="canDraw()"><!-- --></A><H3>
|
||
|
canDraw</H3>
|
||
|
<PRE>
|
||
|
public boolean <B>canDraw</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD>OpenGL cannot draw until a proper native peer is available, so this
|
||
|
returns the value of PApplet.isDisplayable() (inherited from Component).
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics.html#canDraw()">canDraw</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics.html" title="class in processing.core">PGraphics</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="beginDraw()"><!-- --></A><H3>
|
||
|
beginDraw</H3>
|
||
|
<PRE>
|
||
|
public void <B>beginDraw</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PGraphics.html#beginDraw()">PGraphics</A></CODE></B></DD>
|
||
|
<DD>Prepares the PGraphics for drawing.
|
||
|
<p/>
|
||
|
When creating your own PGraphics, you should call this before
|
||
|
drawing anything.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#beginDraw()">beginDraw</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="endDraw()"><!-- --></A><H3>
|
||
|
endDraw</H3>
|
||
|
<PRE>
|
||
|
public void <B>endDraw</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PGraphics3D.html#endDraw()">PGraphics3D</A></CODE></B></DD>
|
||
|
<DD>See notes in PGraphics.
|
||
|
If z-sorting has been turned on, then the triangles will
|
||
|
all be quicksorted here (to make alpha work more properly)
|
||
|
and then blit to the screen.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#endDraw()">endDraw</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="beginGL()"><!-- --></A><H3>
|
||
|
beginGL</H3>
|
||
|
<PRE>
|
||
|
public javax.media.opengl.GL <B>beginGL</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="endGL()"><!-- --></A><H3>
|
||
|
endGL</H3>
|
||
|
<PRE>
|
||
|
public void <B>endGL</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="hint(int)"><!-- --></A><H3>
|
||
|
hint</H3>
|
||
|
<PRE>
|
||
|
public void <B>hint</B>(int which)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PGraphics.html#hint(int)">PGraphics</A></CODE></B></DD>
|
||
|
<DD>Enable a hint option.
|
||
|
<P>
|
||
|
For the most part, hints are temporary api quirks,
|
||
|
for which a proper api hasn't been properly worked out.
|
||
|
for instance SMOOTH_IMAGES existed because smooth()
|
||
|
wasn't yet implemented, but it will soon go away.
|
||
|
<P>
|
||
|
They also exist for obscure features in the graphics
|
||
|
engine, like enabling/disabling single pixel lines
|
||
|
that ignore the zbuffer, the way they do in alphabot.
|
||
|
<P>
|
||
|
Current hint options:
|
||
|
<UL>
|
||
|
<LI><TT>DISABLE_DEPTH_TEST</TT> -
|
||
|
turns off the z-buffer in the P3D or OPENGL renderers.
|
||
|
</UL>
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#hint(int)">hint</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="smooth()"><!-- --></A><H3>
|
||
|
smooth</H3>
|
||
|
<PRE>
|
||
|
public void <B>smooth</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PGraphics.html#smooth()">PGraphics</A></CODE></B></DD>
|
||
|
<DD>If true in PImage, use bilinear interpolation for copy()
|
||
|
operations. When inherited by PGraphics, also controls shapes.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#smooth()">smooth</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="noSmooth()"><!-- --></A><H3>
|
||
|
noSmooth</H3>
|
||
|
<PRE>
|
||
|
public void <B>noSmooth</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PGraphics.html#noSmooth()">PGraphics</A></CODE></B></DD>
|
||
|
<DD>Disable smoothing. See smooth().
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#noSmooth()">noSmooth</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="textAscent()"><!-- --></A><H3>
|
||
|
textAscent</H3>
|
||
|
<PRE>
|
||
|
public float <B>textAscent</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PGraphics.html#textAscent()">PGraphics</A></CODE></B></DD>
|
||
|
<DD>Returns the ascent of the current font at the current size.
|
||
|
This is a method, rather than a variable inside the PGraphics object
|
||
|
because it requires calculation.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics.html#textAscent()">textAscent</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics.html" title="class in processing.core">PGraphics</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="textDescent()"><!-- --></A><H3>
|
||
|
textDescent</H3>
|
||
|
<PRE>
|
||
|
public float <B>textDescent</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PGraphics.html#textDescent()">PGraphics</A></CODE></B></DD>
|
||
|
<DD>Returns the descent of the current font at the current size.
|
||
|
This is a method, rather than a variable inside the PGraphics object
|
||
|
because it requires calculation.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics.html#textDescent()">textDescent</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics.html" title="class in processing.core">PGraphics</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="textFont(processing.core.PFont)"><!-- --></A><H3>
|
||
|
textFont</H3>
|
||
|
<PRE>
|
||
|
public void <B>textFont</B>(<A HREF="../../processing/core/PFont.html" title="class in processing.core">PFont</A> which)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PGraphics.html#textFont(processing.core.PFont)">PGraphics</A></CODE></B></DD>
|
||
|
<DD>Sets the current font. The font's size will be the "natural"
|
||
|
size of this font (the size that was set when using "Create Font").
|
||
|
The leading will also be reset.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics.html#textFont(processing.core.PFont)">textFont</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics.html" title="class in processing.core">PGraphics</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="strokeWeight(float)"><!-- --></A><H3>
|
||
|
strokeWeight</H3>
|
||
|
<PRE>
|
||
|
public void <B>strokeWeight</B>(float weight)</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics.html#strokeWeight(float)">strokeWeight</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics.html" title="class in processing.core">PGraphics</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="strokeJoin(int)"><!-- --></A><H3>
|
||
|
strokeJoin</H3>
|
||
|
<PRE>
|
||
|
public void <B>strokeJoin</B>(int join)</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#strokeJoin(int)">strokeJoin</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="strokeCap(int)"><!-- --></A><H3>
|
||
|
strokeCap</H3>
|
||
|
<PRE>
|
||
|
public void <B>strokeCap</B>(int cap)</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#strokeCap(int)">strokeCap</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="shininess(float)"><!-- --></A><H3>
|
||
|
shininess</H3>
|
||
|
<PRE>
|
||
|
public void <B>shininess</B>(float shine)</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics.html#shininess(float)">shininess</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics.html" title="class in processing.core">PGraphics</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="ambientLight(float, float, float)"><!-- --></A><H3>
|
||
|
ambientLight</H3>
|
||
|
<PRE>
|
||
|
public void <B>ambientLight</B>(float r,
|
||
|
float g,
|
||
|
float b)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PGraphics3D.html#ambientLight(float, float, float)">PGraphics3D</A></CODE></B></DD>
|
||
|
<DD>Add an ambient light based on the current color mode.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#ambientLight(float, float, float)">ambientLight</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="ambientLight(float, float, float, float, float, float)"><!-- --></A><H3>
|
||
|
ambientLight</H3>
|
||
|
<PRE>
|
||
|
public void <B>ambientLight</B>(float r,
|
||
|
float g,
|
||
|
float b,
|
||
|
float x,
|
||
|
float y,
|
||
|
float z)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PGraphics3D.html#ambientLight(float, float, float, float, float, float)">PGraphics3D</A></CODE></B></DD>
|
||
|
<DD>Add an ambient light based on the current color mode.
|
||
|
This version includes an (x, y, z) position for situations
|
||
|
where the falloff distance is used.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#ambientLight(float, float, float, float, float, float)">ambientLight</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="directionalLight(float, float, float, float, float, float)"><!-- --></A><H3>
|
||
|
directionalLight</H3>
|
||
|
<PRE>
|
||
|
public void <B>directionalLight</B>(float r,
|
||
|
float g,
|
||
|
float b,
|
||
|
float nx,
|
||
|
float ny,
|
||
|
float nz)</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#directionalLight(float, float, float, float, float, float)">directionalLight</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="pointLight(float, float, float, float, float, float)"><!-- --></A><H3>
|
||
|
pointLight</H3>
|
||
|
<PRE>
|
||
|
public void <B>pointLight</B>(float r,
|
||
|
float g,
|
||
|
float b,
|
||
|
float x,
|
||
|
float y,
|
||
|
float z)</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#pointLight(float, float, float, float, float, float)">pointLight</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="spotLight(float, float, float, float, float, float, float, float, float, float, float)"><!-- --></A><H3>
|
||
|
spotLight</H3>
|
||
|
<PRE>
|
||
|
public void <B>spotLight</B>(float r,
|
||
|
float g,
|
||
|
float b,
|
||
|
float x,
|
||
|
float y,
|
||
|
float z,
|
||
|
float nx,
|
||
|
float ny,
|
||
|
float nz,
|
||
|
float angle,
|
||
|
float concentration)</PRE>
|
||
|
<DL>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#spotLight(float, float, float, float, float, float, float, float, float, float, float)">spotLight</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="lightFalloff(float, float, float)"><!-- --></A><H3>
|
||
|
lightFalloff</H3>
|
||
|
<PRE>
|
||
|
public void <B>lightFalloff</B>(float constant,
|
||
|
float linear,
|
||
|
float quadratic)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PGraphics3D.html#lightFalloff(float, float, float)">PGraphics3D</A></CODE></B></DD>
|
||
|
<DD>Set the light falloff rates for the last light that was created.
|
||
|
Default is lightFalloff(1, 0, 0).
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#lightFalloff(float, float, float)">lightFalloff</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="lightSpecular(float, float, float)"><!-- --></A><H3>
|
||
|
lightSpecular</H3>
|
||
|
<PRE>
|
||
|
public void <B>lightSpecular</B>(float x,
|
||
|
float y,
|
||
|
float z)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PGraphics3D.html#lightSpecular(float, float, float)">PGraphics3D</A></CODE></B></DD>
|
||
|
<DD>Set the specular color of the last light created.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PGraphics3D.html#lightSpecular(float, float, float)">lightSpecular</A></CODE> in class <CODE><A HREF="../../processing/core/PGraphics3D.html" title="class in processing.core">PGraphics3D</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="report(java.lang.String)"><!-- --></A><H3>
|
||
|
report</H3>
|
||
|
<PRE>
|
||
|
public void <B>report</B>(java.lang.String where)</PRE>
|
||
|
<DL>
|
||
|
<DD>Report on anything from glError().
|
||
|
Don't use this inside glBegin/glEnd otherwise it'll
|
||
|
throw an GL_INVALID_OPERATION error.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="loadPixels()"><!-- --></A><H3>
|
||
|
loadPixels</H3>
|
||
|
<PRE>
|
||
|
public void <B>loadPixels</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PImage.html#loadPixels()">PImage</A></CODE></B></DD>
|
||
|
<DD>Call this when you want to mess with the pixels[] array.
|
||
|
<p/>
|
||
|
For subclasses where the pixels[] buffer isn't set by default,
|
||
|
this should copy all data into the pixels[] array
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PImage.html#loadPixels()">loadPixels</A></CODE> in class <CODE><A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="updatePixels()"><!-- --></A><H3>
|
||
|
updatePixels</H3>
|
||
|
<PRE>
|
||
|
public void <B>updatePixels</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PImage.html#updatePixels()">PImage</A></CODE></B></DD>
|
||
|
<DD>Call this when finished messing with the pixels[] array.
|
||
|
<p/>
|
||
|
Mark all pixels as needing update.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PImage.html#updatePixels()">updatePixels</A></CODE> in class <CODE><A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="resize(int, int)"><!-- --></A><H3>
|
||
|
resize</H3>
|
||
|
<PRE>
|
||
|
public void <B>resize</B>(int wide,
|
||
|
int high)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PImage.html#resize(int, int)">PImage</A></CODE></B></DD>
|
||
|
<DD>Resize this image to a new width and height.
|
||
|
Use 0 for wide or high to make that dimension scale proportionally.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PImage.html#resize(int, int)">resize</A></CODE> in class <CODE><A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="get(int, int)"><!-- --></A><H3>
|
||
|
get</H3>
|
||
|
<PRE>
|
||
|
public int <B>get</B>(int x,
|
||
|
int y)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PImage.html#get(int, int)">PImage</A></CODE></B></DD>
|
||
|
<DD>Returns an ARGB "color" type (a packed 32 bit int with the color.
|
||
|
If the coordinate is outside the image, zero is returned
|
||
|
(black, but completely transparent).
|
||
|
<P>
|
||
|
If the image is in RGB format (i.e. on a PVideo object),
|
||
|
the value will get its high bits set, just to avoid cases where
|
||
|
they haven't been set already.
|
||
|
<P>
|
||
|
If the image is in ALPHA format, this returns a white with its
|
||
|
alpha value set.
|
||
|
<P>
|
||
|
This function is included primarily for beginners. It is quite
|
||
|
slow because it has to check to see if the x, y that was provided
|
||
|
is inside the bounds, and then has to check to see what image
|
||
|
type it is. If you want things to be more efficient, access the
|
||
|
pixels[] array directly.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PImage.html#get(int, int)">get</A></CODE> in class <CODE><A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="get()"><!-- --></A><H3>
|
||
|
get</H3>
|
||
|
<PRE>
|
||
|
public <A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A> <B>get</B>()</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PImage.html#get()">PImage</A></CODE></B></DD>
|
||
|
<DD>Returns a copy of this PImage. Equivalent to get(0, 0, width, height).
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PImage.html#get()">get</A></CODE> in class <CODE><A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="set(int, int, int)"><!-- --></A><H3>
|
||
|
set</H3>
|
||
|
<PRE>
|
||
|
public void <B>set</B>(int x,
|
||
|
int y,
|
||
|
int argb)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PImage.html#set(int, int, int)">PImage</A></CODE></B></DD>
|
||
|
<DD>Set a single pixel to the specified color.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PImage.html#set(int, int, int)">set</A></CODE> in class <CODE><A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="set(int, int, processing.core.PImage)"><!-- --></A><H3>
|
||
|
set</H3>
|
||
|
<PRE>
|
||
|
public void <B>set</B>(int x,
|
||
|
int y,
|
||
|
<A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A> source)</PRE>
|
||
|
<DL>
|
||
|
<DD>Set an image directly to the screen.
|
||
|
<P>
|
||
|
TODO not optimized properly, creates multiple temporary buffers
|
||
|
the size of the image. Needs to instead use image cache, but that
|
||
|
requires two types of image cache. One for power of 2 textures
|
||
|
and another for glReadPixels/glDrawPixels data that's flipped
|
||
|
vertically. Both have their components all swapped to native.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PImage.html#set(int, int, processing.core.PImage)">set</A></CODE> in class <CODE><A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="mask(int[])"><!-- --></A><H3>
|
||
|
mask</H3>
|
||
|
<PRE>
|
||
|
public void <B>mask</B>(int[] alpha)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PImage.html#mask(int[])">PImage</A></CODE></B></DD>
|
||
|
<DD>Set alpha channel for an image. Black colors in the source
|
||
|
image will make the destination image completely transparent,
|
||
|
and white will make things fully opaque. Gray values will
|
||
|
be in-between steps.
|
||
|
<P>
|
||
|
Strictly speaking the "blue" value from the source image is
|
||
|
used as the alpha color. For a fully grayscale image, this
|
||
|
is correct, but for a color image it's not 100% accurate.
|
||
|
For a more accurate conversion, first use filter(GRAY)
|
||
|
which will make the image into a "correct" grayscake by
|
||
|
performing a proper luminance-based conversion.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PImage.html#mask(int[])">mask</A></CODE> in class <CODE><A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="mask(processing.core.PImage)"><!-- --></A><H3>
|
||
|
mask</H3>
|
||
|
<PRE>
|
||
|
public void <B>mask</B>(<A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A> alpha)</PRE>
|
||
|
<DL>
|
||
|
<DD><B>Description copied from class: <CODE><A HREF="../../processing/core/PImage.html#mask(processing.core.PImage)">PImage</A></CODE></B></DD>
|
||
|
<DD>Set alpha channel for an image using another image as the source.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PImage.html#mask(processing.core.PImage)">mask</A></CODE> in class <CODE><A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="filter(int)"><!-- --></A><H3>
|
||
|
filter</H3>
|
||
|
<PRE>
|
||
|
public void <B>filter</B>(int kind)</PRE>
|
||
|
<DL>
|
||
|
<DD>This is really inefficient and not a good idea in OpenGL.
|
||
|
Use get() and set() with a smaller image area, or call the
|
||
|
filter on an image instead, and then draw that.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PImage.html#filter(int)">filter</A></CODE> in class <CODE><A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<HR>
|
||
|
|
||
|
<A NAME="filter(int, float)"><!-- --></A><H3>
|
||
|
filter</H3>
|
||
|
<PRE>
|
||
|
public void <B>filter</B>(int kind,
|
||
|
float param)</PRE>
|
||
|
<DL>
|
||
|
<DD>This is really inefficient and not a good idea in OpenGL.
|
||
|
Use get() and set() with a smaller image area, or call the
|
||
|
filter on an image instead, and then draw that.
|
||
|
<P>
|
||
|
<DD><DL>
|
||
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../processing/core/PImage.html#filter(int, float)">filter</A></CODE> in class <CODE><A HREF="../../processing/core/PImage.html" title="class in processing.core">PImage</A></CODE></DL>
|
||
|
</DD>
|
||
|
<DD><DL>
|
||
|
</DL>
|
||
|
</DD>
|
||
|
</DL>
|
||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||
|
<HR>
|
||
|
|
||
|
|
||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||
|
<A NAME="navbar_bottom"><!-- --></A>
|
||
|
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
||
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
||
|
<TR>
|
||
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
||
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
||
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
||
|
<TR ALIGN="center" VALIGN="top">
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
||
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
</TD>
|
||
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
||
|
</EM>
|
||
|
</TD>
|
||
|
</TR>
|
||
|
|
||
|
<TR>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
PREV CLASS
|
||
|
<A HREF="../../processing/opengl/PGraphicsOpenGL.TessCallback.html" title="class in processing.opengl"><B>NEXT CLASS</B></A></FONT></TD>
|
||
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
||
|
<A HREF="../../index.html?processing/opengl/PGraphicsOpenGL.html" target="_top"><B>FRAMES</B></A>
|
||
|
<A HREF="PGraphicsOpenGL.html" target="_top"><B>NO FRAMES</B></A>
|
||
|
<SCRIPT type="text/javascript">
|
||
|
<!--
|
||
|
if(window==top) {
|
||
|
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
|
||
|
}
|
||
|
//-->
|
||
|
</SCRIPT>
|
||
|
<NOSCRIPT>
|
||
|
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
|
||
|
</NOSCRIPT>
|
||
|
|
||
|
|
||
|
</FONT></TD>
|
||
|
</TR>
|
||
|
<TR>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
||
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
||
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
||
|
</TR>
|
||
|
</TABLE>
|
||
|
<A NAME="skip-navbar_bottom"></A>
|
||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||
|
|
||
|
<HR>
|
||
|
|
||
|
</BODY>
|
||
|
</HTML>
|