|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hermetica.magician.GLDrawableFactory
This class instantiates GLComponent objects tailored to the requirements that you give it and the JVM/AWT implementation you are currently executing Magician applications on. For example, Sun and Microsoft's AWT implementations for Magician are incompatible, but this class will hide the differences for you ensuring your applications work on all platforms without any code changes.
GLComponent
,
com.hermetica.magician.JGLComponent
,
GLOffscreenBuffer
,
GLContext
Constructor Summary | |
GLDrawableFactory()
|
Method Summary | |
static GLDrawable |
createGLComponent()
Creates a new GLComponent object with the default dimensions of 100x100 |
static GLDrawable |
createGLComponent(java.awt.Dimension dim)
Creates a new GLComponent object with the given dimensions |
static GLDrawable |
createGLComponent(GLComponent component)
Creates a new GLComponent object with the default dimensions of 100x100 and is set to share the display lists and texture objects of the given component. |
static GLDrawable |
createGLComponent(GLComponent component,
java.awt.Dimension dim)
Creates a new GLComponent object with the given dimensions and the display lists and texture objects of the given component |
static GLDrawable |
createGLComponent(GLComponent component,
GLContext context)
Creates a new GLComponent object with the default dimensions of 100x100 and the given customized OpenGL rendering context and the given component whose display lists and texture objects will be shared. |
static GLDrawable |
createGLComponent(GLComponent component,
GLContext context,
java.awt.Dimension dim)
Creates a new GLComponent object with the given dimensions and the given customized OpenGL rendering context and the given component whose display lists and texture objects will be shared. |
static GLDrawable |
createGLComponent(GLComponent component,
GLContext context,
int width,
int height)
Creates a new GLComponent object with the given dimensions and the display lists and texture objects of the given component not to mention using the pre-created OpenGL rendering context |
static GLDrawable |
createGLComponent(GLComponent component,
int width,
int height)
Creates a new GLComponent object with the given dimensions and sharing the display lists and texture objects of the given component |
static GLDrawable |
createGLComponent(GLContext context)
Creates a new GLComponent object with the default dimensions of 100x100 and the given customized OpenGL rendering context |
static GLDrawable |
createGLComponent(GLContext context,
java.awt.Dimension dim)
Creates a new GLComponent object with the given dimensions and the pre-created rendering context |
static GLDrawable |
createGLComponent(GLContext context,
int width,
int height)
Creates a new GLComponent object with the given dimensions and the pre-created rendering context |
static GLDrawable |
createGLComponent(int width,
int height)
Creates a new GLComponent object with the given dimensions |
static GLDrawable |
createGLOffscreenBuffer()
Creates a new GLOffscreenBuffer object with the default dimensions of 100x100 |
static GLDrawable |
createGLOffscreenBuffer(java.awt.Dimension dim)
Creates a new GLOffscreenBuffer object with the given dimensions |
static GLDrawable |
createGLOffscreenBuffer(GLContext context)
Creates a new GLOffscreenBuffer object with the default dimensions of 100x100 and the given customized OpenGL rendering context |
static GLDrawable |
createGLOffscreenBuffer(GLContext context,
java.awt.Dimension dim)
Creates a new GLOffscreenBuffer object with the given dimensions and the pre-created rendering context |
static GLDrawable |
createGLOffscreenBuffer(GLContext context,
int width,
int height)
Creates a new GLOffscreenBuffer object with the given dimensions and the pre-created rendering context |
static GLDrawable |
createGLOffscreenBuffer(GLDrawable component)
Creates a new GLOffscreenBuffer object with the default dimensions of 100x100 and is set to share the display lists and texture objects of the given component. |
static GLDrawable |
createGLOffscreenBuffer(GLDrawable component,
java.awt.Dimension dim)
Creates a new GLOffscreenBuffer object with the given dimensions and the display lists and texture objects of the given component |
static GLDrawable |
createGLOffscreenBuffer(GLDrawable component,
GLContext context)
Creates a new GLOffscreenBuffer object with the default dimensions of 100x100 and the given customized OpenGL rendering context and the given component whose display lists and texture objects will be shared. |
static GLDrawable |
createGLOffscreenBuffer(GLDrawable component,
GLContext context,
java.awt.Dimension dim)
Creates a new GLOffscreenBuffer object with the given dimensions and the given customized OpenGL rendering context and the given component whose display lists and texture objects will be shared. |
static GLDrawable |
createGLOffscreenBuffer(GLDrawable component,
GLContext context,
int width,
int height)
Creates a new GLOffscreenBuffer object with the given dimensions and the display lists and texture objects of the given component not to mention using the pre-created OpenGL rendering context |
static GLDrawable |
createGLOffscreenBuffer(GLDrawable component,
int width,
int height)
Creates a new GLOffscreenBuffer object with the given dimensions and sharing the display lists and texture objects of the given component |
static GLDrawable |
createGLOffscreenBuffer(int width,
int height)
Creates a new GLOffscreenBuffer object with the given dimensions |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public GLDrawableFactory()
Method Detail |
public static final GLDrawable createGLComponent()
public static final GLDrawable createGLComponent(GLComponent component)
component
- Another component whose texture objects and display lists will be sharedpublic static final GLDrawable createGLComponent(GLContext context)
context
- The pre-allocated OpenGL rendering contextpublic static final GLDrawable createGLComponent(GLComponent component, GLContext context)
component
- The component whose texture objects and display lists will be sharedcontext
- The pre-allocated OpenGL rendering contextpublic static final GLDrawable createGLComponent(GLComponent component, GLContext context, java.awt.Dimension dim)
component
- The component whose texture objects and display lists will be sharedcontext
- The pre-allocated OpenGL rendering contextdim
- The dimensions of the componentpublic static final GLDrawable createGLComponent(int width, int height)
width
- The width of the componentheight
- The height of the componentpublic static final GLDrawable createGLComponent(java.awt.Dimension dim)
dim
- The dimensions of the componentpublic static final GLDrawable createGLComponent(GLContext context, java.awt.Dimension dim)
context
- The pre-created OpenGL rendering contextdim
- The dimensions of the componentpublic static final GLDrawable createGLComponent(GLContext context, int width, int height)
context
- The pre-created OpenGL rendering contextwidth
- The width of the componentheight
- The height of the componentpublic static final GLDrawable createGLComponent(GLComponent component, int width, int height)
component
- The component whose display lists and texture objects are to be sharedwidth
- The width of the componentheight
- The height of the componentpublic static final GLDrawable createGLComponent(GLComponent component, java.awt.Dimension dim)
context
- The component whose display lists and texture objects are to be shareddim
- The dimensions of the componentpublic static GLDrawable createGLComponent(GLComponent component, GLContext context, int width, int height)
component
- The component whose display lists and texture objects are to be sharedcontext
- The pre-created OpenGL rendering contextwidth
- The width of the componentheight
- The height of the componentpublic static final GLDrawable createGLOffscreenBuffer()
public static final GLDrawable createGLOffscreenBuffer(GLDrawable component)
component
- Another component whose texture objects and display lists will be sharedpublic static final GLDrawable createGLOffscreenBuffer(GLContext context)
context
- The pre-allocated OpenGL rendering contextpublic static final GLDrawable createGLOffscreenBuffer(GLDrawable component, GLContext context)
component
- The component whose texture objects and display lists will be sharedcontext
- The pre-allocated OpenGL rendering contextpublic static final GLDrawable createGLOffscreenBuffer(GLDrawable component, GLContext context, java.awt.Dimension dim)
component
- The component whose texture objects and display lists will be sharedcontext
- The pre-allocated OpenGL rendering contextdim
- The dimensions of the componentpublic static final GLDrawable createGLOffscreenBuffer(int width, int height)
width
- The width of the componentheight
- The height of the componentpublic static final GLDrawable createGLOffscreenBuffer(java.awt.Dimension dim)
dim
- The dimensions of the componentpublic static final GLDrawable createGLOffscreenBuffer(GLContext context, java.awt.Dimension dim)
context
- The pre-created OpenGL rendering contextdim
- The dimensions of the componentpublic static final GLDrawable createGLOffscreenBuffer(GLContext context, int width, int height)
context
- The pre-created OpenGL rendering contextwidth
- The width of the componentheight
- The height of the componentpublic static final GLDrawable createGLOffscreenBuffer(GLDrawable component, int width, int height)
component
- The component whose display lists and texture objects are to be sharedwidth
- The width of the componentheight
- The height of the componentpublic static final GLDrawable createGLOffscreenBuffer(GLDrawable component, java.awt.Dimension dim)
context
- The component whose display lists and texture objects are to be shareddim
- The dimensions of the componentpublic static GLDrawable createGLOffscreenBuffer(GLDrawable component, GLContext context, int width, int height)
component
- The component whose display lists and texture objects are to be sharedcontext
- The pre-created OpenGL rendering contextwidth
- The width of the componentheight
- The height of the component
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |