Mercurial > fife-parpg
comparison engine/core/view/renderers/quadtreerenderer.cpp @ 661:e3140f01749d
* Merged the light branch back into trunk.
* Modified the demos so they work with the new loaders and setting.
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 05 Nov 2010 15:21:10 +0000 |
parents | 16c2b3ee59ce |
children |
comparison
equal
deleted
inserted
replaced
660:b0733d998d0f | 661:e3140f01749d |
---|---|
88 emc= cg->toMapCoordinates(ExactModelCoordinate( x+size,y) ); | 88 emc= cg->toMapCoordinates(ExactModelCoordinate( x+size,y) ); |
89 ScreenPoint scrpt3 =m_camera->toScreenCoordinates( emc ); | 89 ScreenPoint scrpt3 =m_camera->toScreenCoordinates( emc ); |
90 emc= cg->toMapCoordinates(ExactModelCoordinate( x+size,y+size) ); | 90 emc= cg->toMapCoordinates(ExactModelCoordinate( x+size,y+size) ); |
91 ScreenPoint scrpt4 =m_camera->toScreenCoordinates( emc ); | 91 ScreenPoint scrpt4 =m_camera->toScreenCoordinates( emc ); |
92 | 92 |
93 m_renderbackend->disableLighting(); | |
93 m_renderbackend->drawLine( Point(scrpt1.x,scrpt1.y) , Point(scrpt2.x,scrpt2.y), 255, 255, 255); | 94 m_renderbackend->drawLine( Point(scrpt1.x,scrpt1.y) , Point(scrpt2.x,scrpt2.y), 255, 255, 255); |
94 m_renderbackend->drawLine(Point(scrpt1.x,scrpt1.y), Point(scrpt3.x,scrpt3.y), 255, 255, 255); | 95 m_renderbackend->drawLine(Point(scrpt1.x,scrpt1.y), Point(scrpt3.x,scrpt3.y), 255, 255, 255); |
95 m_renderbackend->drawLine(Point(scrpt3.x,scrpt3.y), Point(scrpt4.x,scrpt4.y), 255, 255, 255); | 96 m_renderbackend->drawLine(Point(scrpt3.x,scrpt3.y), Point(scrpt4.x,scrpt4.y), 255, 255, 255); |
96 m_renderbackend->drawLine(Point(scrpt2.x,scrpt2.y), Point(scrpt4.x,scrpt4.y), 255, 255, 255); | 97 m_renderbackend->drawLine(Point(scrpt2.x,scrpt2.y), Point(scrpt4.x,scrpt4.y), 255, 255, 255); |
98 m_renderbackend->enableLighting(); | |
97 | 99 |
98 return true; | 100 return true; |
99 } | 101 } |
100 | 102 |
101 | 103 |