Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5317 in orxonox.OLD for trunk/src/lib/graphics/render2D


Ignore:
Timestamp:
Oct 8, 2005, 11:43:09 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Shaders are now NOT renderen in 2D-mode.
After 2D-mode is left, the Shader will be reactivated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/render2D/render_2d.cc

    r5286 r5317  
    2222#include "list.h"
    2323#include "element_2d.h"
     24
     25#include "shader.h"
    2426
    2527#include <math.h>
     
    124126void Render2D::draw(unsigned int layer) const
    125127{
     128  Shader::suspendShader();
     129
    126130  GraphicsEngine::enter2DMode();
    127131
     
    146150  GraphicsEngine::leave2DMode();
    147151
     152  Shader::restoreShader();
    148153}
Note: See TracChangeset for help on using the changeset viewer.