Methods Summary |
---|
public void | activateGLEnvironment()Activate the GL environment for use in the current thread. A GL environment must have been
previously set or created using setGLEnvironment() or createGLEnvironment()! Call this after
having switched to a new thread for GL filter execution.
GLEnvironment glEnv = mContext.getGLEnvironment();
if (glEnv != null) {
mContext.getGLEnvironment().activate();
} else {
throw new NullPointerException("No GLEnvironment in place to activate!");
}
|
public void | createGLEnvironment()Create and activate a new GL environment for use in this filter context.
GLEnvironment glEnvironment = new GLEnvironment();
glEnvironment.initWithNewContext();
setGLEnvironment(glEnvironment);
|
public void | deactivateGLEnvironment()Deactivate the GL environment from use in the current thread. A GL environment must have been
previously set or created using setGLEnvironment() or createGLEnvironment()! Call this before
running GL filters in another thread.
GLEnvironment glEnv = mContext.getGLEnvironment();
if (glEnv != null) {
mContext.getGLEnvironment().deactivate();
} else {
throw new NullPointerException("No GLEnvironment in place to deactivate!");
}
|
public android.filterfw.core.FilterContext | getContext()Returns the environment's filter-context.
return mContext;
|
public void | setGLEnvironment(android.filterfw.core.GLEnvironment glEnvironment)Set the environment's GL environment to the specified environment. This does not activate
the environment.
mContext.initGLEnvironment(glEnvironment);
|