Commit 68944dbfc1928ea2f6c114d97ba5f4348f4b4c54

Authored by David Mayerich
1 parent bd0f3432

updates to get cylinders rendering

Showing 2 changed files with 4 additions and 6 deletions   Show diff stats
@@ -53,14 +53,11 @@ include_directories( @@ -53,14 +53,11 @@ include_directories(
53 ) 53 )
54 54
55 #Assign source files to the appropriate variables 55 #Assign source files to the appropriate variables
56 -file(GLOB SRC_CPP "*.cu")  
57 -file(GLOB SRC_H "*.h") 56 +#file(GLOB SRC_CPP "*.cu")
  57 +#file(GLOB SRC_H "*.h")
58 58
59 #create an executable file 59 #create an executable file
60 -cuda_add_executable(netmets  
61 - ${SRC_H}  
62 - ${SRC_CPP}  
63 - ) 60 +cuda_add_executable(netmets main.cu)
64 61
65 #set the link libraries 62 #set the link libraries
66 target_link_libraries(netmets 63 target_link_libraries(netmets
@@ -170,6 +170,7 @@ void glut_render(void) { @@ -170,6 +170,7 @@ void glut_render(void) {
170 170
171 } 171 }
172 else { 172 else {
  173 + glEnable(GL_DEPTH_TEST);
173 glut_render_left_projection(); //set up a projection for the left half of the window 174 glut_render_left_projection(); //set up a projection for the left half of the window
174 glut_render_modelview(); //set up the modelview matrix using camera details 175 glut_render_modelview(); //set up the modelview matrix using camera details
175 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //clear the screen 176 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //clear the screen