Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interfaces for easy expansion #2007

Draft
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

binxiaojiao
Copy link
Contributor

No description provided.

@aismann
Copy link
Contributor

aismann commented Jun 28, 2024

@binxiaojiao
plz add on each file which miss this Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md).

@@ -322,6 +322,10 @@ class AX_DLL Mesh : public Object
std::vector<float> _spotLightUniformRangeInverseValues;

std::string _texFile;

// add by binxiaojiao
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments like this should not be added, since it doesn't add extra useful information to the code


// add by binxiaojiao
public:
std::function<void()>& GetVisibleChanged() { return _visibleChanged; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should follow the convention used in Axmol, which is to use a lowercase first character, so it should be getVisibleChanged()

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer public callback like engine callback renderer comnand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants