Sven Balzer
fc88859eaf
only upload data to texture if *data is not NULL
...
refactor create_shader_texture(path) to use the other create_shader_texture(name, data, width. height, channels)
2025-03-17 08:17:54 +01:00
Sven Balzer
cdf6cf00a8
make other sampling the default
2025-03-16 21:23:34 +01:00
Sven Balzer
5b6d83ed90
add other filtering option for comparison
2025-03-16 21:04:00 +01:00
Sven Balzer
6a7f54ca5a
convert indentation to spaces
2025-03-16 18:56:40 +01:00
fd11d177c1
rename corner code
2025-03-16 17:34:28 +01:00
98844b6094
add new sprites
2025-03-16 17:26:21 +01:00
Sven Balzer
31823101a5
add msaa toggle
2025-03-16 16:06:52 +01:00
Sven Balzer
45ca42df99
mark things as static
2025-03-16 12:14:40 +01:00
Sven Balzer
1220cf6e7a
add tracy memory tracking to SDL
2025-03-16 12:10:00 +01:00
Sven Balzer
f1ffbbcfda
change camera defaults
2025-03-16 08:08:41 +01:00
Sven Balzer
ad37f333ae
remove atlas_item from tile info
2025-03-16 08:07:31 +01:00
Sven Balzer
93708f37b8
make dual grid always be active
2025-03-16 07:49:19 +01:00
Sven Balzer
4b3ca3e673
inline PI for msvc
2025-03-15 16:22:50 +01:00
Sven Balzer
755befb89d
destroy tile atlas structure after it is not needed anymore
2025-03-15 11:29:12 +01:00
Sven Balzer
ce90ecdaea
add tracy
2025-03-15 11:28:57 +01:00
Sven Balzer
b9a52da265
add a dual grid toggle
2025-03-13 05:55:17 +01:00
Sven Balzer
57f6926d6f
make tile border 4 wide and enable anisotropic filtering
2025-03-12 06:26:52 +01:00
Sven Balzer
0043563f7d
add the ability to drag tile changes
2025-03-11 11:31:08 +01:00
Sven Balzer
2ad30458bf
add camera tilt
2025-03-11 09:16:17 +01:00
Sven Balzer
e77086601b
clean up math_graphics.h
2025-03-09 20:34:08 +01:00
Sven Balzer
5016f906ea
fix projection of mouse into view space
2025-03-09 20:34:07 +01:00
Sven Balzer
88da989ad7
major refactor and add a camera
...
change asset loading of images to be sRGB
use wayland by default on linux unless we are running under renderdoc
changed shaders to be combined vertex and fragment in a single file
require Vulkan 1.3 and enable shaderDrawParameters
2025-03-08 19:39:48 +01:00
Sven Balzer
ebddc0dfe2
add random rotation option
2025-02-28 16:16:21 +01:00
Sven Balzer
0d875d23ae
make tiles rotatable
2025-02-28 16:05:51 +01:00
Sven Balzer
7b9db0b16b
add grass_ground_1 tile
2025-02-27 18:22:05 +01:00
Sven Balzer
3c02064f2b
make new map tiles be empty by default and only expand map by one row/column
2025-02-27 18:15:35 +01:00
Sven Balzer
08e3dfd9d3
add tile selector
2025-02-27 18:01:06 +01:00
Sven Balzer
1c8a65e8ad
change tiles from a texture array to a texture atlas
2025-02-27 18:01:06 +01:00
Sven Balzer
2d583d8f72
put the player in the same tile that gets collision checked
2025-02-27 18:01:06 +01:00
Sven Balzer
095f94b098
make the imgui window not be focused by default and put math_graphics into a namespace
2025-02-27 18:01:06 +01:00
Sven Balzer
526316a928
center player in tile again
2025-02-25 20:03:52 +01:00
Sven Balzer
5b29a2bd5b
fix crash on minimize
2025-02-25 19:36:25 +01:00
Sven Balzer
920f93ea7a
change tiles to be actually square
2025-02-25 19:27:25 +01:00
97ff0726c9
change tile structure
2025-02-25 19:16:18 +01:00
Sven Balzer
2d5b36bbef
change colorspace of sprites back to linear
2025-02-25 18:49:35 +01:00
Sven Balzer
f4418d94d9
remove quad_instance
2025-02-25 17:25:36 +01:00
Sven Balzer
b1e657abc3
remove typedefs in favor of SDL ones
2025-02-25 16:56:12 +01:00
Sven Balzer
3e32ebd62b
convert assets to png and switch to srgb color loading
2025-02-25 14:09:25 +01:00
Sven Balzer
2e2572a769
get rid of glyphs
2025-02-25 13:28:33 +01:00
Sven Balzer
f2b992a39d
add imgui
2025-02-25 13:23:17 +01:00
Sven Balzer
c70a9a245b
fix for c++20 on linux
2025-02-25 12:58:19 +01:00
Sven Balzer
74e0d78a4c
change build system to CMake and use SDL3 for everything
2025-02-24 19:56:47 +01:00
mikeb
c7a9c2f78f
math_graphics.h angepasst;
...
lerp angepasst;
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@21 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-07-27 16:28:15 +00:00
mikeb
efc6477180
Anpassung Window Größe und Spielfeld
...
-> gleiche Ratio (16:9);
Neue math_graphics.h Funktionen (Aufräumen);
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@20 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-07-26 16:28:42 +00:00
mikeb
b603d997cf
Glyph output -> single Glyphs;
...
read bmp file (via stb, m_header is coming later)
-> stb_image.h;
added monochrom imagetype (load_tga_file);
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@19 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-07-18 13:09:44 +00:00
mikeb
70a9074415
glyphs_project for text rendering
...
-> render text image -> gylp_map
-> stb_image_write.h und stb_rect_pack.h;
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@18 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-07-17 11:16:57 +00:00
mikeb
1f91eb9cf1
font_creator project for font loading;
...
init font_main + "stbtt_InitFont";
Lexend-Regular.ttf as normal font;
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@17 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-07-03 17:31:05 +00:00
mikeb
ce923a77fb
UV Texturkoordinaten ergaenzt;
...
V2 struct fuer UV Koordinaten ergaenzt;
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@16 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-06-30 16:00:14 +00:00
mikeb
0f6bfcdc4b
added render_quad -> button + text rendering;
...
how to draw with directX;
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@15 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-03-04 15:16:57 +00:00
mikeb
00d9c03843
refactoring -> change_map_size
...
git-svn-id: svn://ammerhai.com/home/mike/pokemon_repo@12 24008968-59e6-ed4c-a10b-0b2c954b24ab
2021-03-02 16:13:32 +00:00