Commit 4490dbf2 authored by Gaurav Kukreja's avatar Gaurav Kukreja

Removed Debug Prints

Signed-off-by: 's avatarGaurav Kukreja <gmkukreja@gmail.com>
parent 7e94e981
......@@ -39,7 +39,7 @@
using namespace std;
// uncomment to use the camera
#define CAMERA
// #define CAMERA
/*********************************************************************
*** Global Variables ******
......@@ -274,21 +274,15 @@ int main(int argc, char **argv)
// and make the OpenGL context current
glutInit(&argc, argv);
cout << __func__ << ": "<< __LINE__ << ": " << endl;
glutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA);
glutInitWindowPosition(100,100);
glutInitWindowSize(640,480);
glutCreateWindow("Project");
glutDisplayFunc(&display);
cout << __func__ << ": "<< __LINE__ << ": " << endl;
// Explicitly set device 0
cudaGLSetGLDevice(0);
cout << __func__ << ": "<< __LINE__ << ": " << endl;
// Create buffer object and register it with CUDA
glGenBuffers(1, &outputVBO);
glBindBuffer(GL_ARRAY_BUFFER, outputVBO);
......@@ -299,11 +293,8 @@ int main(int argc, char **argv)
outputVBO,
cudaGraphicsMapFlagsWriteDiscard);
cout << __func__ << ": "<< __LINE__ << ": " << endl;
// Launch rendering loop
glutMainLoop();
cout << __func__ << ": "<< __LINE__ << ": " << endl;
atexit(bye);
#else // CAMERA
......@@ -381,8 +372,6 @@ void display()
size_t imageBytes = (size_t)w*h*nc*sizeof(float);
cout << __func__ << ": "<< __LINE__ << ": " << endl;
// Read a camera image frame every 30 milliseconds:
// cv::waitKey(30) waits 30 milliseconds for a keyboard input,
// returns a value <0 if no key is pressed during this time, returns immediately with a value >=0 if a key is pressed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment