void glPyramidalFrustum::DoSomething() { glVector4f kokiko(1,0,0,24); glVector4f kikoki(0,1,0,30); glVector4f bak(0,0,1,40); glPlane A; A.m_Normal = kokiko; glPlane B; B.m_Normal = kikoki; glPlane C; C.m_Normal = bak; glVector4f pol = A.intersect2Planes( B, C ); int kikoo = 56; }
bool FileSystem::backup_file() { QFile file("lts.conf"); QFile bak("lts.conf.bak"); QString bak_name = "lts.conf.bak"; if(bak.exists()) //Check if a backup already exists { bak.remove(); //If it does, delete it } file.copy(bak_name); //Backup the lts.conf if it exists return true; }