Changeset 838 for trunk/vizservers/nanovis/HeightMap.cpp
- Timestamp:
- Jan 3, 2008, 9:20:48 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vizservers/nanovis/HeightMap.cpp
r837 r838 13 13 #include <unistd.h> 14 14 #include <fcntl.h> 15 #include <RenderContext.h> 15 16 16 17 HeightMap::HeightMap() … … 40 41 } 41 42 42 void HeightMap::render() 43 { 43 void HeightMap::render(graphics::RenderContext* renderContext) 44 { 45 if (renderContext->getCullMode() == graphics::RenderContext::NO_CULL) 46 { 47 glDisable(GL_CULL_FACE); 48 } 49 else 50 { 51 glEnable(GL_CULL_FACE); 52 glCullFace((GLuint) renderContext->getCullMode()); 53 } 54 55 glPolygonMode(GL_FRONT_AND_BACK, (GLuint) renderContext->getPolygonMode()); 56 glShadeModel((GLuint) renderContext->getShadingModel()); 57 44 58 glPushMatrix(); 45 59 … … 105 119 106 120 glShadeModel(GL_FLAT); 121 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); 107 122 108 123 if (_contour && _contourVisible)
Note: See TracChangeset
for help on using the changeset viewer.