utils.h File Reference

utils functions Header File More...

#include "..\include\GpuVis.h"

Functions

void glDebug ()
 Print OpenGL Errors.
double rint (double x)
 Round off double to Integer : Substitute for math.h 's round() function.
std::string int2string (const int &number)
 Convert integer to string.
std::string float2string (const float &number)
 Convert floating pt number to string.
void reshape (int w, int h)
 GLUT Reshape callback function.
void gpgpu_setup (int w, int h)
 Setup OpenGL Viewport, Projection and Modelview matrices.
bool querySupportedTextureSize (GLenum format, GLenum type, int w, int h)
 Tests if a texture of 'type' in 'format' internal format and size (w,h) can be created on Video Memory.
void qsort (int *pointlist, int n)
 Qsort for an integer array.
int kth_largest (int a[], int n, int k)
 return the kth largest number from a annray of n integers
void DrawText (GLint x, GLint y, char *s, GLfloat r, GLfloat g, GLfloat b)
 Draws Text on the screen to report statistics, timings etc.


Detailed Description

utils functions Header File

GpuUrban Library Code:


Generated on Sat Apr 15 01:22:17 2006 for GpuVis by  doxygen 1.4.6-NO