Added multisampling. Moved obstacle avoidance to DetourCrowd.

This commit is contained in:
Mikko Mononen
2011-01-29 15:39:42 +00:00
parent 4a81213b3b
commit e70a4664c9
5 changed files with 10 additions and 8 deletions
+4 -2
View File
@@ -79,6 +79,8 @@ int main(int /*argc*/, char** /*argv*/)
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 8);
const SDL_VideoInfo* vi = SDL_GetVideoInfo();
@@ -169,8 +171,8 @@ int main(int /*argc*/, char** /*argv*/)
glDepthFunc(GL_LEQUAL);
glEnable(GL_POINT_SMOOTH);
glEnable(GL_LINE_SMOOTH);
// glEnable(GL_POINT_SMOOTH);
// glEnable(GL_LINE_SMOOTH);
bool done = false;
while(!done)