org.deegree.services.wpvs.rendering.jogl
Class GLPBufferPool
java.lang.Object
org.deegree.services.wpvs.rendering.jogl.GLPBufferPool
public class GLPBufferPool
- extends java.lang.Object
The GLPBufferPool
supplies methods for the creation of pbuffers. In the future it will be able to pool
buffers as well.
- Version:
- $Revision: 24354 $, $Date: 2010-05-12 15:26:34 +0200 (Mi, 12. Mai 2010) $
- Author:
- Rutger Bezema, last edited by: $Author: rbezema $
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(org.deegree.rendering.r3d.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.