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

Compile error: tParticle : undeclared identifier #217

Open
iLikeCV opened this issue Jul 15, 2018 · 2 comments
Open

Compile error: tParticle : undeclared identifier #217

iLikeCV opened this issue Jul 15, 2018 · 2 comments

Comments

@iLikeCV
Copy link

iLikeCV commented Jul 15, 2018

Hi, everyone!
I am going to convert the lua project into C++ project.
I add the BillboardParticleSystem class into my project and build it.
I get the error as follow:

1>------ Build started: Project: FantasyWarrior3D, Configuration: Debug Win32 ------
1>BillboardParticleSystem.cpp
1>d:\mobile\projects\cocos2dx\3.17\fantasywarrior3d\classes\billboardparticlesystem.cpp(1163): error C2065: 'tParticle': undeclared identifier
1>Done building project "FantasyWarrior3D.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 5 up-to-date, 0 skipped ==========

The error was in setTotalParticles method of BillboardParticleSystem class.
In detail, size_t particlesSize = tp * sizeof(tParticle);

Please help me.
Thanks.

@iLikeCV
Copy link
Author

iLikeCV commented Jul 15, 2018

Hi.
I changed the code as follows:
size_t particlesSize = tp * sizeof(sBillboardParticle);
Is it right?

@georgeraraujo
Copy link

Hi.
I changed the code as follows:
size_t particlesSize = tp * sizeof(sBillboardParticle);
Is it right?

I think it is - that's what I did on PR #216, and it works.

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

No branches or pull requests

2 participants