feat: initialized project
|
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.21)
|
||||
project(CHANGEME)
|
||||
project(dice-gui)
|
||||
|
||||
set(CMAKE_BINARY_DIR "${CMAKE_SOURCE_DIR}/bin")
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
|
||||
|
|
@ -15,11 +15,11 @@ add_subdirectory(vendor/SDL3/ EXCLUDE_FROM_ALL)
|
|||
set(SDLTTF_VENDORED ON)
|
||||
add_subdirectory(vendor/SDL3_ttf/ EXCLUDE_FROM_ALL)
|
||||
|
||||
add_executable(CHANGEME ${source_files})
|
||||
target_link_libraries(CHANGEME PRIVATE SDL3_ttf::SDL3_ttf SDL3::SDL3)
|
||||
add_executable(dice-gui ${source_files})
|
||||
target_link_libraries(dice-gui PRIVATE SDL3_ttf::SDL3_ttf SDL3::SDL3)
|
||||
|
||||
add_custom_target(copy_assets
|
||||
COMMAND ${CMAKE_COMMAND} -E
|
||||
copy_directory ${CMAKE_SOURCE_DIR}/assets/ ${CMAKE_BINARY_DIR}/assets
|
||||
)
|
||||
add_dependencies(CHANGEME copy_assets)
|
||||
add_dependencies(dice-gui copy_assets)
|
||||
|
|
|
|||
180
asset-src/dice_icons.svg
Normal file
|
|
@ -0,0 +1,180 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="135.46666mm"
|
||||
height="135.46666mm"
|
||||
viewBox="0 0 135.46666 135.46666"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
|
||||
sodipodi:docname="dice_icons.svg"
|
||||
xml:space="preserve"
|
||||
inkscape:export-batch-path="../assets/icons"
|
||||
inkscape:export-batch-name=""
|
||||
inkscape:export-filename="dice_icons.svg"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
|
||||
id="namedview1"
|
||||
pagecolor="#8a8a8a"
|
||||
bordercolor="#999999"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="true"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
inkscape:document-units="mm"
|
||||
inkscape:zoom="0.59185669"
|
||||
inkscape:cx="3482.2619"
|
||||
inkscape:cy="419.02035"
|
||||
inkscape:current-layer="layer1"><inkscape:page
|
||||
x="0"
|
||||
y="0"
|
||||
width="135.46666"
|
||||
height="135.46666"
|
||||
id="page9"
|
||||
margin="0"
|
||||
bleed="0"
|
||||
inkscape:label="d2" /><inkscape:page
|
||||
x="145.46666"
|
||||
y="0"
|
||||
width="135.46666"
|
||||
height="135.46666"
|
||||
id="page7"
|
||||
margin="0"
|
||||
bleed="0"
|
||||
inkscape:label="d4" /><inkscape:page
|
||||
x="290.93332"
|
||||
y="0"
|
||||
width="135.46666"
|
||||
height="135.46666"
|
||||
id="page8"
|
||||
margin="0"
|
||||
bleed="0"
|
||||
inkscape:label="d6" /><inkscape:page
|
||||
x="436.39999"
|
||||
y="0"
|
||||
width="135.46666"
|
||||
height="135.46666"
|
||||
id="page3"
|
||||
margin="0"
|
||||
bleed="0"
|
||||
inkscape:label="d8" /><inkscape:page
|
||||
x="581.86664"
|
||||
y="0"
|
||||
width="135.46666"
|
||||
height="135.46666"
|
||||
id="page2"
|
||||
margin="0"
|
||||
bleed="0"
|
||||
inkscape:label="d10" /><inkscape:page
|
||||
x="727.33331"
|
||||
y="0"
|
||||
width="135.46666"
|
||||
height="135.46666"
|
||||
id="page6"
|
||||
margin="0"
|
||||
bleed="0"
|
||||
inkscape:label="d12" /><inkscape:page
|
||||
x="872.79999"
|
||||
y="0"
|
||||
width="135.46666"
|
||||
height="135.46666"
|
||||
id="page1"
|
||||
margin="0"
|
||||
bleed="0"
|
||||
inkscape:label="d20" /></sodipodi:namedview><defs
|
||||
id="defs1" /><g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"><path
|
||||
sodipodi:type="star"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="path1"
|
||||
inkscape:flatsided="true"
|
||||
sodipodi:sides="6"
|
||||
sodipodi:cx="72.788857"
|
||||
sodipodi:cy="66.374512"
|
||||
sodipodi:r1="67.217316"
|
||||
sodipodi:r2="28.449295"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:arg2="-1.0471975"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="m 72.788858,-0.84280396 58.211902,33.60865896 0,67.217316 -58.211905,33.608659 -58.211902,-33.608662 1e-6,-67.217316 z"
|
||||
inkscape:transform-center-y="-12.876241"
|
||||
transform="matrix(0.90520643,0,0,0.90520643,874.64437,5.5777902)"
|
||||
inkscape:transform-center-x="3.3397253e-06" /><path
|
||||
sodipodi:type="star"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="path5"
|
||||
inkscape:flatsided="true"
|
||||
sodipodi:sides="4"
|
||||
sodipodi:cx="72.788857"
|
||||
sodipodi:cy="66.374512"
|
||||
sodipodi:r1="67.217316"
|
||||
sodipodi:r2="28.449295"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:arg2="-0.78539814"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="M 72.788858,-0.84280396 140.00617,66.374514 72.788855,133.59183 5.5715408,66.37451 Z"
|
||||
inkscape:transform-center-y="-12.604566"
|
||||
transform="matrix(0.88610748,0,0,0.88610748,439.63457,7.7184047)"
|
||||
inkscape:transform-center-x="6.2954262e-06" /><path
|
||||
id="path6"
|
||||
style="fill:#ffffff;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
inkscape:transform-center-y="-12.9021"
|
||||
d="M 649.59993,5.6855819 703.25785,48.872462 V 87.867475 L 649.59993,127.62112 595.94202,87.867472 V 48.87246 Z"
|
||||
sodipodi:nodetypes="ccccccc"
|
||||
inkscape:transform-center-x="2.1499999e-05" /><path
|
||||
sodipodi:type="star"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="path7"
|
||||
inkscape:flatsided="true"
|
||||
sodipodi:sides="5"
|
||||
sodipodi:cx="72.788857"
|
||||
sodipodi:cy="66.374512"
|
||||
sodipodi:r1="67.217316"
|
||||
sodipodi:r2="28.449295"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:arg2="-0.94247777"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="M 72.788858,-0.84280396 136.71632,45.603221 112.2982,120.75446 l -79.018692,0 L 8.861391,45.603217 Z"
|
||||
inkscape:transform-center-y="-12.73828"
|
||||
transform="matrix(0.89550761,0,0,0.89550761,729.88365,7.3795082)"
|
||||
inkscape:transform-center-x="1.1296226e-06" /><path
|
||||
sodipodi:type="star"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="path8"
|
||||
inkscape:flatsided="true"
|
||||
sodipodi:sides="3"
|
||||
sodipodi:cx="72.788857"
|
||||
sodipodi:cy="66.374512"
|
||||
sodipodi:r1="67.217316"
|
||||
sodipodi:r2="28.449295"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:arg2="-0.52359875"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="M 72.788858,-0.84280396 131.00076,99.983171 l -116.423807,-3e-6 z"
|
||||
inkscape:transform-center-y="-22.760568"
|
||||
transform="matrix(1.0686039,0,0,1.0686039,135.41752,2.8771004)"
|
||||
inkscape:transform-center-x="1.3569128e-05" /><rect
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="rect8"
|
||||
width="94.178734"
|
||||
height="94.178734"
|
||||
x="311.57727"
|
||||
y="20.643959"
|
||||
ry="0" /><circle
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="path9"
|
||||
cx="67.73333"
|
||||
cy="67.73333"
|
||||
r="57.958187" /></g></svg>
|
||||
|
After Width: | Height: | Size: 6.2 KiB |
18
assets/icons/d10.svg
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="135.46666mm"
|
||||
height="135.46666mm"
|
||||
viewBox="0 0 135.46666 135.46666"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xml:space="preserve"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||
id="defs1" /><g
|
||||
id="layer1"
|
||||
transform="translate(-581.86667)"><path
|
||||
id="path6"
|
||||
style="fill:#ffffff;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
d="M 649.59993,5.6855819 703.25785,48.872462 V 87.867475 L 649.59993,127.62112 595.94202,87.867472 V 48.87246 Z" /></g></svg>
|
||||
|
After Width: | Height: | Size: 663 B |
19
assets/icons/d12.svg
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="135.46666mm"
|
||||
height="135.46666mm"
|
||||
viewBox="0 0 135.46666 135.46666"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xml:space="preserve"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||
id="defs1" /><g
|
||||
id="layer1"
|
||||
transform="translate(-727.33333)"><path
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="path7"
|
||||
d="M 72.788858,-0.84280396 136.71632,45.603221 112.2982,120.75446 l -79.018692,0 L 8.861391,45.603217 Z"
|
||||
transform="matrix(0.89550761,0,0,0.89550761,729.88365,7.3795082)" /></g></svg>
|
||||
|
After Width: | Height: | Size: 743 B |
19
assets/icons/d2.svg
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="135.46666mm"
|
||||
height="135.46666mm"
|
||||
viewBox="0 0 135.46666 135.46666"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xml:space="preserve"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||
id="defs1" /><g
|
||||
id="layer1"><circle
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="path9"
|
||||
cx="67.73333"
|
||||
cy="67.73333"
|
||||
r="57.958187" /></g></svg>
|
||||
|
After Width: | Height: | Size: 584 B |
19
assets/icons/d20.svg
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="135.46666mm"
|
||||
height="135.46666mm"
|
||||
viewBox="0 0 135.46666 135.46666"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xml:space="preserve"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||
id="defs1" /><g
|
||||
id="layer1"
|
||||
transform="translate(-872.79996)"><path
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="path1"
|
||||
d="m 72.788858,-0.84280396 58.211902,33.60865896 0,67.217316 -58.211905,33.608659 -58.211902,-33.608662 1e-6,-67.217316 z"
|
||||
transform="matrix(0.90520643,0,0,0.90520643,874.64437,5.1307506)" /></g></svg>
|
||||
|
After Width: | Height: | Size: 761 B |
19
assets/icons/d4.svg
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="135.46666mm"
|
||||
height="135.46666mm"
|
||||
viewBox="0 0 135.46666 135.46666"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xml:space="preserve"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||
id="defs1" /><g
|
||||
id="layer1"
|
||||
transform="translate(-145.46666)"><path
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="path8"
|
||||
d="M 72.788858,-0.84280396 131.00076,99.983171 l -116.423807,-3e-6 z"
|
||||
transform="matrix(1.0686039,0,0,1.0686039,135.41752,2.8771004)" /></g></svg>
|
||||
|
After Width: | Height: | Size: 706 B |
22
assets/icons/d6.svg
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="135.46666mm"
|
||||
height="135.46666mm"
|
||||
viewBox="0 0 135.46666 135.46666"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xml:space="preserve"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||
id="defs1" /><g
|
||||
id="layer1"
|
||||
transform="translate(-290.93332)"><rect
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="rect8"
|
||||
width="94.178734"
|
||||
height="94.178734"
|
||||
x="311.57727"
|
||||
y="20.643959"
|
||||
ry="0" /></g></svg>
|
||||
|
After Width: | Height: | Size: 665 B |
19
assets/icons/d8.svg
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="135.46666mm"
|
||||
height="135.46666mm"
|
||||
viewBox="0 0 135.46666 135.46666"
|
||||
version="1.1"
|
||||
id="svg1"
|
||||
xml:space="preserve"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||
id="defs1" /><g
|
||||
id="layer1"
|
||||
transform="translate(-436.40001)"><path
|
||||
style="fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-linecap:round;stroke-linejoin:round"
|
||||
id="path5"
|
||||
d="M 72.788858,-0.84280396 140.00617,66.374514 72.788855,133.59183 5.5715408,66.37451 Z"
|
||||
transform="matrix(0.88610748,0,0,0.88610748,439.63457,7.7184047)" /></g></svg>
|
||||
|
After Width: | Height: | Size: 727 B |
4
justfile
|
|
@ -3,7 +3,7 @@ build:
|
|||
cmake --build build
|
||||
|
||||
run:
|
||||
cd bin/ && CHANGEME
|
||||
cd bin/ && dice-gui
|
||||
|
||||
configure:
|
||||
# CONFIGURING WITH PREMAKE
|
||||
|
|
@ -16,4 +16,4 @@ clean:
|
|||
|
||||
set-project-name projectname: clean
|
||||
git remote set-url origin ""
|
||||
sed -i "s/CHANGEME/{{projectname}}/g" ./CMakeLists.txt ./justfile
|
||||
sed -i "s/dice-gui/{{projectname}}/g" ./CMakeLists.txt ./justfile
|
||||
|
|
|
|||