dungeon_crawler
diff prototype/src/main.cc @ 72:a27528035e20
- re-organized the renderer classes a bit wrt final render-target
- implemented identity color-grading palette for now
- broke particle systems....
- removed multipass renderer
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 19 Oct 2012 02:45:57 +0300 |
parents | 45172d087ebe |
children | 5981917093ff |
line diff
1.1 --- a/prototype/src/main.cc Tue Oct 16 04:08:35 2012 +0300 1.2 +++ b/prototype/src/main.cc Fri Oct 19 02:45:57 2012 +0300 1.3 @@ -10,7 +10,6 @@ 1.4 #include "tileset.h" 1.5 #include "renderer.h" 1.6 #include "renderer_deferred.h" 1.7 -#include "renderer_multipass.h" 1.8 #include "cmdcon.h" 1.9 #include "cfg.h" 1.10 #include "timer.h" 1.11 @@ -127,15 +126,6 @@ 1.12 } 1.13 break; 1.14 1.15 - case Config::Renderer::multipass: 1.16 - rend = new MultipassRenderer; 1.17 - if(!rend->init(xsz, ysz)) { 1.18 - fprintf(stderr, "failed to initialize multipass deferred renderer\n"); 1.19 - delete rend; 1.20 - return false; 1.21 - } 1.22 - break; 1.23 - 1.24 case Config::Renderer::fwd: 1.25 rend = new FwdRenderer; 1.26 if(!rend->init(xsz, ysz)) { 1.27 @@ -152,15 +142,10 @@ 1.28 printf("falling back to multipass renderer...\n"); 1.29 1.30 delete rend; 1.31 - rend = new MultipassRenderer(); 1.32 + rend = new FwdRenderer(); 1.33 if(!rend->init(xsz, ysz)) { 1.34 - printf("falling back to crappy renderer...\n"); 1.35 - 1.36 - rend = new FwdRenderer(); 1.37 - if(!rend->init(xsz, ysz)) { 1.38 - fprintf(stderr, "failed to create renderer\n"); 1.39 - return false; 1.40 - } 1.41 + fprintf(stderr, "failed to create renderer\n"); 1.42 + return false; 1.43 } 1.44 } 1.45 }