├── .clang-format ├── .gitmodules ├── 3rdparty ├── CMakeLists.txt └── stb │ ├── CMakeLists.txt │ ├── LICENSE │ ├── stb_image.c │ ├── stb_image.h │ ├── stb_truetype.c │ ├── stb_truetype.h │ ├── stb_vorbis.c │ └── stb_vorbis.h ├── CMakeLists.txt ├── TODO ├── assets ├── data │ ├── techgraph.json │ └── theme.json ├── images │ ├── carbon-sm.png │ ├── carbon.png │ ├── energy-sm.png │ ├── energy.png │ ├── extropy-sm.png │ ├── extropy.png │ ├── material-sm.png │ └── material.png └── shaders │ ├── circle.frag │ ├── circle.vert │ ├── circlegauge.frag │ ├── circlegauge.vert │ ├── decal.frag │ ├── decal.vert │ ├── glowcircle.frag │ ├── glowcircle.vert │ ├── text.frag │ ├── text.vert │ ├── thickline.frag │ └── thickline.vert ├── game ├── CMakeLists.txt ├── abstracttexture.h ├── fontcache.cpp ├── fontcache.h ├── gamewindow.cpp ├── gamewindow.h ├── ioutil.cpp ├── ioutil.h ├── lazytexture.cpp ├── lazytexture.h ├── loadprogram.cpp ├── loadprogram.h ├── main.cpp ├── noncopyable.h ├── pixeltype.h ├── pixmap.cpp ├── pixmap.h ├── shadermanager.cpp ├── shadermanager.h ├── shaderprogram.cpp ├── shaderprogram.h ├── spritebatcher.cpp ├── spritebatcher.h ├── techgraph.cpp ├── techgraph.h ├── texture.cpp ├── texture.h ├── textureatlas.cpp ├── textureatlas.h ├── textureatlaspage.cpp ├── textureatlaspage.h ├── theme.cpp ├── theme.h ├── tst_textbox.cpp ├── tst_textrendering.cpp ├── tween.h ├── uipainter.cpp ├── uipainter.h ├── util.h ├── world.cpp └── world.h └── tools ├── CMakeLists.txt └── editor ├── CMakeLists.txt ├── autoadjustdialog.cpp ├── autoadjustdialog.h ├── autolayoutdialog.cpp ├── autolayoutdialog.h ├── boostwidget.cpp ├── boostwidget.h ├── costwidget.cpp ├── costwidget.h ├── editorwindow.cpp ├── editorwindow.h ├── main.cpp ├── techgraph.cpp ├── techgraph.h ├── techgraphview.cpp ├── techgraphview.h ├── unitsettingswidget.cpp └── unitsettingswidget.h /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/.clang-format -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/.gitmodules -------------------------------------------------------------------------------- /3rdparty/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/3rdparty/CMakeLists.txt -------------------------------------------------------------------------------- /3rdparty/stb/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/3rdparty/stb/CMakeLists.txt -------------------------------------------------------------------------------- /3rdparty/stb/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/3rdparty/stb/LICENSE -------------------------------------------------------------------------------- /3rdparty/stb/stb_image.c: -------------------------------------------------------------------------------- 1 | #define STB_IMAGE_IMPLEMENTATION 2 | #include "stb_image.h" 3 | -------------------------------------------------------------------------------- /3rdparty/stb/stb_image.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/3rdparty/stb/stb_image.h -------------------------------------------------------------------------------- /3rdparty/stb/stb_truetype.c: -------------------------------------------------------------------------------- 1 | #define STB_TRUETYPE_IMPLEMENTATION 2 | #include "stb_truetype.h" 3 | -------------------------------------------------------------------------------- /3rdparty/stb/stb_truetype.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/3rdparty/stb/stb_truetype.h -------------------------------------------------------------------------------- /3rdparty/stb/stb_vorbis.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/3rdparty/stb/stb_vorbis.c -------------------------------------------------------------------------------- /3rdparty/stb/stb_vorbis.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/3rdparty/stb/stb_vorbis.h -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/TODO -------------------------------------------------------------------------------- /assets/data/techgraph.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/data/techgraph.json -------------------------------------------------------------------------------- /assets/data/theme.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/data/theme.json -------------------------------------------------------------------------------- /assets/images/carbon-sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/images/carbon-sm.png -------------------------------------------------------------------------------- /assets/images/carbon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/images/carbon.png -------------------------------------------------------------------------------- /assets/images/energy-sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/images/energy-sm.png -------------------------------------------------------------------------------- /assets/images/energy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/images/energy.png -------------------------------------------------------------------------------- /assets/images/extropy-sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/images/extropy-sm.png -------------------------------------------------------------------------------- /assets/images/extropy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/images/extropy.png -------------------------------------------------------------------------------- /assets/images/material-sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/images/material-sm.png -------------------------------------------------------------------------------- /assets/images/material.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/images/material.png -------------------------------------------------------------------------------- /assets/shaders/circle.frag: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/shaders/circle.frag -------------------------------------------------------------------------------- /assets/shaders/circle.vert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/shaders/circle.vert -------------------------------------------------------------------------------- /assets/shaders/circlegauge.frag: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/shaders/circlegauge.frag -------------------------------------------------------------------------------- /assets/shaders/circlegauge.vert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/shaders/circlegauge.vert -------------------------------------------------------------------------------- /assets/shaders/decal.frag: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/shaders/decal.frag -------------------------------------------------------------------------------- /assets/shaders/decal.vert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/shaders/decal.vert -------------------------------------------------------------------------------- /assets/shaders/glowcircle.frag: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/shaders/glowcircle.frag -------------------------------------------------------------------------------- /assets/shaders/glowcircle.vert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/shaders/glowcircle.vert -------------------------------------------------------------------------------- /assets/shaders/text.frag: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/shaders/text.frag -------------------------------------------------------------------------------- /assets/shaders/text.vert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/shaders/text.vert -------------------------------------------------------------------------------- /assets/shaders/thickline.frag: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/shaders/thickline.frag -------------------------------------------------------------------------------- /assets/shaders/thickline.vert: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/assets/shaders/thickline.vert -------------------------------------------------------------------------------- /game/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/CMakeLists.txt -------------------------------------------------------------------------------- /game/abstracttexture.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/abstracttexture.h -------------------------------------------------------------------------------- /game/fontcache.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/fontcache.cpp -------------------------------------------------------------------------------- /game/fontcache.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/fontcache.h -------------------------------------------------------------------------------- /game/gamewindow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/gamewindow.cpp -------------------------------------------------------------------------------- /game/gamewindow.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/gamewindow.h -------------------------------------------------------------------------------- /game/ioutil.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/ioutil.cpp -------------------------------------------------------------------------------- /game/ioutil.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/ioutil.h -------------------------------------------------------------------------------- /game/lazytexture.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/lazytexture.cpp -------------------------------------------------------------------------------- /game/lazytexture.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/lazytexture.h -------------------------------------------------------------------------------- /game/loadprogram.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/loadprogram.cpp -------------------------------------------------------------------------------- /game/loadprogram.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/loadprogram.h -------------------------------------------------------------------------------- /game/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/main.cpp -------------------------------------------------------------------------------- /game/noncopyable.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/noncopyable.h -------------------------------------------------------------------------------- /game/pixeltype.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/pixeltype.h -------------------------------------------------------------------------------- /game/pixmap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/pixmap.cpp -------------------------------------------------------------------------------- /game/pixmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/pixmap.h -------------------------------------------------------------------------------- /game/shadermanager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/shadermanager.cpp -------------------------------------------------------------------------------- /game/shadermanager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/shadermanager.h -------------------------------------------------------------------------------- /game/shaderprogram.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/shaderprogram.cpp -------------------------------------------------------------------------------- /game/shaderprogram.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/shaderprogram.h -------------------------------------------------------------------------------- /game/spritebatcher.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/spritebatcher.cpp -------------------------------------------------------------------------------- /game/spritebatcher.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/spritebatcher.h -------------------------------------------------------------------------------- /game/techgraph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/techgraph.cpp -------------------------------------------------------------------------------- /game/techgraph.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/techgraph.h -------------------------------------------------------------------------------- /game/texture.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/texture.cpp -------------------------------------------------------------------------------- /game/texture.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/texture.h -------------------------------------------------------------------------------- /game/textureatlas.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/textureatlas.cpp -------------------------------------------------------------------------------- /game/textureatlas.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/textureatlas.h -------------------------------------------------------------------------------- /game/textureatlaspage.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/textureatlaspage.cpp -------------------------------------------------------------------------------- /game/textureatlaspage.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/textureatlaspage.h -------------------------------------------------------------------------------- /game/theme.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/theme.cpp -------------------------------------------------------------------------------- /game/theme.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/theme.h -------------------------------------------------------------------------------- /game/tst_textbox.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/tst_textbox.cpp -------------------------------------------------------------------------------- /game/tst_textrendering.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/tst_textrendering.cpp -------------------------------------------------------------------------------- /game/tween.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/tween.h -------------------------------------------------------------------------------- /game/uipainter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/uipainter.cpp -------------------------------------------------------------------------------- /game/uipainter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/uipainter.h -------------------------------------------------------------------------------- /game/util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/util.h -------------------------------------------------------------------------------- /game/world.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/world.cpp -------------------------------------------------------------------------------- /game/world.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/game/world.h -------------------------------------------------------------------------------- /tools/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(editor) 2 | -------------------------------------------------------------------------------- /tools/editor/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/CMakeLists.txt -------------------------------------------------------------------------------- /tools/editor/autoadjustdialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/autoadjustdialog.cpp -------------------------------------------------------------------------------- /tools/editor/autoadjustdialog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/autoadjustdialog.h -------------------------------------------------------------------------------- /tools/editor/autolayoutdialog.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/autolayoutdialog.cpp -------------------------------------------------------------------------------- /tools/editor/autolayoutdialog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/autolayoutdialog.h -------------------------------------------------------------------------------- /tools/editor/boostwidget.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/boostwidget.cpp -------------------------------------------------------------------------------- /tools/editor/boostwidget.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/boostwidget.h -------------------------------------------------------------------------------- /tools/editor/costwidget.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/costwidget.cpp -------------------------------------------------------------------------------- /tools/editor/costwidget.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/costwidget.h -------------------------------------------------------------------------------- /tools/editor/editorwindow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/editorwindow.cpp -------------------------------------------------------------------------------- /tools/editor/editorwindow.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/editorwindow.h -------------------------------------------------------------------------------- /tools/editor/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/main.cpp -------------------------------------------------------------------------------- /tools/editor/techgraph.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/techgraph.cpp -------------------------------------------------------------------------------- /tools/editor/techgraph.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/techgraph.h -------------------------------------------------------------------------------- /tools/editor/techgraphview.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/techgraphview.cpp -------------------------------------------------------------------------------- /tools/editor/techgraphview.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/techgraphview.h -------------------------------------------------------------------------------- /tools/editor/unitsettingswidget.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/unitsettingswidget.cpp -------------------------------------------------------------------------------- /tools/editor/unitsettingswidget.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xf00ff00f/zettawatt/HEAD/tools/editor/unitsettingswidget.h --------------------------------------------------------------------------------