#include "config.h"
#include <QtGui/QtGui>
#include "glee/GLee.h"
Go to the source code of this file.
Classes | |
class | VertexAttribLocations |
Vertex attribute locations of a GLSL program. More... | |
Defines | |
#define | SAFE_DELETE(p) do{ if( (p) != NULL ) { delete (p); (p)=NULL; } } while(0) |
Deletes an object, if not NULL. | |
#define | SAFE_DELETE_ARRAY(p) do{ if( (p) != NULL ) { delete [] (p); (p)=NULL; } } while(0) |
Deletes an array of objects, if not NULL. | |
Functions | |
QString | extractFileNameFromPath (const QString &path) |
Extracts the file name from a path and filename string. |
#define SAFE_DELETE | ( | p | ) | do{ if( (p) != NULL ) { delete (p); (p)=NULL; } } while(0) |
Deletes an object, if not NULL.
#define SAFE_DELETE_ARRAY | ( | p | ) | do{ if( (p) != NULL ) { delete [] (p); (p)=NULL; } } while(0) |
Deletes an array of objects, if not NULL.
QString extractFileNameFromPath | ( | const QString & | path | ) |
Extracts the file name from a path and filename string.
This can be used to deal with filenames that do not refer to an exising file.
Examples:
"/etc/fstab" -> "fstab"
"C:\Windows\Explorer.exe" -> "Explorer.exe"
path | Path to a file. |