void CGLUtil::destroyVBOsPBOs(){
		if( !_bVBOsPBOsCreated ) return;
		for (ushort usLevel=0; usLevel<_usPyrHeight; usLevel++){
			//destroyVBOsPBOs(u);
			releaseVBO( _auPtVBO[usLevel], _apResourcePtVBO[usLevel] );
			releaseVBO( _auNlVBO[usLevel], _apResourceNlVBO[usLevel] );
			releaseVBO( _auRGBVBO[usLevel],_apResourceRGBVBO[usLevel]);
			releasePBO( _auRGBPixelBO[usLevel],_apResourceRGBPxielBO[usLevel]);
			releasePBO( _auGrayPixelBO[usLevel], _apResourceGrayPxielBO[usLevel]);
		}//for each pyramid level
		_bVBOsPBOsCreated = false;
	}
示例#2
0
//--------------------------------------------------------------
SkyBox::~SkyBox()
{
    releaseVBO();
}