Skip to content

Commit 7c2c7e8

Browse files
committed
Merge branch 'develop'
2 parents 22e054d + 5181926 commit 7c2c7e8

Some content is hidden

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

94 files changed

+1005
-2218
lines changed

.github/workflows/ubuntu.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ jobs:
2929
submodules: recursive
3030
ref: ${{ steps.extract_branch.outputs.branch }}
3131

32+
- name: CMake hack for Ubuntu
33+
shell: bash
34+
working-directory: ${{ github.workspace }}
35+
run: |
36+
cat library/CMakeLists.txt | sed 's/SDL2::SDL2/\$\{SDL2_LIBRARIES\}/' | tee library/CMakeLists.txt > /dev/null
37+
echo 'include_directories(SYSTEM ${SDL2_INCLUDE_DIRS})' >> library/CMakeLists.txt
38+
3239
- name: Configure gf
3340
run: cmake -DGF_BUILD_GAMES=OFF -DGF_BUILD_EXAMPLES=OFF -DGF_BUILD_DOCUMENTATION=OFF -DGF_SINGLE_COMPILTATION_UNIT=OFF -DGF_DEBUG=OFF -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -S ${{ github.workspace }} -B ${{ github.workspace }}/build
3441

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
env:
1010
BUILD_TYPE: Release
11-
VCPKG_COMMIT: 5568f110b509a9fd90711978a7cb76bae75bb092
11+
VCPKG_COMMIT: af2287382b1991dbdcb7e5112d236f3323b9dd7a
1212
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}\vcpkg\binary-cache
1313

1414
jobs:
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/cache@v2.1.6
2121
with:
2222
path: vcpkg
23-
key: ${{ runner.os }}-vcpkg-${{ env.VCPKG_COMMIT }}-v3
23+
key: ${{ runner.os }}-vcpkg-${{ env.VCPKG_COMMIT }}-v1
2424

2525
- uses: actions/checkout@v2
2626
if: steps.cache-vcpkg.outputs.cache-hit != 'true'

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.10)
22

33
project(GF
4-
VERSION 0.22.0
4+
VERSION 1.0.0
55
LANGUAGES CXX C
66
)
77

@@ -36,10 +36,6 @@ set(GF_SHARED ${BUILD_SHARED_LIBS})
3636
include(GNUInstallDirs)
3737
set(GF_DATADIR ${CMAKE_INSTALL_FULL_DATADIR})
3838

39-
if(NOT DEFINED GF_VCPKG)
40-
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
41-
endif()
42-
4339
set(SDL2_BUILDING_LIBRARY TRUE)
4440
find_package(SDL2 REQUIRED)
4541

ChangeLog.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# ChangeLog for gf
22

3+
## gf 1.0.0 (14 Jul 2022)
4+
5+
- Core (gf::core)
6+
- Add gf::Flags serialization
7+
- Add gf::angleTo and gf::projectOnto
8+
- Remove gf::unused in favor of `[[maybe_unused]]`
9+
- Graphics (gf::graphics)
10+
- Add VertexArray::appendAll()
11+
- Add ShapeParticles::addPolygon()
12+
- Add a flag of EventFilter in Window::pollEvent() and Window::waitEvent()
13+
- Add gf::ConsoleStyle and update related classes
14+
- Add TileLayer::setTilesetSmooth()
15+
- Remove gf::LightSystem and related classes (not ready)
16+
- Network (gf::net)
17+
- Misc
18+
- 6th anniversary!
19+
320
## gf 0.22.0 (14 Jan 2022)
421

522
- Core (gf::core)

TODO.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ This file is a list of ideas for gf. Some of them will eventually be in gf. Othe
1414

1515
## graphics
1616

17-
- (cursor) fix the bug due to image handling
1817
- (font) use Signed Distance Field for big size fonts
19-
- (window/events) add a flag in `pollEvent`/`waitEvent` (`EventFlag::TouchAsMouse`, `EventFlag::NoWindowFilter`)
2018
- (curve/shape) add anti-aliasing to `Curve` and `Shape`
2119
- ideas: [vaserenderer](https://github.com/tyt2y3/vaserenderer),
2220
- ideas: [a forum thread](https://forum.libcinder.org/topic/smooth-thick-lines-using-geometry-shader#23286000001269127)
@@ -26,7 +24,6 @@ This file is a list of ideas for gf. Some of them will eventually be in gf. Othe
2624
- (scene) integrate post-processing in `Scene`/`SceneManager`
2725
- remove `RenderPipeline`
2826
- rename `Effect` in `PostProcEffect`
29-
- (console) make style a class and remove internal style state
3027
- (drawable) Remove `Drawable`, make it a named requirement (or a concept in the future)
3128

3229
## net
@@ -42,4 +39,3 @@ This file is a list of ideas for gf. Some of them will eventually be in gf. Othe
4239
- blocking bug: nemequ/hedley#35
4340
- (packaging) use CPack to create packages
4441
- (binding) Python binding with [pybind11](https://github.com/pybind/pybind11)?
45-
- (code) remove gf::unused

appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ skip_tags: true
77
image:
88
- Visual Studio 2017
99
- Visual Studio 2019
10+
- Visual Studio 2022
1011
platform: x64
1112
configuration:
1213
- Debug
@@ -19,7 +20,7 @@ cache:
1920
install:
2021
- cmd: cd C:\Tools\vcpkg
2122
- cmd: git fetch
22-
- cmd: git checkout 2020.01
23+
- cmd: git checkout 2022.02.23
2324
- cmd: .\bootstrap-vcpkg.bat
2425
- cmd: vcpkg integrate install
2526
- cmd: vcpkg remove --outdated --recurse
@@ -31,7 +32,7 @@ before_build:
3132
- cmd: git submodule update --init
3233
- cmd: mkdir build
3334
- cmd: cd build
34-
- cmd: cmake -A x64 -DGF_VCPKG=ON -DGF_DEBUG=OFF -DGF_BUILD_GAMES=OFF -DGF_SINGLE_COMPILTATION_UNIT=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=ON -DCMAKE_TOOLCHAIN_FILE=C:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake ..
35+
- cmd: cmake -A x64 -DGF_DEBUG=OFF -DGF_BUILD_GAMES=OFF -DGF_SINGLE_COMPILTATION_UNIT=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=ON -DCMAKE_TOOLCHAIN_FILE=C:\Tools\vcpkg\scripts\buildsystems\vcpkg.cmake ..
3536

3637
build:
3738
parallel: true

cmake/FindSDL2.cmake

Lines changed: 0 additions & 95 deletions
This file was deleted.

docs/index.dox

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ target_link_libraries(mygame
100100
@ingroup core
101101
@brief TMX (Tiled) support
102102

103+
gf supports TMX 1.5+. In particular, it does not support the old terrain element in favor of wang sets.
104+
103105
@defgroup graphics Graphics
104106
@brief All the classes related to graphics
105107

docs/snippets/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ add_executable(gfdev_core_doc
1313
doc_class_clock.cc
1414
doc_class_flags.cc
1515
doc_class_image.cc
16+
doc_class_rect.cc
1617
doc_class_time.cc
1718
doc_struct_circ.cc
1819
doc_tutorial_id.cc

docs/snippets/doc_class_clock.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
* 3. This notice may not be removed or altered from any source distribution.
2020
*/
2121
#include <gf/Clock.h>
22-
#include <gf/Unused.h>
22+
23+
template <typename... Args>
24+
constexpr void unused(Args&&...) { }
2325

2426
void dummyClockUsage() {
2527

@@ -31,6 +33,5 @@ void dummyClockUsage() {
3133
gf::Time time2 = clock.restart();
3234
/// [clock]
3335

34-
gf::unused(clock, time1, time2);
35-
36+
unused(clock, time1, time2);
3637
}

0 commit comments

Comments
 (0)