From 1bb6439d5f361cd3ce0ef58a19430911a96356b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E7=BA=BF=E7=81=B5=7CDeal?= Date: Tue, 1 Nov 2022 09:27:50 +0800 Subject: [PATCH] Update CCRenderer.h --- core/renderer/CCRenderer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);