Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion jme3-core/src/main/java/com/jme3/system/AppSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ public boolean isSwapBuffers() {
/**
* True to enable the creation of an OpenCL context.
*
* @param support
* @param support whether to create the context or not
*/
public void setOpenCLSupport(boolean support) {
putBoolean("OpenCL", support);
Expand All @@ -1163,4 +1163,28 @@ public void setOpenCLPlatformChooser(Class<? extends PlatformChooser> chooser) {
public String getOpenCLPlatformChooser() {
return getString("OpenCLPlatformChooser");
}

/**
* Determine if the renderer will be run in Graphics Debug mode, which means every openGL Call is checked and
* if it returns an error code, throw a {@link com.jme3.renderer.RendererException}.<br />
* Without this, many openGL calls might fail without notice, so turning it on is recommended for development.
*
* @return whether the context will be run in Graphics Debug Mode or not
* @see #setGraphicsDebug(boolean)
*/
public boolean isGraphicsDebug() {
return getBoolean("GraphicsDebug");
}

/**
* Set whether the renderer will be run in Graphics Debug mode, which means every openGL Call is checked and
* if it returns an error code, throw a {@link com.jme3.renderer.RendererException}.<br />
* Without this, many openGL calls might fail without notice, so turning it on is recommended for development.
*
* @param debug whether the context will be run in Graphics Debug Mode or not
* @see #isGraphicsDebug()
*/
public void setGraphicsDebug(boolean debug) {
putBoolean("GraphicsDebug", debug);
}
}