Skip to content

Commit 88052c8

Browse files
Merge Vuelto 1.1 on PR #8 from vuelto-org/latest
V1.1 is ready
2 parents 630569b + 7685346 commit 88052c8

File tree

149 files changed

+21846
-1318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+21846
-1318
lines changed

.github/workflows/ci_check.yml

100644100755
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ name: ci_check
22

33
on:
44
push:
5-
branches: "main"
5+
branches:
6+
- latest
7+
- stable
68

79
pull_request:
8-
branches: "main"
10+
branches:
11+
- latest
12+
- stable
913

1014
jobs:
1115
build:
@@ -15,7 +19,7 @@ jobs:
1519
fail-fast: false
1620

1721
matrix:
18-
os: [ubuntu-latest, windows-latest]
22+
os: [ubuntu-latest, windows-latest, macos-latest]
1923
build_type: [Release]
2024
c_compiler: [gcc, clang, cl]
2125
include:
@@ -28,6 +32,9 @@ jobs:
2832
- os: ubuntu-latest
2933
c_compiler: clang
3034
cpp_compiler: clang++
35+
- os: macos-latest
36+
c_compiler: clang
37+
cpp_compiler: clang++
3138
exclude:
3239
- os: windows-latest
3340
c_compiler: gcc
@@ -42,7 +49,7 @@ jobs:
4249
- name: Set up Go
4350
uses: actions/setup-go@v4
4451
with:
45-
go-version: '1.21'
52+
go-version: '1.22'
4653

4754
- name: Update Packages (Linux)
4855
if: startsWith(matrix.os, 'ubuntu')
@@ -57,3 +64,4 @@ jobs:
5764

5865
- name: Make Ci_Check
5966
run: make ci_check
67+

.github/workflows/format.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Go Format Check
2+
3+
on:
4+
push:
5+
branches:
6+
- latest
7+
- stable
8+
9+
pull_request:
10+
branches:
11+
- latest
12+
- stable
13+
jobs:
14+
go-fmt-check:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v2
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v3
23+
with:
24+
go-version: '1.22'
25+
26+
- name: Check Go format
27+
run: |
28+
files=$(gofmt -l .)
29+
if [ -n "$files" ]; then
30+
echo "Following files arent formatted:"
31+
echo "$files"
32+
exit 1
33+
else
34+
echo "Everything is formatted."
35+
fi
36+

.github/workflows/mkdocs.yml

100644100755
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
name: MkDocs Deploy
1+
name: MkDocs Deploy
22
on:
33
push:
44
branches:
5-
- master
6-
- main
5+
- latest
6+
- stable
7+
78
permissions:
89
contents: write
10+
911
jobs:
1012
deploy:
1113
runs-on: ubuntu-latest
@@ -18,12 +20,12 @@ jobs:
1820
- uses: actions/setup-python@v5
1921
with:
2022
python-version: 3.x
21-
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
23+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
2224
- uses: actions/cache@v4
2325
with:
2426
key: mkdocs-material-${{ env.cache_id }}
2527
path: .cache
2628
restore-keys: |
2729
mkdocs-material-
28-
- run: pip install mkdocs-material
30+
- run: pip install mkdocs-material mkdocs-redirects
2931
- run: mkdocs gh-deploy --force

.gitignore

100644100755
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ CMakeFiles/
1313
.cmake
1414
Testing
1515
site
16+
17+
.env
18+
.envrc
19+
.direnv/
20+
21+
internal/gl/opengl/old

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Vuelto Changelog
2+
3+
## Vuelto 1.1 (05/01/2025)
4+
5+
### Breaking changes
6+
7+
- Updated to OpenGL 3.3 Core, breaking compatibility with unsupported hardware.
8+
- `DrawLine()` now takes arguments in the order `x1 y1 x2 y2`, instead of `x1 x2 y1 y2`.
9+
- `Image` struct now uses a `Pos` parameter with `Vector2D` type instead of `X,Y` `float32` param for position.
10+
- `Line` struct now uses `Pos1` and `Pos2` params with `Vector2D` type instead of `X1, Y1, X2, Y2`.
11+
- `Rect` struct now uses `Pos` param with `Vector2D` type instead of `X, Y`.
12+
13+
### Additions
14+
15+
- Support for targeting web (WASM + WebGL 2.0).
16+
- Event system
17+
- KeyPressed, KeyPressedOnce, and KeyReleased
18+
- Mouse position
19+
- `GetDeltaTime()`
20+
- Framerate managing
21+
- `GetFPS()`
22+
- `SetFPS()`
23+
24+
### Changes
25+
26+
- The above mentioned breaking changes.
27+
- Params `X` and `Y` (and `Z`) for `Vector2D` and `Vector3D` are now of type `float32` instead of `float64`.
28+
- Improved performance.
29+
30+
<!-- TODO: review older versions and log their changes -->

CNAME

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
vuelto.me
1+
vuelto.pp.ua

CODE_OF_CONDUCT.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Vuelto Code of Conduct
2+
3+
Vuelto is built by developers, for developers. We are committed to fostering a welcoming and inclusive community. By participating in this project, you agree to the following principles:
4+
5+
1. **Respect Everyone**
6+
Treat all contributors with kindness and respect. Discrimination, harassment, or offensive language is not tolerated.
7+
8+
2. **Collaborate Openly**
9+
Share ideas, feedback, and code in a constructive and respectful manner. Assume good intentions and work to resolve disagreements with empathy.
10+
11+
3. **Stay Professional**
12+
Keep discussions focused on the project. Avoid disruptive behavior, spamming, or derailing conversations.
13+
14+
4. **Be Inclusive**
15+
Make the community accessible to everyone, regardless of experience level, background, or identity.
16+
17+
Violations of this Code of Conduct may result in warnings, bans, or other actions as necessary. If you experience or witness any unacceptable behavior, please report it to the maintainers.
18+
19+
Together, let's build a community where creativity and collaboration thrive!

CONTRIBUTING.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Contributing rules
2+
3+
We are happy and welcome if you want to contribute to Vuelto. But please consider a few details before continuing:
4+
5+
1. Branch: Please when working on your fork, work in the dev branch, because we only will accept commits to the dev branch. It will later be released with the next version of Vuelto.
6+
2. Explain: Please explain why this should be considered and merged. That will make our life easier.
7+
3. Test: Please test your code before even opening a new pull request.
8+
4. Documentation: Please, if you’re adding something new, like a feature, please document everything.
9+
5. Format: Please, run `make format` for formatting of the code.
10+
11+
Not following these rules
12+
If we see a pull request that doesn't follow these rules, we will tell you that, and close the pull request.
13+
We allow you to re-open a new pull request, but we expect you to have your code fixed.
14+
So make sure that you followed [the rules](#contributing-rules)
15+
16+
Some technologies we are using
17+
18+
- GLFW: We use this for the desktop windowing
19+
- “syscall/js”: We use this to interact with the JS runtime
20+
- glow: Generate OpenGL Go bindings (only happened one)
21+
- CGo: Interface to use C with Go
22+
23+
## How to setup the work environment
24+
25+
If you want to contribute, you have to set up the work environment, so you can develop vuelto the right way.
26+
27+
1. Run `go mod tidy` to install all the packages
28+
2. Fork [the repository](https://github.com/vuelto-org/vuelto).
29+
3. Clone your forked github repository:
30+
31+
```bash
32+
git clone https://github.com/your_username/vuelto.git
33+
```
34+
35+
4. Change the branch to the dev branch to follow rule \#1:
36+
37+
```bash
38+
git checkout dev
39+
```
40+
41+
## Pull Request
42+
43+
If you're ready with your changes, then you must follow a few steps before pull requesting.
44+
45+
1. Run `make` to format your code:
46+
47+
```bash
48+
make format
49+
```
50+
51+
Then make sure your pull request code works without erroring and you followed the [contribution rules](#contributing-rules)
52+
53+
After all of this, you can create a pull request and one of our main organization members will look at it.

0 commit comments

Comments
 (0)