Ignore:
Timestamp:
06/15/16 18:34:37 (9 years ago)
Author:
epyon
Message:
  • particle engine updates
  • device/context redesign
  • caching of GL state - texture bindings and programs
  • camera view_perspective and view_perspective_inv
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/interface/uniform.hh

    r500 r501  
    251251        };
    252252
     253        class engine_uniform_m_viewprojection : public engine_uniform< mat4 >
     254        {
     255        public:
     256                engine_uniform_m_viewprojection( uniform_base* u ) : engine_uniform( u ) {}
     257                virtual void set( const context*, const scene_state* s ) { m_uniform->set_value( s->get_viewprojection() ); }
     258        };
     259
     260        class engine_uniform_m_viewprojection_inv : public engine_uniform< mat4 >
     261        {
     262        public:
     263                engine_uniform_m_viewprojection_inv( uniform_base* u ) : engine_uniform( u ) {}
     264                virtual void set( const context*, const scene_state* s ) { m_uniform->set_value( s->get_viewprojection_inv() ); }
     265        };
     266
    253267        class engine_uniform_v_camera_position : public engine_uniform< vec3 >
    254268        {
Note: See TracChangeset for help on using the changeset viewer.