コード例 #1
0
 void endClipping()
 {
     assert (!stack.empty());
     stack.pop_back();
     updateEffectiveRect();
 }
コード例 #2
0
 void beginClipping(double x, double y, double width, double height)
 {
     ClipRect rect = { x, y, width, height };
     stack.push_back(rect);
     updateEffectiveRect();
 }
コード例 #3
0
ファイル: DrawOpQueue.hpp プロジェクト: ChicoTeam/gosu
 void beginClipping(int x, int y, unsigned width, unsigned height)
 {
     ClipRect rect = { x, y, width, height };
     clipRectStack.push_back(rect);
     updateEffectiveRect();
 }
コード例 #4
0
ファイル: DrawOpQueue.hpp プロジェクト: ChicoTeam/gosu
 void endClipping()
 {
     clipRectStack.pop_back();
     updateEffectiveRect();
 }
コード例 #5
0
ファイル: ClipRectStack.hpp プロジェクト: RavensKrag/gosu
 void beginClipping(int x, int y, int width, int height)
 {
     ClipRect rect = { x, y, width, height };
     stack.push_back(rect);
     updateEffectiveRect();
 }