Repository navigation
Contribution Guide
Rafa San Pablo González edited this page Dec 23, 2025
·
4 revisions
First off, thank you for considering contributing to Voltra Engine! It's people like you that make open source tools great.
To ensure the project remains stable and maintainable, we follow a specific set of rules for development. Please read this document before opening a Pull Request.
We use a simplified Git Flow strategy.
-
main: The stable version of the engine. Do not commit directly here. -
develop: The integration branch for the next release (optional, depending on project stage). - Feature Branches: Where you work. Create a new branch for every feature or fix.
Please use the following prefixes for your branches:
-
feature/- New capabilities (e.g.,feature/ecs-implementation) -
fix/- Bug fixes (e.g.,fix/memory-leak-texture) -
docs/- Documentation changes (e.g.,docs/update-wiki) -
refactor/- Code restructuring without behavioral changes
We enforce Conventional Commits to keep our history readable and enable automated versioning in the future.
Format:
<type>(<scope>): <short description>
[Optional body]
Types:
-
feat: A new feature. -
fix: A bug fix. -
docs: Documentation only changes. -
style: Changes that do not affect the meaning of the code (white-space, formatting, etc). -
refactor: A code change that neither fixes a bug nor adds a feature. -
perf: A code change that improves performance. -
chore: Changes to the build process or auxiliary tools.
Examples:
feat(renderer): add support for basic phong lightingfix(window): resolve crash when resizing on Linuxchore(cmake): update minimum required version
We aim for modern, clean, and performant C++.
- Standard: Use C++20 features where appropriate (Concepts, Modules, etc.).
-
Memory: Avoid raw pointers (
new/delete). Use smart pointers (std::unique_ptr,std::shared_ptr) or stack allocation. -
Style:
-
Variables (Local):
snake_case(e.g.,window_width,is_running). -
Functions/Methods:
PascalCase(e.g.,InitWindow(),RenderFrame()). -
Types/Classes:
PascalCase(e.g.,RenderSystem,Texture2D). -
Private Members: Prefix with
m_followed by PascalCase (e.g.,m_Width,m_Running).
-
Variables (Local):
-
Headers:
- Use
#pragma once. - Separate declarations (
.hpp) from implementations (.cpp).
- Use
- Fork the repository and clone it locally.
- Create a branch from
main:git checkout -b feature/amazing-feature. - Make your changes and ensure the code compiles without warnings.
- Push to your fork and open a Pull Request to the
mainbranch of the official repo. - Provide a clear description of your changes and reference any related Issues (e.g., "Closes #12").
- Wait for code review and address any feedback.
- Ensure the engine builds on your platform.
- If you add a new feature, provide a small example or test case demonstrating it works.
Thank you for your help!