瀏覽代碼

add clear_cached_state

cxgeorge 24 年之前
父節點
當前提交
88baa467d0
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      panda/src/display/graphicsStateGuardian.h

+ 2 - 0
panda/src/display/graphicsStateGuardian.h

@@ -157,6 +157,8 @@ public:
   // coordinate space differently.
   virtual float compute_distance_to(const LPoint3f &point) const=0;
 
+  INLINE void clear_cached_state(void) { _state.clear(); };  
+
 protected:
   virtual PT(SavedFrameBuffer) save_frame_buffer(const RenderBuffer &buffer,
                                                  CPT(DisplayRegion) dr)=0;