Package heronarts.glx
Class GLX
java.lang.Object
heronarts.lx.LX
heronarts.glx.GLX
- Direct Known Subclasses:
LXStudio
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic enumfinal classNested classes/interfaces inherited from class heronarts.lx.LX
LX.Error, LX.InitProfiler, LX.InstantiationException, LX.Listener, LX.Media, LX.ModelListener, LX.Permissions, LX.ProjectListener -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal GLX.Flagsfinal GLX.ProgramsPublicly accessible, globally reusable shader programs.final UIfinal LXEngine.Framefinal VGraphicsfinal booleanFields inherited from class heronarts.lx.LX
clipboard, command, engine, errorChanged, failure, HALF_PI, HALF_PIf, initProfiler, KEY_TIMESTAMP, KEY_VERSION, LOG_DEBUG, LOG_WARNINGS, model, permissions, PIf, preferences, registry, scheduler, statusMessage, structure, TWO_PI, TWO_PIf, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected UIbuildUI()Subclasses may override to create a custom structured UIvoiddispose()Shut down resources of the LX instance.static voidstatic voidintintintfloatfloatfloatfloatfloatfloatfloatvoidimportContentJar(File file, boolean overwrite) protected voidimportContentJar(File file, File destination) booleanisOpenGL()static voidvoidvoidrun()voidsetMouseCursor(GLX.MouseCursor mouseCursor) voidprotected voidsetWindowSize(int windowWidth, int windowHeight) voidvoidshowConfirmDialog(String message, Runnable confirm) protected voidshowConfirmUnsavedModelDialog(File file, Runnable confirm) protected voidshowConfirmUnsavedProjectDialog(String message, Runnable confirm) voidshowOpenFileDialog(String dialogTitle, String fileType, String[] extensions, String defaultPath, GLX.FileDialogCallback success) Show an open file dialogvoidvoidvoidshowSaveFileDialog(String dialogTitle, String fileType, String[] extensions, String defaultPath, GLX.FileDialogCallback success) Show a save file dialogvoidvoidMethods inherited from class heronarts.lx.LX
_error, _error, _log, _log, _log, addEffect, addEffects, addListener, addOutput, addProjectListener, autoSaveProject, bootstrapMediaPath, bootstrapMediaPath, canInstantiate, compareVersion, confirmChangesSaved, confirmModelSaved, debug, disableAutoCycle, dispose, enableAutoCycle, error, error, error, fail, getComponent, getError, getLogFile, getMediaFile, getMediaFile, getMediaFile, getMediaFolder, getMediaFolder, getMediaPath, getMediaPath, getModel, getPatterns, getPermissions, getPresetFile, getPresetFolder, getProject, getProjectComponent, goIndex, goNext, goPattern, goPrev, headless, hsa, hsb, instantiateBlend, instantiateBlend, instantiateComponent, instantiateComponent, instantiateEffect, instantiateEffect, instantiateFixture, instantiateFixture, instantiateModel, instantiateModulator, instantiateModulator, instantiatePattern, instantiatePattern, instantiateRegistry, instantiateStatic, isLoading, isPaused, logInitProfiler, main, newProject, onModelChanged, onModelChanged, openProject, openProject, popError, pushError, pushError, pushError, pushError, pushStatusMessage, registerExternal, removeEffect, removeListener, removeProjectListener, rgb, saveProject, saveProject, setLogFile, setModelImportFlag, setPatterns, setPaused, setProject, setScheduleLoadingFlag, setSpeed, togglePaused, version, warning
-
Field Details
-
vg
-
zZeroToOne
public final boolean zZeroToOne -
ui
-
uiFrame
-
program
Publicly accessible, globally reusable shader programs. -
flags
-
-
Constructor Details
-
GLX
- Throws:
IOException
-
GLX
- Throws:
IOException
-
-
Method Details
-
run
public void run() -
buildUI
Subclasses may override to create a custom structured UI- Returns:
- The instantiated UI object
- Throws:
IOException- if required UI assets could not be loaded
-
getRenderer
public int getRenderer() -
isOpenGL
public boolean isOpenGL() -
getUIWidth
public float getUIWidth() -
getUIHeight
public float getUIHeight() -
getFrameBufferWidth
public int getFrameBufferWidth() -
getFrameBufferHeight
public int getFrameBufferHeight() -
getUIZoom
public float getUIZoom() -
getUIContentScaleX
public float getUIContentScaleX() -
getUIContentScaleY
public float getUIContentScaleY() -
getSystemContentScaleX
public float getSystemContentScaleX() -
getSystemContentScaleY
public float getSystemContentScaleY() -
setWindowSize
protected void setWindowSize(int windowWidth, int windowHeight) -
dispose
public void dispose()Description copied from class:LXShut down resources of the LX instance. -
setMouseCursor
-
importContentJar
-
importContentJar
-
reloadContent
public void reloadContent() -
showSaveProjectDialog
public void showSaveProjectDialog() -
showOpenProjectDialog
public void showOpenProjectDialog() -
showSaveScheduleDialog
public void showSaveScheduleDialog() -
showAddScheduleEntryDialog
public void showAddScheduleEntryDialog() -
showOpenScheduleDialog
public void showOpenScheduleDialog() -
showSaveFileDialog
public void showSaveFileDialog(String dialogTitle, String fileType, String[] extensions, String defaultPath, GLX.FileDialogCallback success) Show a save file dialog- Parameters:
dialogTitle- Dialog titlefileType- File type descriptionextensions- Valid file extensionsdefaultPath- Default file pathsuccess- Callback on successful invocation
-
showOpenFileDialog
public void showOpenFileDialog(String dialogTitle, String fileType, String[] extensions, String defaultPath, GLX.FileDialogCallback success) Show an open file dialog- Parameters:
dialogTitle- Dialog titlefileType- File type descriptionextensions- Valid file extensionsdefaultPath- Default file pathsuccess- Callback on successful invocation
-
showConfirmUnsavedProjectDialog
- Overrides:
showConfirmUnsavedProjectDialogin classLX
-
showConfirmUnsavedModelDialog
- Overrides:
showConfirmUnsavedModelDialogin classLX
-
showConfirmDialog
- Overrides:
showConfirmDialogin classLX
-
setSystemClipboardString
- Overrides:
setSystemClipboardStringin classLX
-
log
-
error
-
error
-