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 classFlags that control the behavior of the applicationfinal classfinal 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 BGFXEngineBGFX rendering enginefinal GLX.Flagsfinal GLX.ProgramsPublicly accessible, globally reusable shader programs.final UIThe UI stackfinal LXEngine.Framefinal GLX.VertexBuffersPublicly accessible, globally reusable vertex buffersfinal VGraphicsThe Vector Graphics implementationfinal GLXWindowThe window that runs this applicationFields 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 static voidvoidassertBgfxThread(String error) voidvoidassertBgfxThreadDispose(BGFXEngine.Resource resource) voidassertBgfxThreadUpdate(BGFXEngine.Resource resource) booleanbgfxThreadDispose(BGFXEngine.Resource resource) Returns true if we are on the BGFX thread and can immediately dispose of this resource.protected UIbuildUI()Subclasses may override to create a custom structured UIvoiddispose()Shut down resources of the LX instance.static voidstatic voidvoidimportContentJar(File file, boolean overwrite) protected voidimportContentJar(File file, File destination) static voidstatic voidopenDesktop(String url) voidvoidrun()voidvoidvoidshowConfirmDialog(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, _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
-
flags
-
window
The window that runs this application -
bgfx
BGFX rendering engine -
vg
The Vector Graphics implementation -
program
Publicly accessible, globally reusable shader programs. -
vertexBuffer
Publicly accessible, globally reusable vertex buffers -
ui
The UI stack -
uiFrame
-
-
Constructor Details
-
GLX
- Throws:
IOException
-
GLX
- Throws:
IOException
-
GLX
- Throws:
IOException
-
-
Method Details
-
assertBgfxThreadAllocation
-
assertBgfxThreadUpdate
-
assertBgfxThreadDispose
-
assertBgfxThread
-
bgfxThreadDispose
Returns true if we are on the BGFX thread and can immediately dispose of this resource. Otherwise it is scheduled to run later on the BGFX thread at which point this call will succeed.- Parameters:
resource- Resource- Returns:
- true if the dispose code should run now
-
run
public void run() -
dispose
public void dispose()Description copied from class:LXShut down resources of the LX instance. -
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
-
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
-
openDesktop
-
log
-
error
-
error
-
_error
-