utils.cpp File Reference

utils functions. More...

#include "..\include\GpuVis.h"
#include "utils.h"
#include <GL/glut.h>

Functions

void glDebug ()
 Print OpenGL Errors.
std::string int2string (const int &number)
 Convert integer to string.
std::string float2string (const float &number)
 Convert floating pt number to string.
double rint (double x)
 Round off double to Integer : Substitute for math.h 's round() function.
void gpgpu_setup (int w, int h)
 Setup OpenGL Viewport, Projection and Modelview matrices.
void reshape (int w, int h)
 GLUT Reshape callback function.
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 DrawText (GLint x, GLint y, char *s, GLfloat r, GLfloat g, GLfloat b)
 Draws Text on the screen to report statistics, timings etc.
void initGlew ()
 GLEW Initialization within GPUSIFT library.
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


Detailed Description

utils functions.

GpuUrban Library Code:


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