org.deegree.services.wpvs.rendering.jogl
Class GLPBufferPool
java.lang.Object
org.deegree.services.wpvs.rendering.jogl.GLPBufferPool
public class GLPBufferPool
- extends Object
The GLPBufferPool
supplies methods for the creation of pbuffers. In the future it will be able to pool
buffers as well.
- Version:
- $Revision: 30127 $, $Date: 2011-03-22 11:11:12 +0100 (Tue, 22 Mar 2011) $
- Author:
- Rutger Bezema, last edited by: $Author: aschmitz $
Constructor Summary |
GLPBufferPool(int maxNumberOfBuffers,
int maxWidth,
int maxHeight)
Create a new pool of GLPBuffers, with the given max width and max height. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GLPBufferPool
public GLPBufferPool(int maxNumberOfBuffers,
int maxWidth,
int maxHeight)
- Create a new pool of GLPBuffers, with the given max width and max height. If the max width and or height is
larger as the maximum PBuffer size, the maximum PBuffer size will be used in the requested aspect.
- Parameters:
maxNumberOfBuffers
- maxWidth
- maxHeight
-
getOffscreenBuffer
public javax.media.opengl.GLPbuffer getOffscreenBuffer(ViewParams viewParams)
- creates and returns a GLPbuffer for offscreen rendering the configured maximum width and height will be used.
- Parameters:
viewParams
- to get the buffer for.
- Returns:
- an offscreen
GLPbuffer
with the maximum configured width and height.
getMaxTextureSize
public final int getMaxTextureSize()
- Returns:
- the glTextureSize
getMaxWidth
public final int getMaxWidth()
- Returns:
- the maxWidth
getMaxHeight
public final int getMaxHeight()
- Returns:
- the maxHeight
Copyright © 2011. All Rights Reserved.