Package heronarts.glx
Class GLX
java.lang.Object
heronarts.lx.LX
heronarts.glx.GLX
- Direct Known Subclasses:
LXStudio
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static class
final class
Nested classes/interfaces inherited from class heronarts.lx.LX
LX.Error, LX.InitProfiler, LX.InstantiationException, LX.Listener, LX.Media, LX.Permissions, LX.ProjectListener
-
Field Summary
Modifier and TypeFieldDescriptionfinal GLX.Flags
final GLX.Programs
Publicly accessible, globally reusable shader programs.final UI
final LXEngine.Frame
final VGraphics
final boolean
Fields inherited from class heronarts.lx.LX
clipboard, command, engine, errorChanged, failure, HALF_PI, HALF_PIf, initProfiler, KEY_TIMESTAMP, KEY_VERSION, LOG_WARNINGS, model, permissions, PIf, preferences, registry, scheduler, statusMessage, structure, TWO_PI, TWO_PIf, VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected UI
buildUI()
Subclasses may override to create a custom structured UIvoid
dispose()
Shut down resources of the LX instance.static void
static void
int
int
int
float
float
float
float
float
float
float
protected void
importContentJar
(File file, File destination) boolean
isOpenGL()
static void
void
void
run()
void
protected void
setWindowSize
(int windowWidth, int windowHeight) void
void
showConfirmDialog
(String message, Runnable confirm) protected void
showConfirmUnsavedModelDialog
(File file, Runnable confirm) protected void
showConfirmUnsavedProjectDialog
(String message, Runnable confirm) void
showOpenFileDialog
(String dialogTitle, String fileType, String[] extensions, String defaultPath, GLX.FileDialogCallback success) Show an open file dialogvoid
void
void
showSaveFileDialog
(String dialogTitle, String fileType, String[] extensions, String defaultPath, GLX.FileDialogCallback success) Show a save file dialogvoid
void
void
useHandCursor
(boolean useHandCursor) Methods inherited from class heronarts.lx.LX
_error, _error, _log, _log, _log, addEffect, addEffects, addListener, addOutput, addProjectListener, autoSaveProject, bootstrapMediaPath, bootstrapMediaPath, canInstantiate, confirmChangesSaved, confirmModelSaved, disableAutoCycle, enableAutoCycle, 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, 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:LX
Shut down resources of the LX instance. -
useHandCursor
public void useHandCursor(boolean useHandCursor) -
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:
showConfirmUnsavedProjectDialog
in classLX
-
showConfirmUnsavedModelDialog
- Overrides:
showConfirmUnsavedModelDialog
in classLX
-
showConfirmDialog
-
setSystemClipboardString
- Overrides:
setSystemClipboardString
in classLX
-
log
-
error
-
error
-