Update CCRenderer.h

This commit is contained in:
一线灵|Deal 2022-11-01 09:27:50 +08:00 committed by GitHub
parent 3a06a6438f
commit 1bb6439d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,8 @@
/**************************************************************************** /****************************************************************************
Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
Copyright (c) 2022 Bytedance Inc.
https://axmolengine.github.io/ https://axmolengine.github.io/
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
@ -407,6 +408,8 @@ public:
bool getScissorTest() const; ///< Get whether scissor test is enabled or not. bool getScissorTest() const; ///< Get whether scissor test is enabled or not.
const ScissorRect& getScissorRect() const; ///< Get scissor rectangle. const ScissorRect& getScissorRect() const; ///< Get scissor rectangle.
backend::CommandBuffer* getCommandBuffer() const { return _commandBuffer ; }
/** returns whether or not a rectangle is visible or not */ /** returns whether or not a rectangle is visible or not */
bool checkVisibility(const Mat4& transform, const Vec2& size); bool checkVisibility(const Mat4& transform, const Vec2& size);