|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object codeanticode.glgraphics.GLWindow codeanticode.glgraphics.GLTextureWindow
public class GLTextureWindow
An undecorated ligheweight AWT window to show just a single texture created in the main OpenGL context of the parent PApplet. The renderer in parent must be of type GLGraphics.
Field Summary | |
---|---|
int |
frameCount
|
float |
frameRate
|
Constructor Summary | |
---|---|
GLTextureWindow(processing.core.PApplet parent,
int x,
int y,
int w,
int h)
Creates a visible instance of GLTextureWindow with the specified size (w, h) and position (x, y), which will show texture tex in it. |
|
GLTextureWindow(processing.core.PApplet parent,
int x,
int y,
int w,
int h,
boolean v)
|
|
GLTextureWindow(processing.core.PApplet parent,
int x,
int y,
int w,
int h,
boolean v,
boolean b)
|
|
GLTextureWindow(processing.core.PApplet parent,
java.lang.String s,
int x,
int y,
int w,
int h,
boolean v,
boolean b,
boolean r)
Creates an instance of GLTextureWindow with the specified size (w, h) and position (x, y), which will show texture tex in it. |
Method Summary | |
---|---|
void |
delete()
|
void |
frameRate(float newRateTarget)
|
int |
getHeight()
Returns the current height of the window. |
int |
getWidth()
Returns the current width of the window. |
int |
getX()
Returns the current X coordinate of the window (upper left corner). |
int |
getY()
Returns the current Y coordinate of the window (upper left corner). |
void |
hide()
Hides the window. |
void |
init()
|
boolean |
isInitialized()
Returns true if the window and all necessary elements have been initialized. |
boolean |
isVisible()
Returns whether the window is visible or not. |
boolean |
ready()
Returns true if the renderer is ready to draw. |
void |
render()
Draws the window, if the renderer has been initialized. |
void |
setLocation(int x,
int y)
Sets the window location. |
void |
setOverride(boolean override)
Sets the override property to the desired value. |
void |
setTexture(GLTexture tex)
|
void |
show()
Shows the window. |
void |
tint(int color)
Sets the texture tint color. |
void |
yeah()
|
Methods inherited from class codeanticode.glgraphics.GLWindow |
---|
getOverride |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float frameRate
public int frameCount
Constructor Detail |
---|
public GLTextureWindow(processing.core.PApplet parent, int x, int y, int w, int h)
parent
- PApplettex
- GLTexturex
- inty
- intw
- inth
- intpublic GLTextureWindow(processing.core.PApplet parent, int x, int y, int w, int h, boolean v)
public GLTextureWindow(processing.core.PApplet parent, int x, int y, int w, int h, boolean v, boolean b)
public GLTextureWindow(processing.core.PApplet parent, java.lang.String s, int x, int y, int w, int h, boolean v, boolean b, boolean r)
parent
- PApplettex
- GLTexturename
- Stringx
- inty
- intw
- inth
- intv
- booleand
- booleanr
- booleanMethod Detail |
---|
public void init()
init
in class GLWindow
public void frameRate(float newRateTarget)
public void delete()
public void setTexture(GLTexture tex)
public void setOverride(boolean override)
setOverride
in class GLWindow
override
- booleanpublic void show()
show
in class GLWindow
public void hide()
hide
in class GLWindow
public boolean isVisible()
isVisible
in class GLWindow
public int getWidth()
public int getHeight()
public int getX()
public int getY()
public void tint(int color)
int
- colorpublic boolean ready()
ready
in class GLWindow
public boolean isInitialized()
isInitialized
in class GLWindow
public void yeah()
public void render()
render
in class GLWindow
public void setLocation(int x, int y)
x
- inty
- int
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |