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

chore: empty default implementation for RenderSystem interface #4789

Merged
merged 4 commits into from
Jun 26, 2021

Conversation

skaldarnar
Copy link
Member

@skaldarnar skaldarnar commented Jun 24, 2021

Contains

I noticed a bit of clutter boilerplate code in a system implementing RenderSystem because of empty implementations of the method hooks for different rendering passes. With Java's default implementations for methods in interfaces we get rid of this boilerplate code by providing the empty implementation directly in the interface.

How to test

Start the game, everything should look and work the same as before.

Outstanding before merging

Nothing.

@skaldarnar skaldarnar added Topic: Rendering Requests, Issues and Changes related to lighting, meshes, camera, etc. Type: Chore Request for or implementation of maintenance changes labels Jun 24, 2021
@skaldarnar skaldarnar requested a review from pollend June 24, 2021 21:32
skaldarnar added a commit to Terasology/Health that referenced this pull request Jun 24, 2021
@skaldarnar skaldarnar merged commit 614315e into develop Jun 26, 2021
@skaldarnar skaldarnar deleted the chore/default-RendererSystem branch June 26, 2021 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Topic: Rendering Requests, Issues and Changes related to lighting, meshes, camera, etc. Type: Chore Request for or implementation of maintenance changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants