diff --git a/core/renderer/CCRenderer.h b/core/renderer/CCRenderer.h index a3f2a85f37..575b696ba6 100644 --- a/core/renderer/CCRenderer.h +++ b/core/renderer/CCRenderer.h @@ -1,7 +1,8 @@ /**************************************************************************** Copyright (c) 2013-2016 Chukong Technologies Inc. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. - + Copyright (c) 2022 Bytedance Inc. + https://axmolengine.github.io/ 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. const ScissorRect& getScissorRect() const; ///< Get scissor rectangle. + backend::CommandBuffer* getCommandBuffer() const { return _commandBuffer ; } + /** returns whether or not a rectangle is visible or not */ bool checkVisibility(const Mat4& transform, const Vec2& size);