| Modifier and Type | Field and Description |
|---|---|
| public static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final GL | create(final String
the basename of the pipline class name pipelineClazzBaseName, final Class<?> optional requested interface to be used, may be null, in which case the first matching one is used reqInterface, final GL is always the 1st argument for the upstream constructor downstream, final Object[] additional arguments for the upstream constructor additionalArgs)Creates a pipelined GL instance using the given downstream |
| private static final String | |
| private static final Class |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG | |
| GLPipelineFactory | back to summary |
|---|---|
| public GLPipelineFactory() | |
| create | back to summary |
|---|---|
| public static final GL create(final String pipelineClazzBaseName, final Class<?> reqInterface, final GL downstream, final Object[] additionalArgs) Creates a pipelined GL instance using the given downstream Sample code which installs a Debug and Trace pipeline automatic w/ user defined interface, here: GL2ES2:
gl = drawable.setGL( GLPipelineFactory.create("com.jogamp.opengl.Debug", GL2ES2.class, gl, null) );
gl = drawable.setGL( GLPipelineFactory.create("com.jogamp.opengl.Trace", GL2ES2.class, gl, new Object[] { System.err } ) );
or automatic w/ automatic defined class:
gl = drawable.setGL( GLPipelineFactory.create("com.jogamp.opengl.Debug", null, gl, null) );
gl = drawable.setGL( GLPipelineFactory.create("com.jogamp.opengl.Trace", null, gl, new Object[] { System.err } ) );
The upstream GL instance is determined as follows:
| |
| getArgsClassNameList | back to summary |
|---|---|
| private static final String getArgsClassNameList(final Class<?> arg0, final Object[] args) | |
| getUpstreamClazz | back to summary |
|---|---|
| private static final Class | |