Methods | |
Number | getHeight () |
Number | getMaxSize () |
Number | getWidth () |
Boolean | isEnabled () |
Boolean | isSupported () |
Boolean | isValid () |
void | setEnabled (Boolean onOff) |
void | setMaxSize (Number maxSize) |
Do not create an instance of this class yourself, rather, request a pointer to the global pbuffer object via DzOpenGL::getPBuffer().
Number DzPBuffer::getHeight | ( | ) |
Number DzPBuffer::getMaxSize | ( | ) |
Number DzPBuffer::getWidth | ( | ) |
Boolean DzPBuffer::isEnabled | ( | ) |
Boolean DzPBuffer::isSupported | ( | ) |
Boolean DzPBuffer::isValid | ( | ) |
void DzPBuffer::setEnabled | ( | Boolean | onOff | ) |
Sets whether pbuffer rendering is enabled. If it is enabled and the hardware supports pbuffers, the largest available pbuffer will be allocated on the hardware. If it is disabled, no pbuffer object is allocated, and the pbuffer object will return false for isValid().
void DzPBuffer::setMaxSize | ( | Number | maxSize | ) |
Sets the maximum size for the pbuffer (the pbuffer is created square: i.e. maxSize x maxSize)
maxSize | The new maximum PBuffer size. Sizes of 512, 1024, and 2048 are currently supported. Other values will be rounded to the nearest supported size. |