public class ViewportResizeManager extends Object implements GraphicsResizeListener
This class deals only with fullscreen resizing capabilities. All viewports registered for management will resize to the full screen size handed to us by the listener.
| Constructor and Description |
|---|
ViewportResizeManager()
Create a new instance of this manager now.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addManagedViewport(Viewport view)
Add a viewport to be managed.
|
void |
clear()
Clear all of the current viewports from the manager.
|
void |
graphicsDeviceResized(int x,
int y,
int width,
int height) |
void |
removeManagedViewport(Viewport view)
Remove a viewport that is being managed.
|
void |
sendResizeUpdates()
Clock the updates that should be sent now.
|
public ViewportResizeManager()
public void graphicsDeviceResized(int x,
int y,
int width,
int height)
graphicsDeviceResized in interface GraphicsResizeListenerpublic void sendResizeUpdates()
public void addManagedViewport(Viewport view)
view - The viewport instance to usepublic void removeManagedViewport(Viewport view)
view - The viewport instance to removepublic void clear()
Copyright © 2001 - 2015 j3d.org