application.h File Reference

Defines main application interfaces and constants. More...

#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.


Detailed Description

Defines main application interfaces and constants.


Define Documentation

#define SAFE_DELETE (  )     do{ if( (p) != NULL ) { delete (p); (p)=NULL; } } while(0)

Deletes an object, if not NULL.

Warning:
Do not use this for arrays!

#define SAFE_DELETE_ARRAY (  )     do{ if( (p) != NULL ) { delete [] (p); (p)=NULL; } } while(0)

Deletes an array of objects, if not NULL.

Warning:
Only use this for arrays!


Function Documentation

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"

Parameters:
path Path to a file.
Returns:
File name without path.


Generated on Sun Mar 2 17:12:31 2008 for Shader Maker by  doxygen 1.5.4