Mercurial > fife-parpg
comparison engine/core/view/camera.h @ 579:b2feacaed53c
* Added the colorbuffer patch with a small change due to SDL. Performance boost between 20-30% under OpenGL.
* Improved the most renderers with setColor() function.
* Fixed the genericrenderer, is now tested whether the images are in the viewport.
* Fixed the gridrenderer, the grid is now drawn only up to the viewport.
* Changed the vertex functions in opengl/renderbackendopengl.cpp from vertex3f() to vertex2f().
* Improved the Editor, now you can use blocking, grid and coordinate renderer over gui or keys. Additionally, the colors can be changed with the settings.xml.
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 31 Jul 2010 17:46:19 +0000 |
parents | c9113e23b004 |
children | c0c3f64bfc2d |
comparison
equal
deleted
inserted
replaced
578:54d83a0462ee | 579:b2feacaed53c |
---|---|
277 void calculateZValue(ScreenPoint& screen_coords); | 277 void calculateZValue(ScreenPoint& screen_coords); |
278 | 278 |
279 void onRendererPipelinePositionChanged(RendererBase* renderer); | 279 void onRendererPipelinePositionChanged(RendererBase* renderer); |
280 void onRendererEnabledChanged(RendererBase* renderer); | 280 void onRendererEnabledChanged(RendererBase* renderer); |
281 | 281 |
282 bool testRenderedViewPort(); | |
282 /** Renders camera | 283 /** Renders camera |
283 */ | 284 */ |
284 void render(); | 285 void render(); |
285 private: | 286 private: |
286 friend class MapObserver; | 287 friend class MapObserver; |
329 unsigned int m_screen_cell_width; | 330 unsigned int m_screen_cell_width; |
330 unsigned int m_screen_cell_height; | 331 unsigned int m_screen_cell_height; |
331 double m_reference_scale; | 332 double m_reference_scale; |
332 bool m_enabled; | 333 bool m_enabled; |
333 Instance* m_attachedto; | 334 Instance* m_attachedto; |
335 bool m_backendSDL; | |
334 // caches calculated image dimensions for already queried & calculated layers | 336 // caches calculated image dimensions for already queried & calculated layers |
335 std::map<Layer*, Point> m_image_dimensions; | 337 std::map<Layer*, Point> m_image_dimensions; |
336 bool m_iswarped; | 338 bool m_iswarped; |
337 | 339 |
338 // list of renderers managed by the view | 340 // list of renderers managed by the view |