-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new input and render utils (#10)
* feat: add new render utils and key and mouse buttons * chore: update doxygen * feat: add doxygen * fix: remove sonar action * fix: add token to deploy * fix: remove doxy files * fix: tidy up doxygen docs * fix: do not use ref in render target
- Loading branch information
1 parent
d7adc6a
commit 0bf2536
Showing
20 changed files
with
883 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Deploy Docs | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
docs: | ||
name: Deploy Docs | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install graphviz | ||
run: sudo apt install graphviz | ||
|
||
- uses: mattnotmitt/doxygen-action@v1 | ||
with: | ||
doxyfile-path: "./Doxyfile" | ||
|
||
- uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: ./docs | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,5 @@ CMakeCache.txt | |
compile_commands.json | ||
.ninja* | ||
/lib | ||
Makefile | ||
Makefile | ||
docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Build", | ||
"type": "shell", | ||
"detail": "Build", | ||
"command": "cmake --build .", | ||
"group": "build", | ||
"problemMatcher": "$gcc" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
DOXYFILE_ENCODING = UTF-8 | ||
PROJECT_NAME = "ASW Lib" | ||
PROJECT_BRIEF = "A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL2 and use modern c++." | ||
TAB_SIZE = 2 | ||
EXTRACT_PRIVATE = YES | ||
EXTRACT_PRIV_VIRTUAL = YES | ||
EXTRACT_PACKAGE = YES | ||
EXTRACT_STATIC = YES | ||
EXTRACT_LOCAL_CLASSES = YES | ||
EXTRACT_ANON_NSPACES = YES | ||
WARN_NO_PARAMDOC = NO | ||
INPUT = src include README.md | ||
FILE_PATTERNS = *.cpp *.h *.md *.hpp | ||
RECURSIVE = YES | ||
EXAMPLE_PATH = examples | ||
EXAMPLE_PATTERNS = *.cpp *.h *.md *.hpp | ||
EXAMPLE_RECURSIVE = YES | ||
USE_MDFILE_AS_MAINPAGE = README.md | ||
SOURCE_BROWSER = YES | ||
GENERATE_LATEX = NO | ||
HTML_OUTPUT = docs | ||
HAVE_DOT = YES | ||
DOT_IMAGE_FORMAT = svg | ||
EXTRACT_ALL = YES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,18 @@ | ||
# asw | ||
|
||
A.D.S. Games SDL Wrapper | ||
A.D.S. Games SDL Wrapper. | ||
|
||
## Usage (CMAKE) | ||
|
||
### Add submodule | ||
This project started as a way to easily port allegro4 games to SDL2. Now it intends to make it easier to use SDL2 in C++. A primary focus is to allow easy compilation of games using emscripten as well, and has been throughly tested with it. | ||
|
||
``` | ||
mkdir lib | ||
git submodule add https://github.com/AdsGames/asw lib/asw | ||
``` | ||
|
||
### Add to CMakeLists.txt | ||
## Usage (CMAKE) | ||
|
||
``` | ||
set(ASW_HEADERS lib/asw) | ||
### Fetch Content | ||
|
||
target_include_directories( | ||
executable_name PRIVATE | ||
${ASW_HEADERS} | ||
```sh | ||
FetchContent_Declare( | ||
asw | ||
GIT_REPOSITORY https://github.com/adsgames/asw.git | ||
GIT_TAG <tag from latest version> | ||
) | ||
FetchContent_MakeAvailable(asw) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.