idx3d
Class idx3d_Screen
java.lang.Object
idx3d.idx3d_Screen
public class idx3d_Screen
- extends java.lang.Object
Defines a virtual screen which is a server for rendered images.
- Version:
- 3.3 2003-12-19 Werner Randelshofer Keep a weak reference to the
antialiased and the non-antialiased pixel arrays.
3.2 2003-12-19 Werner Randelshofer: Method setAntialias changed to
fail safely when not enough memory is available. Method performAntialiasing
changed to create an antialiased image, which has the same brightness and
the same color fidelity than the non-antialiased image.
Method resize clears references to the pixel arrays before allocating new
ones. This helps to reduce peak memory requirements.
Added dispose method.
|
Method Summary |
void |
add(idx3d_Texture texture,
int posx,
int posy,
int xsize,
int ysize)
|
boolean |
antialias()
|
idx3d_Texture |
asTexture()
|
void |
clear(int bgcolor)
|
void |
dispose()
|
void |
draw(idx3d_Texture texture,
int posx,
int posy,
int xsize,
int ysize)
|
void |
drawBackground(idx3d_Texture texture,
int posx,
int posy,
int xsize,
int ysize)
|
java.awt.Image |
getImage()
|
boolean |
isAntialias()
|
void |
render()
|
void |
resize(int width,
int height)
|
void |
setAntialias(boolean active)
Switches antialiasing on or off. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pixel
public int[] pixel
width
public int width
height
public int height
idx3d_Screen
public idx3d_Screen(int w,
int h)
render
public void render()
getImage
public java.awt.Image getImage()
setAntialias
public void setAntialias(boolean active)
- Switches antialiasing on or off.
The current implementation for antialiasing needs huge
amounts of memory. In case if allocation of the memory fails,
we safely revert to non-antialiased mode.
isAntialias
public boolean isAntialias()
asTexture
public idx3d_Texture asTexture()
clear
public final void clear(int bgcolor)
resize
public void resize(int width,
int height)
antialias
public boolean antialias()
dispose
public void dispose()
draw
public void draw(idx3d_Texture texture,
int posx,
int posy,
int xsize,
int ysize)
add
public void add(idx3d_Texture texture,
int posx,
int posy,
int xsize,
int ysize)
drawBackground
public void drawBackground(idx3d_Texture texture,
int posx,
int posy,
int xsize,
int ysize)