Skip to content

Commit 0da7621

Browse files
committed
Merge branch 'release-0.21.0'
2 parents 6ba20e6 + d0df8cb commit 0da7621

Some content is hidden

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

50 files changed

+1261
-1353
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# https://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_style = space
9+
indent_size = 2
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true

.travis.yml

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

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
cmake_minimum_required(VERSION 3.10)
22

33
project(GF
4-
VERSION 0.20.0
4+
VERSION 0.21.0
55
LANGUAGES CXX C
66
)
77

88
include(GenerateExportHeader)
99

1010
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
1111
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
12+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1213

1314
if(NOT MSVC AND (NOT DEFINED CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL ""))
1415
message(STATUS "Setting build type to 'RelWithDebInfo' as none was specified.")

ChangeLog.md

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

3+
## gf 0.21.0 (14 Jul 2021)
4+
5+
- Core (gf::core)
6+
- Remove gf::HexagonHelper, gf::StaggerHelper and gf::OrthogonalHelper
7+
- Add gf::Cells and its subclasses gf::HexagonalCells, gf::StaggeredCells, gf::OrthogonalCells
8+
- Remove gf::SquareGrid, gf::HexagonalGrid
9+
- Add gf::Grid (with gf::Cells)
10+
- Rework gf::Tileset (with gf::Cells)
11+
- Rename and refactor cell related classes and enums
12+
- Graphics (gf::graphics)
13+
- Add some missing texture format constants
14+
- Rework Animation::addTileset and add tileOffset (thanks @mquinson)
15+
- Network (gf::net)
16+
- Misc
17+
- Add .editorconfig
18+
- Changed CI from Travis CI to Buddy.works
19+
- Preliminary work for Android compilation
20+
- Delete IRC channel on freenode (prefer Discord)
21+
322
## gf 0.20.0 (14 Apr 2021)
423

524
- Core (gf::core)

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Gamedev Framework (gf)
22

3-
[![Travis](https://img.shields.io/travis/GamedevFramework/gf.svg?style=flat-square)](https://travis-ci.org/GamedevFramework/gf)
3+
[![Buddy](https://app.buddy.works/jube/gf/pipelines/pipeline/337210/badge.svg?token=23ffd15ec7784efca148879f00926ce2b5dbe8a431c91c1a0836bb04c2124ad1 "Buddy")](https://app.buddy.works/jube/gf/pipelines/pipeline/337210)
44
[![AppVeyor](https://img.shields.io/appveyor/ci/jube/gf.svg?style=flat-square)](https://ci.appveyor.com/project/jube/gf)
55
[![GitHub license](https://img.shields.io/badge/license-zlib-blue.svg?style=flat-square)](https://raw.githubusercontent.com/GamedevFramework/gf/master/LICENSE)
66
[![GitHub tag](https://img.shields.io/github/tag/GamedevFramework/gf.svg?style=flat-square)](https://github.com/GamedevFramework/gf/tags)
@@ -88,7 +88,6 @@ If you want to talk directly with the developpers, you can
8888

8989
- chat on the [Discord server of gf](https://discord.gg/2fXM3T4)
9090
- post a message on [/r/GamedevFramework](https://www.reddit.com/r/GamedevFramework/).
91-
- join the [#gf-devel IRC channel on Freenode](irc://chat.freenode.net/gf-devel)
9291

9392
## Contribution
9493

TODO.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Things to do (or not) in gf
22

3-
This file is a list of ideas for gf. Some of them will eventually be in gf. Others are just random thoughts. If you are interested in on of these items, read [CONTRIBUTING.md](CONTRIBUTING.md).
3+
This file is a list of ideas for gf. Some of them will eventually be in gf. Others are just random thoughts. If you are interested in one of these items, read [CONTRIBUTING.md](CONTRIBUTING.md).
44

55
## core
66

@@ -37,7 +37,7 @@ This file is a list of ideas for gf. Some of them will eventually be in gf. Othe
3737

3838
## meta
3939

40-
- (docs) split gf_dev_doc by modules (core, graphics, net)
4140
- (portability) consider using [hedley](https://nemequ.github.io/hedley/)
4241
- blocking bug: nemequ/hedley#35
4342
- (packaging) use CPack to create packages
43+
- (binding) Python binding with [pybind11](https://github.com/pybind/pybind11)?

docs/custom/DoxygenLayout.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</tab>
2323
<tab type="examples" visible="yes" title="" intro=""/>
2424
<tab type="user" url="https://github.com/GamedevFramework/gf" title="gf on github" />
25-
<tab type="user" url="irc://chat.freenode.net/gf-devel" title="#gf-devel on Freenode" />
25+
<tab type="user" url="https://discord.gg/2fXM3T4" title="GamedevFramework on Discord" />
2626
<tab type="user" url="https://www.reddit.com/r/GamedevFramework/" title="/r/GamedevFramework on Reddit" />
2727
</navindex>
2828

docs/index.dox

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ target_link_libraries(mygame
8888
@ingroup core
8989
@brief Serialization
9090

91+
@defgroup core_cells Cells
92+
@ingroup core
93+
@brief Cells handling related classes (orthogonal, hexagonal, staggered)
94+
9195
@defgroup core_utilities Utilities
9296
@ingroup core
9397
@brief Various game-related utilities

docs/snippets/CMakeLists.txt

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,52 @@ add_gf_snippet(doc_index)
99
add_gf_snippet(doc_it_moves)
1010
add_gf_snippet(doc_simple_template)
1111

12-
add_executable(gfdev_doc
12+
add_executable(gfdev_core_doc
1313
doc_class_clock.cc
14+
doc_class_flags.cc
15+
doc_class_image.cc
16+
doc_class_time.cc
17+
doc_struct_circ.cc
18+
doc_tutorial_id.cc
19+
doc_tutorial_messages.cc
20+
main.cc
21+
)
22+
23+
target_link_libraries(gfdev_core_doc
24+
PRIVATE
25+
gfcore0
26+
)
27+
28+
add_executable(gfdev_graphics_doc
1429
doc_class_console.cc
1530
doc_class_cursor.cc
1631
doc_class_drawable.cc
1732
doc_class_entity_container.cc
18-
doc_class_flags.cc
1933
doc_class_font.cc
20-
doc_class_image.cc
21-
doc_class_socket_selector.cc
2234
doc_class_sprite.cc
23-
doc_class_tcp_listener.cc
24-
doc_class_tcp_socket.cc
2535
doc_class_text.cc
2636
doc_class_texture.cc
27-
doc_class_time.cc
28-
doc_class_udp_socket.cc
2937
doc_class_view_container.cc
3038
doc_class_window.cc
3139
doc_struct_blend_mode.cc
32-
doc_struct_circ.cc
3340
doc_struct_event.cc
34-
doc_tutorial_id.cc
35-
doc_tutorial_messages.cc
3641
main.cc
3742
)
3843

39-
target_link_libraries(gfdev_doc gf0 gfnet0)
44+
target_link_libraries(gfdev_graphics_doc
45+
PRIVATE
46+
gf0
47+
)
48+
49+
add_executable(gfdev_net_doc
50+
doc_class_socket_selector.cc
51+
doc_class_tcp_listener.cc
52+
doc_class_tcp_socket.cc
53+
doc_class_udp_socket.cc
54+
main.cc
55+
)
56+
57+
target_link_libraries(gfdev_net_doc
58+
PRIVATE
59+
gfnet0
60+
)

examples/13_animation.cc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@ int main() {
3838
texture.setSmooth();
3939

4040
gf::Animation animation;
41-
42-
for (unsigned frame = 0; frame < 8; ++frame) {
43-
unsigned x = frame % 4;
44-
unsigned y = frame / 4;
45-
animation.addFrame(texture, gf::RectF::fromPositionSize({ 0.25f * x, 0.5f * y }, { 0.25f, 0.5f }), gf::milliseconds(100));
46-
}
41+
animation.addTileset(texture, gf::vec(4, 2), gf::milliseconds(100), 8);
4742

4843
gf::AnimatedSprite animatedSprite;
4944
animatedSprite.setAnimation(animation);

0 commit comments

Comments
 (0)