Java Code Examples for processing.core.PGraphics#showWarning()
The following examples show how to use
processing.core.PGraphics#showWarning() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Spout.java From haxademic with MIT License | 6 votes |
/** * Create a Spout Object. * * A spout object is created within the JNI dll * and a pointer to it saved in this class for * use with all functions. * * @param parent */ public Spout (PApplet parent) { // A pointer to the new spout object for this instance spoutPtr = JNISpout.init(); if(spoutPtr == 0) PGraphics.showWarning("Spout initialization failed"); this.parent = parent; pgl = (PGraphicsOpenGL) parent.g; dim[0] = 0; // Sender width dim[1] = 0; // Sender height bSenderInitialized = false; bReceiverInitialized = false; senderName = ""; invertMode = -1; // User has not set any mode - use function defaults parent.registerMethod("dispose", this); }
Example 2
Source File: Spout.java From haxademic with MIT License | 6 votes |
/** * Print current settings to the console. * * @param bInit - the initialization mode */ public void spoutReport(boolean bInit) { int ShareMode = 0; // Texture share default if(bInit) { ShareMode = JNISpout.getShareMode(spoutPtr); if(ShareMode == 2) System.out.println("Spout initialized memory sharing"); else if(ShareMode == 1) System.out.println("Spout initialized CPU texture sharing"); else System.out.println("Spout initialized texture sharing"); } else { PGraphics.showWarning("Spout intialization failed"); } }
Example 3
Source File: DelegatedGraphics.java From PapARt with GNU Lesser General Public License v3.0 | 4 votes |
public static void showWarning(String msg) { PGraphics.showWarning(msg); }
Example 4
Source File: DelegatedGraphics.java From PapARt with GNU Lesser General Public License v3.0 | 4 votes |
public static void showWarning(String msg, Object... args) { PGraphics.showWarning(msg, args); }