From 68944dbfc1928ea2f6c114d97ba5f4348f4b4c54 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 9 Jan 2017 10:50:54 -0600 Subject: [PATCH] updates to get cylinders rendering --- CMakeLists.txt | 9 +++------ main.cu | 1 + 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce498ab..62c4066 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,14 +53,11 @@ include_directories( ) #Assign source files to the appropriate variables -file(GLOB SRC_CPP "*.cu") -file(GLOB SRC_H "*.h") +#file(GLOB SRC_CPP "*.cu") +#file(GLOB SRC_H "*.h") #create an executable file -cuda_add_executable(netmets - ${SRC_H} - ${SRC_CPP} - ) +cuda_add_executable(netmets main.cu) #set the link libraries target_link_libraries(netmets diff --git a/main.cu b/main.cu index 8958663..e05aa6c 100644 --- a/main.cu +++ b/main.cu @@ -170,6 +170,7 @@ void glut_render(void) { } else { + glEnable(GL_DEPTH_TEST); glut_render_left_projection(); //set up a projection for the left half of the window glut_render_modelview(); //set up the modelview matrix using camera details glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //clear the screen -- libgit2 0.21.4