|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hermetica.magician.GLComponentFactory
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
,
GLContext
Constructor Summary | |
GLComponentFactory()
|
Method Summary | |
static GLComponent |
createGLComponent()
Creates a new GLComponent object with the default dimensions of 100x100 |
static GLComponent |
createGLComponent(java.awt.Dimension dim)
Creates a new GLComponent object with the given dimensions |
static GLComponent |
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 GLComponent |
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 GLComponent |
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 GLComponent |
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 GLComponent |
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 GLComponent |
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 GLComponent |
createGLComponent(GLContext context)
Creates a new GLComponent object with the default dimensions of 100x100 and the given customized OpenGL rendering context |
static GLComponent |
createGLComponent(GLContext context,
java.awt.Dimension dim)
Creates a new GLComponent object with the given dimensions and the pre-created rendering context |
static GLComponent |
createGLComponent(GLContext context,
int width,
int height)
Creates a new GLComponent object with the given dimensions and the pre-created rendering context |
static GLComponent |
createGLComponent(int width,
int height)
Creates a new GLComponent 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 GLComponentFactory()
Method Detail |
public static final GLComponent createGLComponent()
public static final GLComponent createGLComponent(GLComponent component)
component
- Another component whose texture objects and display lists will be sharedpublic static final GLComponent createGLComponent(GLContext context)
context
- The pre-allocated OpenGL rendering contextpublic static final GLComponent 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 GLComponent 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 GLComponent createGLComponent(int width, int height)
width
- The width of the componentheight
- The height of the componentpublic static final GLComponent createGLComponent(java.awt.Dimension dim)
dim
- The dimensions of the componentpublic static final GLComponent createGLComponent(GLContext context, java.awt.Dimension dim)
context
- The pre-created OpenGL rendering contextdim
- The dimensions of the componentpublic static final GLComponent 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 GLComponent 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 GLComponent 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 GLComponent 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 component
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |