mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-25 13:05:16 +01:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80c362cb86 |
No files matched your search
@@ -23,7 +23,6 @@ Checks: >
|
|||||||
-cppcoreguidelines-pro-type-const-cast,
|
-cppcoreguidelines-pro-type-const-cast,
|
||||||
-cppcoreguidelines-pro-type-reinterpret-cast,
|
-cppcoreguidelines-pro-type-reinterpret-cast,
|
||||||
-cppcoreguidelines-special-member-functions,
|
-cppcoreguidelines-special-member-functions,
|
||||||
-cppcoreguidelines-use-enum-class,
|
|
||||||
-modernize-avoid-c-arrays,
|
-modernize-avoid-c-arrays,
|
||||||
-modernize-macro-to-enum,
|
-modernize-macro-to-enum,
|
||||||
-modernize-redundant-void-arg,
|
-modernize-redundant-void-arg,
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
github: SFML
|
|
||||||
open_collective: sfml
|
|
||||||
+26
-56
@@ -6,9 +6,6 @@ concurrency:
|
|||||||
group: environment-${{github.ref}}
|
group: environment-${{github.ref}}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
|
||||||
SFML_VERSION: 3.0.2
|
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -22,13 +19,15 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
platform:
|
||||||
- { name: Windows VS2022 x86, os: windows-2025, flags: -AWin32 }
|
- { name: Windows VS2019 x86, os: windows-2019, flags: -AWin32 }
|
||||||
- { name: Windows VS2022 x64, os: windows-2025, flags: -Ax64 }
|
- { name: Windows VS2019 x64, os: windows-2019, flags: -Ax64 }
|
||||||
- { name: Windows ClangCL, os: windows-2025, flags: -T ClangCL }
|
- { name: Windows VS2022 x86, os: windows-2022, flags: -AWin32 }
|
||||||
- { name: Windows Clang, os: windows-2025, flags: -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
|
- { name: Windows VS2022 x64, os: windows-2022, flags: -Ax64 }
|
||||||
- { name: Linux GCC, os: ubuntu-24.04, flags: -GNinja }
|
- { name: Windows ClangCL, os: windows-2022, flags: -T ClangCL }
|
||||||
- { name: Linux Clang, os: ubuntu-24.04, flags: -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
|
- { name: Windows Clang, os: windows-2022, flags: -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
|
||||||
- { name: MacOS, os: macos-15, flags: -GNinja }
|
- { name: Linux GCC, os: ubuntu-22.04, flags: -GNinja }
|
||||||
|
- { name: Linux Clang, os: ubuntu-22.04, flags: -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ }
|
||||||
|
- { name: MacOS, os: macos-14, flags: -GNinja }
|
||||||
config:
|
config:
|
||||||
- { name: Shared, flags: -DBUILD_SHARED_LIBS=ON, csfml_flags: -DCSFML_LINK_SFML_STATICALLY=OFF }
|
- { name: Shared, flags: -DBUILD_SHARED_LIBS=ON, csfml_flags: -DCSFML_LINK_SFML_STATICALLY=OFF }
|
||||||
- { name: Static, flags: -DBUILD_SHARED_LIBS=OFF, csfml_flags: -DCSFML_LINK_SFML_STATICALLY=ON }
|
- { name: Static, flags: -DBUILD_SHARED_LIBS=OFF, csfml_flags: -DCSFML_LINK_SFML_STATICALLY=ON }
|
||||||
@@ -40,46 +39,32 @@ jobs:
|
|||||||
- name: Get CMake and Ninja
|
- name: Get CMake and Ninja
|
||||||
uses: lukka/get-cmake@latest
|
uses: lukka/get-cmake@latest
|
||||||
with:
|
with:
|
||||||
cmakeVersion: ${{ runner.os == 'Windows' && '3.25' || '3.22' }}
|
|
||||||
ninjaVersion: latest
|
ninjaVersion: latest
|
||||||
|
|
||||||
- name: Install Linux Dependencies
|
- name: Install Linux Dependencies
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: sudo apt-get update && sudo apt-get install libxrandr-dev libxcursor-dev libxi-dev libudev-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev libfreetype-dev
|
run: sudo apt-get update && sudo apt-get install libxrandr-dev libxcursor-dev libxi-dev libudev-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev
|
||||||
|
|
||||||
- name: Checkout SFML
|
- name: Checkout SFML
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: SFML/SFML
|
repository: SFML/SFML
|
||||||
ref: ${{env.SFML_VERSION}}
|
ref: master
|
||||||
path: SFML
|
path: SFML
|
||||||
|
|
||||||
- name: Configure SFML CMake
|
- name: Configure SFML CMake
|
||||||
run: |
|
run: cmake -S SFML -B SFML/build -DCMAKE_INSTALL_PREFIX=SFML/install ${{matrix.platform.flags}} ${{matrix.config.flags}} -DCMAKE_BUILD_TYPE=${{matrix.type.name}}
|
||||||
cmake -S SFML -B SFML/build \
|
|
||||||
-DCMAKE_BUILD_TYPE=${{matrix.type.name}} \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=SFML/install \
|
|
||||||
${{matrix.platform.flags}} \
|
|
||||||
${{matrix.config.flags}}
|
|
||||||
|
|
||||||
- name: Build SFML
|
- name: Build SFML
|
||||||
run: cmake --build SFML/build --config ${{matrix.type.name}} --target install
|
run: cmake --build SFML/build --config ${{matrix.type.name}} --target install
|
||||||
|
|
||||||
- name: Checkout CSFML
|
- name: Checkout CSFML
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: CSFML
|
path: CSFML
|
||||||
|
|
||||||
- name: Configure CSFML CMake
|
- name: Configure CSFML CMake
|
||||||
run: |
|
run: cmake --preset dev -S CSFML -B CSFML/build -DCMAKE_INSTALL_PREFIX=CSFML/install -DSFML_ROOT=SFML/install -DCMAKE_VERBOSE_MAKEFILE=ON ${{matrix.platform.flags}} ${{matrix.config.flags}} ${{matrix.config.csfml_flags}} -DCMAKE_BUILD_TYPE=${{matrix.type.name}}
|
||||||
cmake --preset dev -S CSFML -B CSFML/build \
|
|
||||||
-DCMAKE_BUILD_TYPE=${{matrix.type.name}} \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=CSFML/install \
|
|
||||||
-DSFML_ROOT=SFML/install \
|
|
||||||
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
||||||
${{matrix.platform.flags}} \
|
|
||||||
${{matrix.config.flags}} \
|
|
||||||
${{matrix.config.csfml_flags}}
|
|
||||||
|
|
||||||
- name: Build CSFML
|
- name: Build CSFML
|
||||||
run: cmake --build CSFML/build --config ${{matrix.type.name}} --target install
|
run: cmake --build CSFML/build --config ${{matrix.type.name}} --target install
|
||||||
@@ -89,32 +74,23 @@ jobs:
|
|||||||
|
|
||||||
format:
|
format:
|
||||||
name: Formatting
|
name: Formatting
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Clang Format
|
|
||||||
run: sudo apt-get install clang-format-17
|
|
||||||
|
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Format Code
|
- name: Format Code
|
||||||
run: cmake -DCLANG_FORMAT_EXECUTABLE=clang-format-17 -P cmake/Format.cmake
|
run: cmake -DCLANG_FORMAT_EXECUTABLE=clang-format-14 -P cmake/Format.cmake
|
||||||
|
|
||||||
- name: Check Formatting
|
- name: Check Formatting
|
||||||
run: git diff --exit-code
|
run: git diff --exit-code
|
||||||
|
|
||||||
tidy:
|
tidy:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
runs-on: macos-15
|
runs-on: macos-14
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get CMake and Ninja
|
|
||||||
uses: lukka/get-cmake@latest
|
|
||||||
with:
|
|
||||||
cmakeVersion: ${{ runner.os == 'Windows' && '3.25' || '3.22' }}
|
|
||||||
ninjaVersion: latest
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
brew update
|
brew update
|
||||||
@@ -122,10 +98,10 @@ jobs:
|
|||||||
echo /opt/homebrew/opt/llvm/bin >> $GITHUB_PATH
|
echo /opt/homebrew/opt/llvm/bin >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Checkout SFML
|
- name: Checkout SFML
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: SFML/SFML
|
repository: SFML/SFML
|
||||||
ref: ${{env.SFML_VERSION}}
|
ref: master
|
||||||
path: SFML
|
path: SFML
|
||||||
|
|
||||||
- name: Configure SFML CMake
|
- name: Configure SFML CMake
|
||||||
@@ -135,7 +111,7 @@ jobs:
|
|||||||
run: cmake --build SFML/build --target install
|
run: cmake --build SFML/build --target install
|
||||||
|
|
||||||
- name: Checkout CSFML
|
- name: Checkout CSFML
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: CSFML
|
path: CSFML
|
||||||
|
|
||||||
@@ -147,25 +123,19 @@ jobs:
|
|||||||
|
|
||||||
docs:
|
docs:
|
||||||
name: Documentation
|
name: Documentation
|
||||||
runs-on: macos-15
|
runs-on: macos-14
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Get CMake and Ninja
|
|
||||||
uses: lukka/get-cmake@latest
|
|
||||||
with:
|
|
||||||
cmakeVersion: ${{ runner.os == 'Windows' && '3.25' || '3.22' }}
|
|
||||||
ninjaVersion: latest
|
|
||||||
|
|
||||||
- name: Install Doxygen
|
- name: Install Doxygen
|
||||||
run: |
|
run: |
|
||||||
brew update
|
brew update
|
||||||
brew install doxygen ninja || true
|
brew install doxygen ninja || true
|
||||||
|
|
||||||
- name: Checkout SFML
|
- name: Checkout SFML
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: SFML/SFML
|
repository: SFML/SFML
|
||||||
ref: ${{env.SFML_VERSION}}
|
ref: master
|
||||||
path: SFML
|
path: SFML
|
||||||
|
|
||||||
- name: Configure SFML
|
- name: Configure SFML
|
||||||
@@ -175,7 +145,7 @@ jobs:
|
|||||||
run: cmake --build SFML/build --target install
|
run: cmake --build SFML/build --target install
|
||||||
|
|
||||||
- name: Checkout CSFML
|
- name: Checkout CSFML
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: CSFML
|
path: CSFML
|
||||||
|
|
||||||
|
|||||||
+212
-204
@@ -1,244 +1,252 @@
|
|||||||
name: NuGet Release
|
name: NuGet Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- 2.6.x
|
- 2.6.x
|
||||||
tags:
|
workflow_dispatch: {}
|
||||||
- "**"
|
|
||||||
workflow_dispatch: {}
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: nuget-${{github.ref}}
|
group: nuget-${{github.ref}}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows-x86-x64:
|
windows:
|
||||||
name: Windows x86 x64
|
name: Windows VS2022
|
||||||
runs-on: windows-2025
|
runs-on: windows-2022
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout CSFML
|
- name: Checkout CSFML
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: CSFML
|
path: CSFML
|
||||||
|
|
||||||
- name: Build x86
|
- name: Build x86
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
cd CSFML/tools/nuget
|
cd CSFML/tools/nuget
|
||||||
./build.win.ps1 "win-x86"
|
./build.win.ps1 "win-x86"
|
||||||
|
|
||||||
- name: Build x64
|
- name: Build x64
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
cd CSFML/tools/nuget
|
cd CSFML/tools/nuget
|
||||||
./build.win.ps1 "win-x64"
|
./build.win.ps1 "win-x64"
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: CSFML-win-x86-x64
|
name: CSFML-win-x86-x64
|
||||||
path: CSFML/tools/nuget/CSFML/runtimes
|
path: CSFML/tools/nuget/CSFML/runtimes
|
||||||
|
|
||||||
windows-arm64:
|
linux-x64:
|
||||||
name: Windows ARM64
|
name: Linux x64
|
||||||
runs-on: windows-11-arm
|
runs-on: ubuntu-22.04
|
||||||
|
container:
|
||||||
|
image: ubuntu:22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout CSFML
|
- name: Checkout CSFML
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: CSFML
|
path: CSFML
|
||||||
|
|
||||||
- name: Build ARM64
|
- name: Build
|
||||||
shell: pwsh
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd CSFML/tools/nuget
|
cd ./CSFML/tools/nuget
|
||||||
./build.win.ps1 "win-arm64"
|
chmod +x ./docker.linux-x64.sh
|
||||||
|
./docker.linux-x64.sh
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: CSFML-win-arm64
|
name: CSFML-linux-x64
|
||||||
path: CSFML/tools/nuget/CSFML/runtimes
|
path: CSFML/tools/nuget/CSFML/runtimes
|
||||||
|
|
||||||
linux-x64:
|
linux-arm:
|
||||||
name: Linux x64
|
name: Linux ARM
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-22.04
|
||||||
container:
|
|
||||||
image: ubuntu:24.04
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout CSFML
|
- name: Checkout CSFML
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: CSFML
|
path: CSFML
|
||||||
|
|
||||||
- name: Build
|
- name: Build in an ARM container
|
||||||
shell: bash
|
uses: uraimo/run-on-arch-action@v2.7.2
|
||||||
run: |
|
with:
|
||||||
cd ./CSFML/tools/nuget
|
arch: armv7
|
||||||
chmod +x ./docker.linux-x64.sh
|
distro: ubuntu22.04
|
||||||
./docker.linux-x64.sh
|
githubToken: ${{ github.token }}
|
||||||
|
dockerRunArgs: |
|
||||||
|
--volume "${PWD}/CSFML:/CSFML"
|
||||||
|
install: |
|
||||||
|
apt-get update -y
|
||||||
|
apt-get install -y git libfreetype6-dev xorg-dev libxrandr-dev libxcursor-dev libxi-dev libudev-dev libgl1-mesa-dev libflac-dev libogg-dev libvorbis-dev cmake g++
|
||||||
|
run: |
|
||||||
|
cd /CSFML/tools/nuget
|
||||||
|
chmod +x ./build.linux.sh
|
||||||
|
./build.linux.sh linux-arm
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: CSFML-linux-x64
|
name: CSFML-linux-arm
|
||||||
path: CSFML/tools/nuget/CSFML/runtimes
|
path: CSFML/tools/nuget/CSFML/runtimes
|
||||||
|
|
||||||
linux-arm:
|
linux-arm64:
|
||||||
name: Linux ARM
|
name: Linux ARM64
|
||||||
runs-on: ubuntu-24.04-arm
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout CSFML
|
- name: Checkout CSFML
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: CSFML
|
path: CSFML
|
||||||
|
|
||||||
- name: Install dependencies & cross compiler
|
- name: Build in an ARM64 container
|
||||||
run: |
|
uses: uraimo/run-on-arch-action@v2.7.2
|
||||||
sudo dpkg --add-architecture armhf
|
with:
|
||||||
sudo apt-get update
|
arch: aarch64
|
||||||
sudo apt-get install -y git libfreetype6-dev:armhf xorg-dev libxrandr-dev:armhf libxcursor-dev:armhf libxi-dev:armhf libudev-dev:armhf libgl1-mesa-dev:armhf libflac-dev:armhf libogg-dev:armhf libvorbis-dev:armhf cmake g++-arm-linux-gnueabihf gcc-arm-linux-gnueabihf
|
distro: ubuntu22.04
|
||||||
|
githubToken: ${{ github.token }}
|
||||||
|
dockerRunArgs: |
|
||||||
|
--volume "${PWD}/CSFML:/CSFML"
|
||||||
|
install: |
|
||||||
|
apt-get update -y
|
||||||
|
apt-get install -y git libfreetype6-dev xorg-dev libxrandr-dev libxcursor-dev libudev-dev libgl1-mesa-dev libflac-dev libogg-dev libvorbis-dev cmake g++
|
||||||
|
run: |
|
||||||
|
cd /CSFML/tools/nuget
|
||||||
|
chmod +x ./build.linux.sh
|
||||||
|
./build.linux.sh linux-arm64
|
||||||
|
|
||||||
- name: Build
|
- name: Upload Artifact
|
||||||
shell: bash
|
uses: actions/upload-artifact@v4
|
||||||
run: |
|
with:
|
||||||
cd ./CSFML/tools/nuget
|
name: CSFML-linux-arm64
|
||||||
chmod +x ./build.linux.sh
|
path: CSFML/tools/nuget/CSFML/runtimes
|
||||||
./build.linux.sh linux-arm arm-linux-gnueabihf-g++ arm-linux-gnueabihf-gcc
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
linux-musl-x64:
|
||||||
uses: actions/upload-artifact@v6
|
name: Linux MUSL x64
|
||||||
with:
|
runs-on: ubuntu-22.04
|
||||||
name: CSFML-linux-arm
|
container:
|
||||||
path: CSFML/tools/nuget/CSFML/runtimes
|
image: alpine:3.20.3
|
||||||
|
|
||||||
linux-arm64:
|
steps:
|
||||||
name: Linux ARM64
|
- name: Checkout CSFML
|
||||||
runs-on: ubuntu-24.04-arm
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
path: CSFML
|
||||||
|
|
||||||
steps:
|
- name: Build
|
||||||
- name: Checkout CSFML
|
shell: sh
|
||||||
uses: actions/checkout@v6
|
run: |
|
||||||
with:
|
cd ./CSFML/tools/nuget
|
||||||
path: CSFML
|
chmod +x ./docker.linux-musl-x64.sh
|
||||||
|
./docker.linux-musl-x64.sh
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Upload Artifact
|
||||||
run: |
|
uses: actions/upload-artifact@v4
|
||||||
sudo apt-get update
|
with:
|
||||||
sudo apt-get install -y git libfreetype6-dev xorg-dev libxrandr-dev libxcursor-dev libxi-dev libudev-dev libgl1-mesa-dev libflac-dev libogg-dev libvorbis-dev cmake gcc g++
|
name: CSFML-linux-musl-x64
|
||||||
|
path: CSFML/tools/nuget/CSFML/runtimes
|
||||||
|
|
||||||
- name: Build
|
fedora-x64:
|
||||||
shell: bash
|
name: Fedora x64
|
||||||
run: |
|
runs-on: ubuntu-22.04
|
||||||
cd ./CSFML/tools/nuget
|
container:
|
||||||
chmod +x ./build.linux.sh
|
image: fedora:37
|
||||||
./build.linux.sh linux-arm64
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
steps:
|
||||||
uses: actions/upload-artifact@v6
|
- name: Checkout CSFML
|
||||||
with:
|
uses: actions/checkout@v4
|
||||||
name: CSFML-linux-arm64
|
with:
|
||||||
path: CSFML/tools/nuget/CSFML/runtimes
|
path: CSFML
|
||||||
|
|
||||||
linux-musl-x64:
|
- name: Build
|
||||||
name: Linux MUSL x64
|
shell: bash
|
||||||
runs-on: ubuntu-24.04
|
run: |
|
||||||
container:
|
cd ./CSFML/tools/nuget
|
||||||
image: alpine:3.20.7
|
chmod +x ./docker.fedora-x64.sh
|
||||||
|
./docker.fedora-x64.sh
|
||||||
|
|
||||||
steps:
|
- name: Upload Artifact
|
||||||
- name: Checkout CSFML
|
uses: actions/upload-artifact@v4
|
||||||
uses: actions/checkout@v6
|
with:
|
||||||
with:
|
name: CSFML-fedora-x64
|
||||||
path: CSFML
|
path: CSFML/tools/nuget/CSFML/runtimes
|
||||||
|
|
||||||
- name: Build
|
macos:
|
||||||
shell: sh
|
name: macOS
|
||||||
run: |
|
runs-on: macos-14
|
||||||
cd ./CSFML/tools/nuget
|
|
||||||
chmod +x ./docker.linux-musl-x64.sh
|
|
||||||
./docker.linux-musl-x64.sh
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
steps:
|
||||||
uses: actions/upload-artifact@v6
|
- name: Checkout CSFML
|
||||||
with:
|
uses: actions/checkout@v4
|
||||||
name: CSFML-linux-musl-x64
|
with:
|
||||||
path: CSFML/tools/nuget/CSFML/runtimes
|
path: CSFML
|
||||||
|
|
||||||
macos-x64-arm64:
|
- name: Install necessary tooling
|
||||||
name: macOS x64 and ARM64
|
run: brew install coreutils
|
||||||
runs-on: macos-15
|
|
||||||
|
|
||||||
steps:
|
- name: Build x64
|
||||||
- name: Checkout CSFML
|
run: |
|
||||||
uses: actions/checkout@v6
|
cd CSFML/tools/nuget
|
||||||
with:
|
./build.macos.sh "osx-x64"
|
||||||
path: CSFML
|
|
||||||
|
|
||||||
- name: Install necessary tooling
|
- name: Build ARM64
|
||||||
run: brew install coreutils
|
run: |
|
||||||
|
cd CSFML/tools/nuget
|
||||||
|
./build.macos.sh "osx-arm64"
|
||||||
|
|
||||||
- name: Build x64
|
- name: Upload Artifact
|
||||||
run: |
|
uses: actions/upload-artifact@v4
|
||||||
cd CSFML/tools/nuget
|
with:
|
||||||
./build.macos.sh "osx-x64"
|
name: CSFML-macOS-x64-arm64
|
||||||
|
path: CSFML/tools/nuget/CSFML/runtimes
|
||||||
|
|
||||||
- name: Build ARM64
|
package:
|
||||||
run: |
|
name: Package Builds
|
||||||
cd CSFML/tools/nuget
|
runs-on: ubuntu-22.04
|
||||||
./build.macos.sh "osx-arm64"
|
needs:
|
||||||
|
- windows
|
||||||
- name: Upload Artifact
|
- linux-x64
|
||||||
uses: actions/upload-artifact@v6
|
- linux-arm
|
||||||
with:
|
- linux-arm64
|
||||||
name: CSFML-macOS-x64-arm64
|
- linux-musl-x64
|
||||||
path: CSFML/tools/nuget/CSFML/runtimes
|
- fedora-x64
|
||||||
|
- macos
|
||||||
package:
|
steps:
|
||||||
name: Package Builds
|
- name: Checkout CSFML
|
||||||
runs-on: ubuntu-24.04
|
uses: actions/checkout@v4
|
||||||
needs:
|
with:
|
||||||
- windows-x86-x64
|
path: CSFML
|
||||||
- windows-arm64
|
- name: Download Artifacts
|
||||||
- linux-x64
|
uses: actions/download-artifact@v4
|
||||||
- linux-arm
|
with:
|
||||||
- linux-arm64
|
path: CSFML/tools/nuget/CSFML/runtimes
|
||||||
- linux-musl-x64
|
merge-multiple: true
|
||||||
- macos-x64-arm64
|
- name: Setup .NET 8 SDK
|
||||||
steps:
|
id: setup-dotnet
|
||||||
- name: Checkout CSFML
|
uses: actions/setup-dotnet@v4
|
||||||
uses: actions/checkout@v6
|
with:
|
||||||
with:
|
dotnet-version: 8.0.x
|
||||||
path: CSFML
|
- name: Enforce SDK Version
|
||||||
- name: Download Artifacts
|
run: dotnet new globaljson --sdk-version ${{ steps.setup-dotnet.outputs.dotnet-version }} --force
|
||||||
uses: actions/download-artifact@v7
|
- name: Verify SDK Installation
|
||||||
with:
|
run: dotnet --info
|
||||||
path: CSFML/tools/nuget/CSFML/runtimes
|
- name: Build NuGet Package
|
||||||
merge-multiple: true
|
run: |
|
||||||
- name: Setup .NET 10 SDK
|
cd CSFML/tools/nuget
|
||||||
id: setup-dotnet
|
dotnet build --configuration Release --verbosity detailed
|
||||||
uses: actions/setup-dotnet@v5
|
- name: Upload NuGet Package
|
||||||
with:
|
uses: actions/upload-artifact@v4
|
||||||
dotnet-version: 10.0.x
|
with:
|
||||||
- name: Enforce SDK Version
|
name: CSFML-NuGet-Package
|
||||||
run: dotnet new globaljson --sdk-version ${{ steps.setup-dotnet.outputs.dotnet-version }} --force
|
path: CSFML/tools/nuget/CSFML/bin/Release/*.nupkg
|
||||||
- name: Verify SDK Installation
|
|
||||||
run: dotnet --info
|
|
||||||
- name: Build NuGet Package
|
|
||||||
run: |
|
|
||||||
cd CSFML/tools/nuget
|
|
||||||
dotnet build --configuration Release --verbosity detailed
|
|
||||||
- name: Upload NuGet Package
|
|
||||||
uses: actions/upload-artifact@v6
|
|
||||||
with:
|
|
||||||
name: CSFML-NuGet-Package
|
|
||||||
path: CSFML/tools/nuget/CSFML/bin/Release/*.nupkg
|
|
||||||
@@ -1,356 +0,0 @@
|
|||||||
name: Release Builds
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- 2.6.x
|
|
||||||
tags:
|
|
||||||
- "**"
|
|
||||||
workflow_dispatch: {}
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: release-${{github.ref}}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
env:
|
|
||||||
SFML_VERSION: 3.0.2
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
windows-x86:
|
|
||||||
name: Windows x86
|
|
||||||
runs-on: windows-2025
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Cache MinGW x86
|
|
||||||
id: mingw-x86-cache
|
|
||||||
uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: ${{ github.workspace }}/mingw32
|
|
||||||
key: 15.2.0posix-13.0.0-ucrt-r1-x86
|
|
||||||
|
|
||||||
- name: Install MinGW x86
|
|
||||||
if: steps.mingw-x86-cache.outputs.cache-hit != 'true'
|
|
||||||
uses: bwoodsend/setup-winlibs-action@v1
|
|
||||||
id: winlibs-32
|
|
||||||
with:
|
|
||||||
tag: 15.2.0posix-13.0.0-ucrt-r1
|
|
||||||
with_clang: false
|
|
||||||
architecture: 32
|
|
||||||
destination: ${{ github.workspace }}
|
|
||||||
add_to_path: false
|
|
||||||
|
|
||||||
- name: Checkout SFML
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
repository: SFML/SFML
|
|
||||||
ref: ${{ env.SFML_VERSION }}
|
|
||||||
path: SFML
|
|
||||||
|
|
||||||
- name: Checkout CSFML
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
path: CSFML
|
|
||||||
|
|
||||||
- name: Build SFML
|
|
||||||
run: |
|
|
||||||
cmake -S SFML -B SFML-build -A Win32 -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/SFML-install -DCMAKE_VERBOSE_MAKEFILE=ON
|
|
||||||
cmake --build SFML-build --config Release --target install
|
|
||||||
|
|
||||||
- name: Build CSFML
|
|
||||||
run: |
|
|
||||||
cmake -S CSFML -B CSFML-build -A Win32 -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -DCSFML_LINK_SFML_STATICALLY=OFF -DCMAKE_BUILD_TYPE=Release -DSFML_ROOT=${{ github.workspace }}/SFML-install -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/CSFML-install -DCMAKE_VERBOSE_MAKEFILE=ON
|
|
||||||
cmake --build CSFML-build --config Release --target install
|
|
||||||
|
|
||||||
- name: Add MinGW to PATH
|
|
||||||
shell: bash
|
|
||||||
run: echo "${{ github.workspace }}\mingw32\bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Generate Import Libs for MinGW
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
New-Item -ItemType "directory" -PATH "CSFML-install\lib\gcc"
|
|
||||||
New-Item -ItemType "directory" -PATH "CSFML-install\lib\msvc"
|
|
||||||
Move-Item -Path "CSFML-install\lib\*.lib" -Destination "CSFML-install\lib\msvc"
|
|
||||||
|
|
||||||
Push-Location CSFML-install\lib\gcc
|
|
||||||
& gendef.exe "..\..\bin\csfml-graphics-3.dll"
|
|
||||||
& dlltool.exe -d "csfml-graphics-3.def" -D "..\..\bin\csfml-graphics-3.dll" -l "libcsfml-graphics.a"
|
|
||||||
Remove-Item -Path "csfml-graphics-3.def"
|
|
||||||
|
|
||||||
& gendef.exe "..\..\bin\csfml-window-3.dll"
|
|
||||||
& dlltool.exe -d "csfml-window-3.def" -D "..\..\bin\csfml-window-3.dll" -l "libcsfml-window.a"
|
|
||||||
Remove-Item -Path "csfml-window-3.def"
|
|
||||||
|
|
||||||
& gendef.exe "..\..\bin\csfml-audio-3.dll"
|
|
||||||
& dlltool.exe -d "csfml-audio-3.def" -D "..\..\bin\csfml-audio-3.dll" -l "libcsfml-audio.a"
|
|
||||||
Remove-Item -Path "csfml-audio-3.def"
|
|
||||||
|
|
||||||
& gendef.exe "..\..\bin\csfml-network-3.dll"
|
|
||||||
& dlltool.exe -d "csfml-network-3.def" -D "..\..\bin\csfml-network-3.dll" -l "libcsfml-network.a"
|
|
||||||
Remove-Item -Path "csfml-network-3.def"
|
|
||||||
|
|
||||||
& gendef.exe "..\..\bin\csfml-system-3.dll"
|
|
||||||
& dlltool.exe -d "csfml-system-3.def" -D "..\..\bin\csfml-system-3.dll" -l "libcsfml-system.a"
|
|
||||||
Remove-Item -Path "csfml-system-3.def"
|
|
||||||
Pop-Location
|
|
||||||
|
|
||||||
New-Item -ItemType "directory" -PATH "install\CSFML"
|
|
||||||
Move-Item -Path "CSFML-install\*" -Destination "install\CSFML"
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v6
|
|
||||||
with:
|
|
||||||
name: CSFML-windows-32-bit
|
|
||||||
path: install/CSFML
|
|
||||||
|
|
||||||
windows-x64:
|
|
||||||
name: Windows x64
|
|
||||||
runs-on: windows-2025
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Cache MinGW x64
|
|
||||||
id: mingw-x64-cache
|
|
||||||
uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: ${{ github.workspace }}/mingw64
|
|
||||||
key: 15.2.0posix-13.0.0-ucrt-r1-x64
|
|
||||||
|
|
||||||
- name: Install MinGW x64
|
|
||||||
if: steps.mingw-x64-cache.outputs.cache-hit != 'true'
|
|
||||||
uses: bwoodsend/setup-winlibs-action@v1
|
|
||||||
id: winlibs-64
|
|
||||||
with:
|
|
||||||
tag: 15.2.0posix-13.0.0-ucrt-r1
|
|
||||||
with_clang: false
|
|
||||||
architecture: 64
|
|
||||||
destination: ${{ github.workspace }}
|
|
||||||
add_to_path: false
|
|
||||||
|
|
||||||
- name: Checkout SFML
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
repository: SFML/SFML
|
|
||||||
ref: ${{ env.SFML_VERSION }}
|
|
||||||
path: SFML
|
|
||||||
|
|
||||||
- name: Checkout CSFML
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
path: CSFML
|
|
||||||
|
|
||||||
- name: Build SFML
|
|
||||||
run: |
|
|
||||||
cmake -S SFML -B SFML-build -A x64 -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/SFML-install -DCMAKE_VERBOSE_MAKEFILE=ON
|
|
||||||
cmake --build SFML-build --config Release --target install
|
|
||||||
|
|
||||||
- name: Build CSFML
|
|
||||||
run: |
|
|
||||||
cmake -S CSFML -B CSFML-build -A x64 -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -DCSFML_LINK_SFML_STATICALLY=OFF -DCMAKE_BUILD_TYPE=Release -DSFML_ROOT=${{ github.workspace }}/SFML-install -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/CSFML-install -DCMAKE_VERBOSE_MAKEFILE=ON
|
|
||||||
cmake --build CSFML-build --config Release --target install
|
|
||||||
|
|
||||||
- name: Add MinGW to PATH
|
|
||||||
shell: bash
|
|
||||||
run: echo "${{ github.workspace }}\mingw64\bin" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Generate Import Libs for MinGW
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
New-Item -ItemType "directory" -PATH "CSFML-install\lib\gcc"
|
|
||||||
New-Item -ItemType "directory" -PATH "CSFML-install\lib\msvc"
|
|
||||||
Move-Item -Path "CSFML-install\lib\*.lib" -Destination "CSFML-install\lib\msvc"
|
|
||||||
|
|
||||||
Push-Location CSFML-install\lib\gcc
|
|
||||||
& gendef.exe "..\..\bin\csfml-graphics-3.dll"
|
|
||||||
& dlltool.exe -d "csfml-graphics-3.def" -D "..\..\bin\csfml-graphics-3.dll" -l "libcsfml-graphics.a"
|
|
||||||
Remove-Item -Path "csfml-graphics-3.def"
|
|
||||||
|
|
||||||
& gendef.exe "..\..\bin\csfml-window-3.dll"
|
|
||||||
& dlltool.exe -d "csfml-window-3.def" -D "..\..\bin\csfml-window-3.dll" -l "libcsfml-window.a"
|
|
||||||
Remove-Item -Path "csfml-window-3.def"
|
|
||||||
|
|
||||||
& gendef.exe "..\..\bin\csfml-audio-3.dll"
|
|
||||||
& dlltool.exe -d "csfml-audio-3.def" -D "..\..\bin\csfml-audio-3.dll" -l "libcsfml-audio.a"
|
|
||||||
Remove-Item -Path "csfml-audio-3.def"
|
|
||||||
|
|
||||||
& gendef.exe "..\..\bin\csfml-network-3.dll"
|
|
||||||
& dlltool.exe -d "csfml-network-3.def" -D "..\..\bin\csfml-network-3.dll" -l "libcsfml-network.a"
|
|
||||||
Remove-Item -Path "csfml-network-3.def"
|
|
||||||
|
|
||||||
& gendef.exe "..\..\bin\csfml-system-3.dll"
|
|
||||||
& dlltool.exe -d "csfml-system-3.def" -D "..\..\bin\csfml-system-3.dll" -l "libcsfml-system.a"
|
|
||||||
Remove-Item -Path "csfml-system-3.def"
|
|
||||||
Pop-Location
|
|
||||||
|
|
||||||
New-Item -ItemType "directory" -PATH "install\CSFML"
|
|
||||||
Move-Item -Path "CSFML-install\*" -Destination "install\CSFML"
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v6
|
|
||||||
with:
|
|
||||||
name: CSFML-windows-64-bit
|
|
||||||
path: install/CSFML
|
|
||||||
|
|
||||||
windows-arm64:
|
|
||||||
name: Windows ARM64
|
|
||||||
runs-on: windows-2025
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout SFML
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
repository: SFML/SFML
|
|
||||||
ref: ${{ env.SFML_VERSION }}
|
|
||||||
path: SFML
|
|
||||||
|
|
||||||
- name: Checkout CSFML
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
path: CSFML
|
|
||||||
|
|
||||||
- name: Build SFML
|
|
||||||
run: |
|
|
||||||
cmake -S SFML -B SFML-build -A ARM64 -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/SFML-install -DCMAKE_VERBOSE_MAKEFILE=ON
|
|
||||||
cmake --build SFML-build --config Release --target install
|
|
||||||
|
|
||||||
- name: Build CSFML
|
|
||||||
run: |
|
|
||||||
cmake -S CSFML -B CSFML-build -A ARM64 -G "Visual Studio 17 2022" -DBUILD_SHARED_LIBS=ON -DCSFML_LINK_SFML_STATICALLY=OFF -DCMAKE_BUILD_TYPE=Release -DSFML_ROOT=${{ github.workspace }}/SFML-install -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/CSFML-install -DCMAKE_VERBOSE_MAKEFILE=ON
|
|
||||||
cmake --build CSFML-build --config Release --target install
|
|
||||||
|
|
||||||
- name: Move Files
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
New-Item -ItemType "directory" -PATH "install\CSFML"
|
|
||||||
Move-Item -Path "CSFML-install\*" -Destination "install\CSFML"
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v6
|
|
||||||
with:
|
|
||||||
name: CSFML-windows-arm64
|
|
||||||
path: install/CSFML
|
|
||||||
|
|
||||||
macos-x64:
|
|
||||||
name: macOS x64
|
|
||||||
runs-on: macos-15
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout SFML
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
repository: SFML/SFML
|
|
||||||
ref: ${{ env.SFML_VERSION }}
|
|
||||||
path: SFML
|
|
||||||
|
|
||||||
- name: Checkout CSFML
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
path: CSFML
|
|
||||||
|
|
||||||
- name: Build SFML
|
|
||||||
run: |
|
|
||||||
cmake -S SFML -B SFML-build -G "Unix Makefiles" \
|
|
||||||
-DCMAKE_C_COMPILER="/usr/bin/clang" \
|
|
||||||
-DCMAKE_CXX_COMPILER="/usr/bin/clang++" \
|
|
||||||
-DCMAKE_C_FLAGS="-stdlib=libc++" \
|
|
||||||
-DCMAKE_CXX_FLAGS="-stdlib=libc++" \
|
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/SFML-install \
|
|
||||||
-DCMAKE_OSX_ARCHITECTURES=x86_64 \
|
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 \
|
|
||||||
-DSFML_BUILD_FRAMEWORKS=OFF \
|
|
||||||
-DCMAKE_VERBOSE_MAKEFILE=ON
|
|
||||||
cmake --build SFML-build --config Release --target install
|
|
||||||
|
|
||||||
- name: Build CSFML
|
|
||||||
run: |
|
|
||||||
cmake -S CSFML -B CSFML-build -G "Unix Makefiles" \
|
|
||||||
-DCMAKE_C_COMPILER="/usr/bin/clang" \
|
|
||||||
-DCMAKE_CXX_COMPILER="/usr/bin/clang++" \
|
|
||||||
-DCMAKE_C_FLAGS="-stdlib=libc++" \
|
|
||||||
-DCMAKE_CXX_FLAGS="-stdlib=libc++" \
|
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/CSFML-install \
|
|
||||||
-DCMAKE_OSX_ARCHITECTURES=x86_64 \
|
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 \
|
|
||||||
-DSFML_ROOT=${{ github.workspace }}/SFML-install \
|
|
||||||
-DCMAKE_VERBOSE_MAKEFILE=ON
|
|
||||||
cmake --build CSFML-build --config Release --target install
|
|
||||||
|
|
||||||
- name: Create Archive
|
|
||||||
run: |
|
|
||||||
mkdir CSFML-macOS-clang-64-bit
|
|
||||||
cp -R CSFML-install/include CSFML-macOS-clang-64-bit
|
|
||||||
cp -R CSFML-install/lib CSFML-macOS-clang-64-bit
|
|
||||||
cp CSFML-install/share/CSFML/* CSFML-macOS-clang-64-bit
|
|
||||||
tar -zcvf CSFML-macOS-clang-64-bit.tar.gz CSFML-macOS-clang-64-bit
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v6
|
|
||||||
with:
|
|
||||||
name: CSFML-macOS-clang-64-bit
|
|
||||||
path: CSFML-macOS-clang-64-bit.tar.gz
|
|
||||||
|
|
||||||
macos-arm64:
|
|
||||||
name: macOS ARM64
|
|
||||||
runs-on: macos-15
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout SFML
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
repository: SFML/SFML
|
|
||||||
ref: ${{ env.SFML_VERSION }}
|
|
||||||
path: SFML
|
|
||||||
|
|
||||||
- name: Checkout CSFML
|
|
||||||
uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
path: CSFML
|
|
||||||
- name: Build SFML
|
|
||||||
run: |
|
|
||||||
cmake -S SFML -B SFML-build -G "Unix Makefiles" \
|
|
||||||
-DCMAKE_C_COMPILER="/usr/bin/clang" \
|
|
||||||
-DCMAKE_CXX_COMPILER="/usr/bin/clang++" \
|
|
||||||
-DCMAKE_C_FLAGS="-stdlib=libc++" \
|
|
||||||
-DCMAKE_CXX_FLAGS="-stdlib=libc++" \
|
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/SFML-install \
|
|
||||||
-DCMAKE_OSX_ARCHITECTURES=arm64 \
|
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 \
|
|
||||||
-DSFML_BUILD_FRAMEWORKS=OFF \
|
|
||||||
-DCMAKE_VERBOSE_MAKEFILE=ON
|
|
||||||
cmake --build SFML-build --config Release --target install
|
|
||||||
|
|
||||||
- name: Build CSFML
|
|
||||||
run: |
|
|
||||||
cmake -S CSFML -B CSFML-build -G "Unix Makefiles" \
|
|
||||||
-DCMAKE_C_COMPILER="/usr/bin/clang" \
|
|
||||||
-DCMAKE_CXX_COMPILER="/usr/bin/clang++" \
|
|
||||||
-DCMAKE_C_FLAGS="-stdlib=libc++" \
|
|
||||||
-DCMAKE_CXX_FLAGS="-stdlib=libc++" \
|
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/CSFML-install \
|
|
||||||
-DCMAKE_OSX_ARCHITECTURES=arm64 \
|
|
||||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 \
|
|
||||||
-DSFML_ROOT=${{ github.workspace }}/SFML-install \
|
|
||||||
-DCMAKE_VERBOSE_MAKEFILE=ON
|
|
||||||
cmake --build CSFML-build --config Release --target install
|
|
||||||
|
|
||||||
- name: Create Archive
|
|
||||||
run: |
|
|
||||||
mkdir CSFML-macOS-clang-arm64
|
|
||||||
cp -R CSFML-install/include CSFML-macOS-clang-arm64
|
|
||||||
cp -R CSFML-install/lib CSFML-macOS-clang-arm64
|
|
||||||
cp CSFML-install/share/CSFML/* CSFML-macOS-clang-arm64
|
|
||||||
tar -zcvf CSFML-macOS-clang-arm64.tar.gz CSFML-macOS-clang-arm64
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v6
|
|
||||||
with:
|
|
||||||
name: CSFML-macOS-clang-arm64
|
|
||||||
path: CSFML-macOS-clang-arm64.tar.gz
|
|
||||||
+3
-3
@@ -46,7 +46,7 @@ csfml_set_option(CSFML_LINK_SFML_STATICALLY ${LINK_STATICALLY_DEFAULT} BOOL "ON
|
|||||||
|
|
||||||
# define an option for choosing between static and dynamic C runtime (Windows only)
|
# define an option for choosing between static and dynamic C runtime (Windows only)
|
||||||
if(SFML_OS_WINDOWS)
|
if(SFML_OS_WINDOWS)
|
||||||
csfml_set_option(CSFML_USE_STATIC_STD_LIBS OFF BOOL "ON to statically link to the standard libraries, OFF to use them as DLLs")
|
set(STATIC_STD_LIBS OFF CACHE BOOL "ON to statically link to the standard libraries, OFF to use them as DLLs")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# find SFML libraries (C++)
|
# find SFML libraries (C++)
|
||||||
@@ -66,7 +66,7 @@ endif()
|
|||||||
if(CSFML_BUILD_NETWORK)
|
if(CSFML_BUILD_NETWORK)
|
||||||
list(PREPEND SFML_MODULES "Network")
|
list(PREPEND SFML_MODULES "Network")
|
||||||
endif()
|
endif()
|
||||||
find_package(SFML 3.0 COMPONENTS ${SFML_MODULES} REQUIRED)
|
find_package(SFML 3.0.0 COMPONENTS ${SFML_MODULES} REQUIRED)
|
||||||
|
|
||||||
# add the subdirectories
|
# add the subdirectories
|
||||||
add_subdirectory(src/CSFML)
|
add_subdirectory(src/CSFML)
|
||||||
@@ -121,7 +121,7 @@ if(CSFML_BUILD_TEST_SUITE)
|
|||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
csfml_set_option(CLANG_FORMAT_EXECUTABLE clang-format STRING "Override clang-format executable, requires version 17")
|
csfml_set_option(CLANG_FORMAT_EXECUTABLE clang-format STRING "Override clang-format executable, requires version 14")
|
||||||
add_custom_target(format
|
add_custom_target(format
|
||||||
COMMAND ${CMAKE_COMMAND} -DCLANG_FORMAT_EXECUTABLE=${CLANG_FORMAT_EXECUTABLE} -P ./cmake/Format.cmake
|
COMMAND ${CMAKE_COMMAND} -DCLANG_FORMAT_EXECUTABLE=${CLANG_FORMAT_EXECUTABLE} -P ./cmake/Format.cmake
|
||||||
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} VERBATIM)
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} VERBATIM)
|
||||||
|
|||||||
+2
-2
@@ -13,8 +13,8 @@ endif()
|
|||||||
execute_process(COMMAND ${CLANG_FORMAT_EXECUTABLE} --version OUTPUT_VARIABLE CLANG_FORMAT_VERSION)
|
execute_process(COMMAND ${CLANG_FORMAT_EXECUTABLE} --version OUTPUT_VARIABLE CLANG_FORMAT_VERSION)
|
||||||
string(REGEX MATCH "clang-format version ([0-9]+)" CLANG_FORMAT_VERSION ${CLANG_FORMAT_VERSION})
|
string(REGEX MATCH "clang-format version ([0-9]+)" CLANG_FORMAT_VERSION ${CLANG_FORMAT_VERSION})
|
||||||
unset(CLANG_FORMAT_VERSION)
|
unset(CLANG_FORMAT_VERSION)
|
||||||
if(NOT CMAKE_MATCH_1 EQUAL 17)
|
if(NOT CMAKE_MATCH_1 EQUAL 14)
|
||||||
message(FATAL_ERROR "clang-format version ${CMAKE_MATCH_1} not supported. Must use version 17")
|
message(FATAL_ERROR "clang-format version ${CMAKE_MATCH_1} not supported. Must use version 14")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
|
|||||||
+4
-4
@@ -46,7 +46,7 @@ macro(csfml_add_library target)
|
|||||||
set_target_properties(${target} PROPERTIES MINSIZEREL_POSTFIX -s)
|
set_target_properties(${target} PROPERTIES MINSIZEREL_POSTFIX -s)
|
||||||
set_target_properties(${target} PROPERTIES RELWITHDEBINFO_POSTFIX -s)
|
set_target_properties(${target} PROPERTIES RELWITHDEBINFO_POSTFIX -s)
|
||||||
|
|
||||||
if(CSFML_USE_STATIC_STD_LIBS)
|
if(STATIC_STD_LIBS)
|
||||||
set_property(TARGET ${target} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
set_property(TARGET ${target} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
@@ -58,11 +58,11 @@ macro(csfml_add_library target)
|
|||||||
# set the target's folder (for IDEs that support it, e.g. Visual Studio)
|
# set the target's folder (for IDEs that support it, e.g. Visual Studio)
|
||||||
set_target_properties(${target} PROPERTIES FOLDER "CSFML")
|
set_target_properties(${target} PROPERTIES FOLDER "CSFML")
|
||||||
|
|
||||||
# apply the CSFML_USE_STATIC_STD_LIBS option if it is enabled
|
# apply the SFML_USE_STATIC_STD_LIBS option if it is enabled
|
||||||
if(SFML_OS_WINDOWS AND SFML_COMPILER_GCC)
|
if(SFML_OS_WINDOWS AND SFML_COMPILER_GCC)
|
||||||
if(CSFML_USE_STATIC_STD_LIBS AND NOT SFML_COMPILER_GCC_TDM)
|
if(SFML_USE_STATIC_STD_LIBS AND NOT SFML_COMPILER_GCC_TDM)
|
||||||
set_target_properties(${target} PROPERTIES LINK_FLAGS "-static-libgcc -static-libstdc++")
|
set_target_properties(${target} PROPERTIES LINK_FLAGS "-static-libgcc -static-libstdc++")
|
||||||
elseif(NOT CSFML_USE_STATIC_STD_LIBS AND SFML_COMPILER_GCC_TDM)
|
elseif(NOT SFML_USE_STATIC_STD_LIBS AND SFML_COMPILER_GCC_TDM)
|
||||||
set_target_properties(${target} PROPERTIES LINK_FLAGS "-shared-libgcc -shared-libstdc++")
|
set_target_properties(${target} PROPERTIES LINK_FLAGS "-shared-libgcc -shared-libstdc++")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
+2
-2
@@ -38,8 +38,8 @@ add_custom_target(doc ALL
|
|||||||
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
|
||||||
DESTINATION ${INSTALL_MISC_DIR}/doc
|
DESTINATION ${INSTALL_MISC_DIR}/doc
|
||||||
COMPONENT doc)
|
COMPONENT doc)
|
||||||
if(DOXYGEN_GENERATE_HTMLHELP)
|
if(DOXYGEN_HHC_PROGRAM)
|
||||||
install(FILES ${DOXYGEN_OUTPUT_DIR}/CSFML.chm
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/CSFML.chm
|
||||||
DESTINATION ${INSTALL_MISC_DIR}/doc
|
DESTINATION ${INSTALL_MISC_DIR}/doc
|
||||||
COMPONENT doc)
|
COMPONENT doc)
|
||||||
endif()
|
endif()
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -175,7 +175,7 @@ CSFML_AUDIO_API sfTime sfMusic_getDuration(const sfMusic* music);
|
|||||||
CSFML_AUDIO_API sfTimeSpan sfMusic_getLoopPoints(const sfMusic* music);
|
CSFML_AUDIO_API sfTimeSpan sfMusic_getLoopPoints(const sfMusic* music);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Sets the beginning and end of the sound's looping sequence using sfTime
|
/// \brief Sets the beginning and end of the sound's looping sequence using sf::Time
|
||||||
///
|
///
|
||||||
/// Loop points allow one to specify a pair of positions such that, when the music
|
/// Loop points allow one to specify a pair of positions such that, when the music
|
||||||
/// is enabled for looping, it will seamlessly seek to the beginning whenever it
|
/// is enabled for looping, it will seamlessly seek to the beginning whenever it
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -129,7 +129,7 @@ CSFML_AUDIO_API bool sfSoundRecorder_isAvailable(void);
|
|||||||
/// \return An array of strings containing the names
|
/// \return An array of strings containing the names
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_AUDIO_API const char* const* sfSoundRecorder_getAvailableDevices(size_t* count);
|
CSFML_AUDIO_API const char** sfSoundRecorder_getAvailableDevices(size_t* count);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Get the name of the default audio capture device
|
/// \brief Get the name of the default audio capture device
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// SFML - Simple and Fast Multimedia Library
|
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
|
||||||
//
|
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
|
||||||
//
|
|
||||||
// Permission is granted to anyone to use this software for any purpose,
|
|
||||||
// including commercial applications, and to alter it and redistribute it freely,
|
|
||||||
// subject to the following restrictions:
|
|
||||||
//
|
|
||||||
// 1. The origin of this software must not be misrepresented;
|
|
||||||
// you must not claim that you wrote the original software.
|
|
||||||
// If you use this software in a product, an acknowledgment
|
|
||||||
// in the product documentation would be appreciated but is not required.
|
|
||||||
//
|
|
||||||
// 2. Altered source versions must be plainly marked as such,
|
|
||||||
// and must not be misrepresented as being the original software.
|
|
||||||
//
|
|
||||||
// 3. This notice may not be removed or altered from any source distribution.
|
|
||||||
//
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Types of texture coordinates that can be used for rendering.
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
sfCoordinateTypeNormalized, ///< sfTexture coordinates in range [0 .. 1].
|
|
||||||
sfCoordinateTypePixels ///< sfTexture coordinates in range [0 .. size].
|
|
||||||
} sfCoordinateType;
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Types of primitives that an sfVertexArray can render
|
/// \brief Types of primitives that a sf::VertexArray can render
|
||||||
///
|
///
|
||||||
/// Points and lines have no area, therefore their thickness
|
/// Points and lines have no area, therefore their thickness
|
||||||
/// will always be 1 pixel, regardless the current transform
|
/// will always be 1 pixel, regardless the current transform
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -30,8 +30,6 @@
|
|||||||
#include <CSFML/Graphics/Export.h>
|
#include <CSFML/Graphics/Export.h>
|
||||||
|
|
||||||
#include <CSFML/Graphics/BlendMode.h>
|
#include <CSFML/Graphics/BlendMode.h>
|
||||||
#include <CSFML/Graphics/CoordinateType.h>
|
|
||||||
#include <CSFML/Graphics/StencilMode.h>
|
|
||||||
#include <CSFML/Graphics/Transform.h>
|
#include <CSFML/Graphics/Transform.h>
|
||||||
#include <CSFML/Graphics/Types.h>
|
#include <CSFML/Graphics/Types.h>
|
||||||
|
|
||||||
@@ -42,12 +40,10 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
sfBlendMode blendMode; ///< Blending mode
|
sfBlendMode blendMode; ///< Blending mode
|
||||||
sfStencilMode stencilMode; //!< Stencil mode
|
sfTransform transform; ///< Transform
|
||||||
sfTransform transform; ///< Transform
|
const sfTexture* texture; ///< Texture
|
||||||
sfCoordinateType coordinateType; //!< Texture coordinate type
|
const sfShader* shader; ///< Shader
|
||||||
const sfTexture* texture; ///< Texture
|
|
||||||
const sfShader* shader; ///< Shader
|
|
||||||
} sfRenderStates;
|
} sfRenderStates;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -216,28 +216,6 @@ CSFML_GRAPHICS_API bool sfRenderWindow_isSrgb(const sfRenderWindow* renderWindow
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_GRAPHICS_API void sfRenderWindow_setSize(sfRenderWindow* renderWindow, sfVector2u size);
|
CSFML_GRAPHICS_API void sfRenderWindow_setSize(sfRenderWindow* renderWindow, sfVector2u size);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Set the minimum window rendering region size
|
|
||||||
///
|
|
||||||
/// Pass a `NULL` vector to unset the minimum size
|
|
||||||
///
|
|
||||||
/// \param renderWindow Render window object
|
|
||||||
/// \param minimumSize New minimum size, in pixels
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
CSFML_GRAPHICS_API void sfRenderWindow_setMinimumSize(sfRenderWindow* renderWindow, const sfVector2u* minimumSize);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Set the maximum window rendering region size
|
|
||||||
///
|
|
||||||
/// Pass a `NULL` vector to unset the maximum size
|
|
||||||
///
|
|
||||||
/// \param renderWindow Render window object
|
|
||||||
/// \param maximumSize New maximum size, in pixels
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
CSFML_GRAPHICS_API void sfRenderWindow_setMaximumSize(sfRenderWindow* renderWindow, const sfVector2u* maximumSize);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Change the title of a render window
|
/// \brief Change the title of a render window
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -29,7 +29,6 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <CSFML/Graphics/Export.h>
|
#include <CSFML/Graphics/Export.h>
|
||||||
|
|
||||||
#include <CSFML/Graphics/CoordinateType.h>
|
|
||||||
#include <CSFML/Graphics/Rect.h>
|
#include <CSFML/Graphics/Rect.h>
|
||||||
#include <CSFML/Graphics/Types.h>
|
#include <CSFML/Graphics/Types.h>
|
||||||
#include <CSFML/System/InputStream.h>
|
#include <CSFML/System/InputStream.h>
|
||||||
@@ -38,6 +37,16 @@
|
|||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
/// \brief Types of texture coordinates that can be used for rendering.
|
||||||
|
///
|
||||||
|
////////////////////////////////////////////////////////////
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
sfTextureNormalized, ///< sfTexture coordinates in range [0 .. 1].
|
||||||
|
sfTexturePixels ///< sfTexture coordinates in range [0 .. size].
|
||||||
|
} sfTextureCoordinateType;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Create a new texture
|
/// \brief Create a new texture
|
||||||
///
|
///
|
||||||
@@ -178,32 +187,6 @@ CSFML_GRAPHICS_API sfTexture* sfTexture_copy(const sfTexture* texture);
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_GRAPHICS_API void sfTexture_destroy(const sfTexture* texture);
|
CSFML_GRAPHICS_API void sfTexture_destroy(const sfTexture* texture);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Resize the texture
|
|
||||||
///
|
|
||||||
/// If this function fails, the texture is left unchanged.
|
|
||||||
///
|
|
||||||
/// \param texture Texture to resize
|
|
||||||
/// \param size Width and height of the texture
|
|
||||||
///
|
|
||||||
/// \return `true` if resizing was successful, `false` if it failed
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
CSFML_GRAPHICS_API bool sfTexture_resize(sfTexture* texture, sfVector2u size);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Resize the texture with sRGB-enabled
|
|
||||||
///
|
|
||||||
/// If this function fails, the texture is left unchanged.
|
|
||||||
///
|
|
||||||
/// \param texture Texture to resize
|
|
||||||
/// \param size Width and height of the texture
|
|
||||||
///
|
|
||||||
/// \return `true` if resizing was successful, `false` if it failed
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
CSFML_GRAPHICS_API bool sfTexture_resizeSrgb(sfTexture* texture, sfVector2u size);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Return the size of the texture
|
/// \brief Return the size of the texture
|
||||||
///
|
///
|
||||||
@@ -417,7 +400,7 @@ CSFML_GRAPHICS_API unsigned int sfTexture_getNativeHandle(const sfTexture* textu
|
|||||||
/// \param type Type of texture coordinates to use
|
/// \param type Type of texture coordinates to use
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_GRAPHICS_API void sfTexture_bind(const sfTexture* texture, sfCoordinateType type);
|
CSFML_GRAPHICS_API void sfTexture_bind(const sfTexture* texture, sfTextureCoordinateType type);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Get the maximum texture size allowed
|
/// \brief Get the maximum texture size allowed
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -150,7 +150,7 @@ CSFML_GRAPHICS_API void sfVertexArray_setPrimitiveType(sfVertexArray* vertexArra
|
|||||||
/// \return Primitive type
|
/// \return Primitive type
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_GRAPHICS_API sfPrimitiveType sfVertexArray_getPrimitiveType(const sfVertexArray* vertexArray);
|
CSFML_GRAPHICS_API sfPrimitiveType sfVertexArray_getPrimitiveType(sfVertexArray* vertexArray);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Compute the bounding rectangle of a vertex array
|
/// \brief Compute the bounding rectangle of a vertex array
|
||||||
@@ -163,4 +163,4 @@ CSFML_GRAPHICS_API sfPrimitiveType sfVertexArray_getPrimitiveType(const sfVertex
|
|||||||
/// \return Bounding rectangle of the vertex array
|
/// \return Bounding rectangle of the vertex array
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_GRAPHICS_API sfFloatRect sfVertexArray_getBounds(const sfVertexArray* vertexArray);
|
CSFML_GRAPHICS_API sfFloatRect sfVertexArray_getBounds(sfVertexArray* vertexArray);
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -69,7 +69,7 @@ typedef enum
|
|||||||
/// \return A new sfVertexBuffer object
|
/// \return A new sfVertexBuffer object
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_GRAPHICS_API sfVertexBuffer* sfVertexBuffer_create(size_t vertexCount, sfPrimitiveType type, sfVertexBufferUsage usage);
|
CSFML_GRAPHICS_API sfVertexBuffer* sfVertexBuffer_create(unsigned int vertexCount, sfPrimitiveType type, sfVertexBufferUsage usage);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Copy an existing vertex buffer
|
/// \brief Copy an existing vertex buffer
|
||||||
@@ -166,7 +166,7 @@ CSFML_GRAPHICS_API void sfVertexBuffer_swap(sfVertexBuffer* left, sfVertexBuffer
|
|||||||
/// \return OpenGL handle of the vertex buffer or 0 if not yet created
|
/// \return OpenGL handle of the vertex buffer or 0 if not yet created
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_GRAPHICS_API unsigned int sfVertexBuffer_getNativeHandle(const sfVertexBuffer* vertexBuffer);
|
CSFML_GRAPHICS_API unsigned int sfVertexBuffer_getNativeHandle(sfVertexBuffer* vertexBuffer);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Set the type of primitives to draw
|
/// \brief Set the type of primitives to draw
|
||||||
@@ -174,7 +174,7 @@ CSFML_GRAPHICS_API unsigned int sfVertexBuffer_getNativeHandle(const sfVertexBuf
|
|||||||
/// This function defines how the vertices must be interpreted
|
/// This function defines how the vertices must be interpreted
|
||||||
/// when it's time to draw them.
|
/// when it's time to draw them.
|
||||||
///
|
///
|
||||||
/// The default primitive type is sfPoints.
|
/// The default primitive type is sf::Points.
|
||||||
///
|
///
|
||||||
/// \param vertexBuffer Vertex buffer object
|
/// \param vertexBuffer Vertex buffer object
|
||||||
/// \param type Type of primitive
|
/// \param type Type of primitive
|
||||||
@@ -248,7 +248,7 @@ CSFML_GRAPHICS_API void sfVertexBuffer_bind(const sfVertexBuffer* vertexBuffer);
|
|||||||
///
|
///
|
||||||
/// This function should always be called before using
|
/// This function should always be called before using
|
||||||
/// the vertex buffer features. If it returns false, then
|
/// the vertex buffer features. If it returns false, then
|
||||||
/// any attempt to use sfVertexBuffer will fail.
|
/// any attempt to use sf::VertexBuffer will fail.
|
||||||
///
|
///
|
||||||
/// \return True if vertex buffers are supported, false otherwise
|
/// \return True if vertex buffers are supported, false otherwise
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -191,7 +191,7 @@ CSFML_GRAPHICS_API sfFloatRect sfView_getViewport(const sfView* view);
|
|||||||
CSFML_GRAPHICS_API sfFloatRect sfView_getScissor(const sfView* view);
|
CSFML_GRAPHICS_API sfFloatRect sfView_getScissor(const sfView* view);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Move a view relative to its current position
|
/// \brief Move a view relatively to its current position
|
||||||
///
|
///
|
||||||
/// \param view View object
|
/// \param view View object
|
||||||
/// \param offset Offset
|
/// \param offset Offset
|
||||||
@@ -200,7 +200,7 @@ CSFML_GRAPHICS_API sfFloatRect sfView_getScissor(const sfView* view);
|
|||||||
CSFML_GRAPHICS_API void sfView_move(sfView* view, sfVector2f offset);
|
CSFML_GRAPHICS_API void sfView_move(sfView* view, sfVector2f offset);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Rotate a view relative to its current orientation
|
/// \brief Rotate a view relatively to its current orientation
|
||||||
///
|
///
|
||||||
/// \param view View object
|
/// \param view View object
|
||||||
/// \param angle Angle to rotate, in degrees
|
/// \param angle Angle to rotate, in degrees
|
||||||
@@ -209,7 +209,7 @@ CSFML_GRAPHICS_API void sfView_move(sfView* view, sfVector2f offset);
|
|||||||
CSFML_GRAPHICS_API void sfView_rotate(sfView* view, float angle);
|
CSFML_GRAPHICS_API void sfView_rotate(sfView* view, float angle);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Resize a view rectangle relative to its current size
|
/// \brief Resize a view rectangle relatively to its current size
|
||||||
///
|
///
|
||||||
/// Resizing the view simulates a zoom, as the zone displayed on
|
/// Resizing the view simulates a zoom, as the zone displayed on
|
||||||
/// screen grows or shrinks.
|
/// screen grows or shrinks.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -225,7 +225,7 @@ CSFML_NETWORK_API const char* sfFtpDirectoryResponse_getMessage(const sfFtpDirec
|
|||||||
///
|
///
|
||||||
/// \param ftpDirectoryResponse Ftp directory response
|
/// \param ftpDirectoryResponse Ftp directory response
|
||||||
///
|
///
|
||||||
/// \return Directory name or NULL if it failed
|
/// \return Directory name
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_NETWORK_API const char* sfFtpDirectoryResponse_getDirectory(const sfFtpDirectoryResponse* ftpDirectoryResponse);
|
CSFML_NETWORK_API const char* sfFtpDirectoryResponse_getDirectory(const sfFtpDirectoryResponse* ftpDirectoryResponse);
|
||||||
@@ -239,7 +239,7 @@ CSFML_NETWORK_API const char* sfFtpDirectoryResponse_getDirectory(const sfFtpDir
|
|||||||
///
|
///
|
||||||
/// \param ftpDirectoryResponse Ftp directory response
|
/// \param ftpDirectoryResponse Ftp directory response
|
||||||
///
|
///
|
||||||
/// \return Directory name or NULL if it failed
|
/// \return Directory name
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_NETWORK_API const sfChar32* sfFtpDirectoryResponse_getDirectoryUnicode(const sfFtpDirectoryResponse* ftpDirectoryResponse);
|
CSFML_NETWORK_API const sfChar32* sfFtpDirectoryResponse_getDirectoryUnicode(const sfFtpDirectoryResponse* ftpDirectoryResponse);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -132,7 +132,7 @@ CSFML_NETWORK_API void sfIpAddress_toString(sfIpAddress address, char* string);
|
|||||||
/// address, and should be used for optimization purposes only
|
/// address, and should be used for optimization purposes only
|
||||||
/// (like sending the address through a socket).
|
/// (like sending the address through a socket).
|
||||||
/// The integer produced by this function can then be converted
|
/// The integer produced by this function can then be converted
|
||||||
/// back to a sfIpAddress with sfIpAddress_fromInteger.
|
/// back to a sfIpAddress with sfIpAddress_FromInteger.
|
||||||
///
|
///
|
||||||
/// \param address Address object
|
/// \param address Address object
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -75,8 +75,6 @@ CSFML_NETWORK_API void sfPacket_append(sfPacket* packet, const void* data, size_
|
|||||||
///
|
///
|
||||||
/// The next read operation will read data from this position
|
/// The next read operation will read data from this position
|
||||||
///
|
///
|
||||||
/// \param packet Packet object
|
|
||||||
///
|
|
||||||
/// \return The byte offset of the current read position
|
/// \return The byte offset of the current read position
|
||||||
///
|
///
|
||||||
/// \see append
|
/// \see append
|
||||||
@@ -165,8 +163,6 @@ CSFML_NETWORK_API int16_t sfPacket_readInt16(sfPacket* packet);
|
|||||||
CSFML_NETWORK_API uint16_t sfPacket_readUint16(sfPacket* packet);
|
CSFML_NETWORK_API uint16_t sfPacket_readUint16(sfPacket* packet);
|
||||||
CSFML_NETWORK_API int32_t sfPacket_readInt32(sfPacket* packet);
|
CSFML_NETWORK_API int32_t sfPacket_readInt32(sfPacket* packet);
|
||||||
CSFML_NETWORK_API uint32_t sfPacket_readUint32(sfPacket* packet);
|
CSFML_NETWORK_API uint32_t sfPacket_readUint32(sfPacket* packet);
|
||||||
CSFML_NETWORK_API int64_t sfPacket_readInt64(sfPacket* packet);
|
|
||||||
CSFML_NETWORK_API uint64_t sfPacket_readUint64(sfPacket* packet);
|
|
||||||
CSFML_NETWORK_API float sfPacket_readFloat(sfPacket* packet);
|
CSFML_NETWORK_API float sfPacket_readFloat(sfPacket* packet);
|
||||||
CSFML_NETWORK_API double sfPacket_readDouble(sfPacket* packet);
|
CSFML_NETWORK_API double sfPacket_readDouble(sfPacket* packet);
|
||||||
CSFML_NETWORK_API void sfPacket_readString(sfPacket* packet, char* string);
|
CSFML_NETWORK_API void sfPacket_readString(sfPacket* packet, char* string);
|
||||||
@@ -185,8 +181,6 @@ CSFML_NETWORK_API void sfPacket_writeInt16(sfPacket* packet, int16_t);
|
|||||||
CSFML_NETWORK_API void sfPacket_writeUint16(sfPacket* packet, uint16_t);
|
CSFML_NETWORK_API void sfPacket_writeUint16(sfPacket* packet, uint16_t);
|
||||||
CSFML_NETWORK_API void sfPacket_writeInt32(sfPacket* packet, int32_t);
|
CSFML_NETWORK_API void sfPacket_writeInt32(sfPacket* packet, int32_t);
|
||||||
CSFML_NETWORK_API void sfPacket_writeUint32(sfPacket* packet, uint32_t);
|
CSFML_NETWORK_API void sfPacket_writeUint32(sfPacket* packet, uint32_t);
|
||||||
CSFML_NETWORK_API void sfPacket_writeInt64(sfPacket* packet, int64_t);
|
|
||||||
CSFML_NETWORK_API void sfPacket_writeUint64(sfPacket* packet, uint64_t);
|
|
||||||
CSFML_NETWORK_API void sfPacket_writeFloat(sfPacket* packet, float);
|
CSFML_NETWORK_API void sfPacket_writeFloat(sfPacket* packet, float);
|
||||||
CSFML_NETWORK_API void sfPacket_writeDouble(sfPacket* packet, double);
|
CSFML_NETWORK_API void sfPacket_writeDouble(sfPacket* packet, double);
|
||||||
CSFML_NETWORK_API void sfPacket_writeString(sfPacket* packet, const char* string);
|
CSFML_NETWORK_API void sfPacket_writeString(sfPacket* packet, const char* string);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -99,10 +99,6 @@ CSFML_NETWORK_API unsigned short sfTcpListener_getLocalPort(const sfTcpListener*
|
|||||||
/// If the socket was previously listening to another port,
|
/// If the socket was previously listening to another port,
|
||||||
/// it will be stopped first and bound to the new port.
|
/// it will be stopped first and bound to the new port.
|
||||||
///
|
///
|
||||||
/// When providing `sfTcpListener_anyPort()` as port, the listener
|
|
||||||
/// will request an available port from the system.
|
|
||||||
/// The chosen port can be retrieved by calling `sfTcpListener_getLocalPort()`.
|
|
||||||
///
|
|
||||||
/// If there is no specific address to listen to, pass sfIpAddress_Any
|
/// If there is no specific address to listen to, pass sfIpAddress_Any
|
||||||
///
|
///
|
||||||
/// \param listener TCP listener object
|
/// \param listener TCP listener object
|
||||||
@@ -114,17 +110,6 @@ CSFML_NETWORK_API unsigned short sfTcpListener_getLocalPort(const sfTcpListener*
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_NETWORK_API sfSocketStatus sfTcpListener_listen(sfTcpListener* listener, unsigned short port, sfIpAddress address);
|
CSFML_NETWORK_API sfSocketStatus sfTcpListener_listen(sfTcpListener* listener, unsigned short port, sfIpAddress address);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Stop listening and close the socket
|
|
||||||
///
|
|
||||||
/// This function gracefully stops the listener. If the
|
|
||||||
/// socket is not listening, this function has no effect.
|
|
||||||
///
|
|
||||||
/// \param listener TCP listener object
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
CSFML_NETWORK_API void sfTcpListener_close(sfTcpListener* listener);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Accept a new connection
|
/// \brief Accept a new connection
|
||||||
///
|
///
|
||||||
@@ -142,12 +127,3 @@ CSFML_NETWORK_API void sfTcpListener_close(sfTcpListener* listener);
|
|||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_NETWORK_API sfSocketStatus sfTcpListener_accept(sfTcpListener* listener, sfTcpSocket** connected);
|
CSFML_NETWORK_API sfSocketStatus sfTcpListener_accept(sfTcpListener* listener, sfTcpSocket** connected);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Return the special value that tells the system
|
|
||||||
/// to pick any available port
|
|
||||||
///
|
|
||||||
/// \return The value to use for any port
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
CSFML_NETWORK_API unsigned short sfTcpListener_anyPort(void);
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -153,7 +153,7 @@ CSFML_NETWORK_API void sfTcpSocket_disconnect(sfTcpSocket* socket);
|
|||||||
/// \brief Send raw data to the remote peer of a TCP socket
|
/// \brief Send raw data to the remote peer of a TCP socket
|
||||||
///
|
///
|
||||||
/// To be able to handle partial sends over non-blocking
|
/// To be able to handle partial sends over non-blocking
|
||||||
/// sockets, use the sfTcpSocket_sendPartial(sfTcpSocket*, const void*, size_t, size_t*)
|
/// sockets, use the sfTcpSocket_sendPartial(sfTcpSocket*, const void*, std::size_t, size_t*)
|
||||||
/// overload instead.
|
/// overload instead.
|
||||||
/// This function will fail if the socket is not connected.
|
/// This function will fail if the socket is not connected.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -102,10 +102,6 @@ CSFML_NETWORK_API unsigned short sfUdpSocket_getLocalPort(const sfUdpSocket* soc
|
|||||||
/// system to automatically pick an available port, and then
|
/// system to automatically pick an available port, and then
|
||||||
/// call sfUdpSocket_getLocalPort to retrieve the chosen port.
|
/// call sfUdpSocket_getLocalPort to retrieve the chosen port.
|
||||||
///
|
///
|
||||||
/// When providing `sfUdpSocket_anyPort()` as port, the listener
|
|
||||||
/// will request an available port from the system.
|
|
||||||
/// The chosen port can be retrieved by calling `sfUdpSocket_getLocalPort()`.
|
|
||||||
///
|
|
||||||
/// If there is no specific address to listen to, pass sfIpAddress_Any
|
/// If there is no specific address to listen to, pass sfIpAddress_Any
|
||||||
///
|
///
|
||||||
/// \param socket UDP socket object
|
/// \param socket UDP socket object
|
||||||
@@ -219,12 +215,3 @@ CSFML_NETWORK_API sfSocketStatus
|
|||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_NETWORK_API unsigned int sfUdpSocket_maxDatagramSize(void);
|
CSFML_NETWORK_API unsigned int sfUdpSocket_maxDatagramSize(void);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Return the special value that tells the system
|
|
||||||
/// to pick any available port
|
|
||||||
///
|
|
||||||
/// \return The value to use for any port
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
CSFML_NETWORK_API unsigned short sfUdpSocket_anyPort(void);
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -43,7 +43,7 @@ typedef struct
|
|||||||
/// \brief Predefined "zero" time value
|
/// \brief Predefined "zero" time value
|
||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_SYSTEM_API const sfTime sfTime_Zero;
|
CSFML_SYSTEM_API sfTime sfTime_Zero;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Return a time value as a number of seconds
|
/// \brief Return a time value as a number of seconds
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -142,12 +142,10 @@ typedef enum
|
|||||||
sfKeyF14, ///< The F14 key
|
sfKeyF14, ///< The F14 key
|
||||||
sfKeyF15, ///< The F15 key
|
sfKeyF15, ///< The F15 key
|
||||||
sfKeyPause, ///< The Pause key
|
sfKeyPause, ///< The Pause key
|
||||||
|
|
||||||
|
sfKeyCount, ///< Keep last -- the total number of keyboard keys
|
||||||
} sfKeyCode;
|
} sfKeyCode;
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
sfKeyCount = sfKeyPause + 1 ///< The total number of keyboard keys
|
|
||||||
};
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Scancodes
|
/// \brief Scancodes
|
||||||
@@ -312,12 +310,10 @@ typedef enum
|
|||||||
sfScanLaunchApplication2, //!< Keyboard Launch Application 2 key
|
sfScanLaunchApplication2, //!< Keyboard Launch Application 2 key
|
||||||
sfScanLaunchMail, //!< Keyboard Launch Mail key
|
sfScanLaunchMail, //!< Keyboard Launch Mail key
|
||||||
sfScanLaunchMediaSelect, //!< Keyboard Launch Media Select key
|
sfScanLaunchMediaSelect, //!< Keyboard Launch Media Select key
|
||||||
|
|
||||||
|
sfScancodeCount //!< Keep last -- the total number of scancodes
|
||||||
} sfScancode;
|
} sfScancode;
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
sfScancodeCount = sfScanLaunchMediaSelect + 1 //!< The total number of scancodes
|
|
||||||
};
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Check if a key is pressed
|
/// \brief Check if a key is pressed
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -39,17 +39,14 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
sfMouseLeft, ///< The left mouse button
|
sfMouseLeft, ///< The left mouse button
|
||||||
sfMouseRight, ///< The right mouse button
|
sfMouseRight, ///< The right mouse button
|
||||||
sfMouseMiddle, ///< The middle (wheel) mouse button
|
sfMouseMiddle, ///< The middle (wheel) mouse button
|
||||||
sfMouseButtonExtra1, ///< The first extra mouse button
|
sfMouseXButton1, ///< The first extra mouse button
|
||||||
sfMouseButtonExtra2, ///< The second extra mouse button
|
sfMouseXButton2, ///< The second extra mouse button
|
||||||
} sfMouseButton;
|
|
||||||
|
|
||||||
enum
|
sfMouseButtonCount ///< Keep last -- the total number of mouse buttons
|
||||||
{
|
} sfMouseButton;
|
||||||
sfMouseButtonCount = sfMouseButtonExtra2 + 1 ///< The total number of mouse buttons
|
|
||||||
};
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Mouse wheels
|
/// \brief Mouse wheels
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -45,12 +45,10 @@ typedef enum
|
|||||||
sfSensorGravity, ///< Measures the direction and intensity of gravity, independent of device acceleration (m/s^2)
|
sfSensorGravity, ///< Measures the direction and intensity of gravity, independent of device acceleration (m/s^2)
|
||||||
sfSensorUserAcceleration, ///< Measures the direction and intensity of device acceleration, independent of the gravity (m/s^2)
|
sfSensorUserAcceleration, ///< Measures the direction and intensity of device acceleration, independent of the gravity (m/s^2)
|
||||||
sfSensorOrientation, ///< Measures the absolute 3D orientation (degrees)
|
sfSensorOrientation, ///< Measures the absolute 3D orientation (degrees)
|
||||||
|
|
||||||
|
sfSensorCount ///< Keep last -- the total number of sensor types
|
||||||
} sfSensorType;
|
} sfSensorType;
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
sfSensorCount = sfSensorOrientation + 1 ///< The total number of sensor types
|
|
||||||
};
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Check if a sensor is available on the underlying platform
|
/// \brief Check if a sensor is available on the underlying platform
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -280,28 +280,6 @@ CSFML_WINDOW_API sfVector2u sfWindow_getSize(const sfWindow* window);
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_WINDOW_API void sfWindow_setSize(sfWindow* window, sfVector2u size);
|
CSFML_WINDOW_API void sfWindow_setSize(sfWindow* window, sfVector2u size);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Set the minimum window rendering region size
|
|
||||||
///
|
|
||||||
/// Pass a `NULL` vector to unset the minimum size
|
|
||||||
///
|
|
||||||
/// \param window Window object
|
|
||||||
/// \param minimumSize New minimum size, in pixels
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
CSFML_WINDOW_API void sfWindow_setMinimumSize(sfWindow* window, const sfVector2u* minimumSize);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Set the maximum window rendering region size
|
|
||||||
///
|
|
||||||
/// Pass a `NULL` vector to unset the maximum size
|
|
||||||
///
|
|
||||||
/// \param window Window object
|
|
||||||
/// \param maximumSize New maximum size, in pixels
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
CSFML_WINDOW_API void sfWindow_setMaximumSize(sfWindow* window, const sfVector2u* maximumSize);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Change the title of a window
|
/// \brief Change the title of a window
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
@@ -236,28 +236,6 @@ CSFML_WINDOW_API sfVector2u sfWindowBase_getSize(const sfWindowBase* windowBase)
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
CSFML_WINDOW_API void sfWindowBase_setSize(sfWindowBase* windowBase, sfVector2u size);
|
CSFML_WINDOW_API void sfWindowBase_setSize(sfWindowBase* windowBase, sfVector2u size);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Set the minimum window rendering region size
|
|
||||||
///
|
|
||||||
/// Pass a `NULL` vector to unset the minimum size
|
|
||||||
///
|
|
||||||
/// \param windowBase Window object
|
|
||||||
/// \param minimumSize New minimum size, in pixels
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
CSFML_WINDOW_API void sfWindowBase_setMinimumSize(sfWindowBase* windowBase, const sfVector2u* minimumSize);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
/// \brief Set the maximum window rendering region size
|
|
||||||
///
|
|
||||||
/// Pass a `NULL` vector to unset the maximum size
|
|
||||||
///
|
|
||||||
/// \param windowBase Window object
|
|
||||||
/// \param maximumSize New maximum size, in pixels
|
|
||||||
///
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
CSFML_WINDOW_API void sfWindowBase_setMaximumSize(sfWindowBase* windowBase, const sfVector2u* maximumSize);
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// \brief Change the title of a window
|
/// \brief Change the title of a window
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// SFML - Simple and Fast Multimedia Library
|
// SFML - Simple and Fast Multimedia Library
|
||||||
// Copyright (C) 2007-2026 Laurent Gomila (laurent@sfml-dev.org)
|
// Copyright (C) 2007-2024 Laurent Gomila (laurent@sfml-dev.org)
|
||||||
//
|
//
|
||||||
// This software is provided 'as-is', without any express or implied warranty.
|
// This software is provided 'as-is', without any express or implied warranty.
|
||||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
# CSFML
|
# CSFML
|
||||||
|
|
||||||
CSFML - Copyright (C) 2007-2026 Laurent Gomila - laurent@sfml-dev.org
|
CSFML - Copyright (C) 2007-2024 Laurent Gomila - laurent@sfml-dev.org
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
|
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,11 @@ SFML is a simple, fast, cross-platform and object-oriented multimedia API. It pr
|
|||||||
|
|
||||||
## State of Development
|
## State of Development
|
||||||
|
|
||||||
Development is focused on version 3 in the `master` branch. No more features are planned for the 2.x release series.
|
Development is focused on the next major version in the `master` branch. No more features are planned for the 2.x release series.
|
||||||
|
|
||||||
|
- The [`master`](https://github.com/SFML/CSFML/tree/master) branch contains work in progress for the next major version CSFML 3. As such it's considered unstable, but any testing and feedback is highly appreciated.
|
||||||
|
- The [`2.6.1`](https://github.com/SFML/CSFML/tree/2.6.1) tag is the latest official SFML release and will be the last minor release in the 2.x series.
|
||||||
|
- The [`2.6.x`](https://github.com/SFML/CSFML/tree/2.6.x) branch contains the latest bugfix work on CSFML 2.6.x, matching SFML's `2.6.x` branch.
|
||||||
|
|
||||||
## Authors
|
## Authors
|
||||||
|
|
||||||
@@ -14,7 +18,6 @@ Development is focused on version 3 in the `master` branch. No more features are
|
|||||||
- Lukas Dürrenberger (eXpl0it3r@sfml-dev.org)
|
- Lukas Dürrenberger (eXpl0it3r@sfml-dev.org)
|
||||||
- Chris Thrasher (thrasher@sfml-dev.org)
|
- Chris Thrasher (thrasher@sfml-dev.org)
|
||||||
- Zachariah Brown (contact@zbrown.net)
|
- Zachariah Brown (contact@zbrown.net)
|
||||||
- And many other members of the SFML community
|
|
||||||
|
|
||||||
## Download
|
## Download
|
||||||
|
|
||||||
|
|||||||
Loaded 100 of 235 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user