Stephen Gregoratto
9207839c80
Fix building on Windows
...
- Drop linking opengl32/glew32.libs using `#pragma`s in favour of
specifing the libraries at build time.
- Use check for the `WIN32` macro when including Windows specific
headers in `src/render_gl.c`.
- Undefine the `min`, `max`, `near`, and `far` macros when building on
Windows.
2023-09-02 22:40:41 +10:00
Dominic Szablewski
ecf1e63508
Do some culling based on camera direction
2023-09-01 19:04:27 +02:00
Dominic Szablewski
9e90c4768f
Merge pull request #63 from BeWorld2018/fix
...
Fix memory leak on exit
2023-09-01 14:11:44 +02:00
BeWorld
aa06570a05
Move SDL_DestroyWindow in main()
2023-09-01 14:10:24 +02:00
BeWorld
07d8a37afd
Destroy Window and Renderer
2023-09-01 10:26:56 +02:00
BeWorld
c8bf7c82f7
Add SDL_GameContrllerClose
...
Fix memory leak
2023-08-31 12:57:31 +02:00
Dominic Szablewski
cf68eab8b2
Merge pull request #60 from tjrileywisc/change-app-name
...
Rename sokol app window for consistency
2023-08-31 12:12:26 +02:00
Timothy Riley
61ffe2f410
Rename sokol app window for consistency
2023-08-31 00:07:49 -04:00
Dominic Szablewski
98bd55a342
WASM: add touch controls
2023-08-30 17:40:50 +02:00
Dominic Szablewski
a84982b31e
Shutdown sokol audio on exit
2023-08-30 17:24:26 +02:00
Dominic Szablewski
a3b156ef30
Properly free sdl paths on exit
2023-08-30 17:23:59 +02:00
Dominic Szablewski
2c5c3d3f13
Use US spelling of "color" everywhere
2023-08-30 12:38:34 +02:00
Dominic Szablewski
69122122f0
Remove unused color union fields
2023-08-30 12:34:52 +02:00
Dominic Szablewski
530fb40fb7
Remove obsolete TRACK_*_MAX defines and struct fields
2023-08-30 12:25:17 +02:00
Dominic Szablewski
2430297998
Make track vertex color loading endian agnostic; see #56
2023-08-30 12:21:10 +02:00
Dominic Szablewski
4b1fa81f30
Make image loading a bit faster by doing the color conversion for each palette entry just once
2023-08-28 18:09:34 +02:00
Dominic Szablewski
97a1073946
Fix TIM palette loading; see #56
2023-08-28 18:02:03 +02:00
Dominic Szablewski
4c76aadf80
Fix audio on big endian machines; see #56
2023-08-28 17:22:48 +02:00
Dominic Szablewski
78f452decf
Add USER_CFLAGS to allow specifying additional defines; see #53
2023-08-28 16:48:47 +02:00
Dominic Szablewski
108cfac9dc
Use Use appropriate platform-specific paths for assets and userdata; close #10 , #53 , #47
...
This commit also allows overriding these path at build time through
-DPATH_ASSETS=.. and -DPATH_USERDATA=..
2023-08-28 16:39:51 +02:00
Dominic Szablewski
18ebcc7457
Make loading palette colors in TIM images endian agnostic; see #56
2023-08-28 14:29:39 +02:00
Dominic Szablewski
209c1fd627
Add ALT+Enter hotkey to toggle fullscreen; close #45
2023-08-27 12:52:58 +02:00
Dominic Szablewski
da4d3b5c0c
Prevent int overflow when projecting target reticle on screen; close #48
2023-08-26 17:49:42 +02:00
Dominic Szablewski
41399234f6
Merge pull request #37 from jantlo/avoid_draw_sections_more_than_once
...
Avoid rendering more than once those track sections in tracks with alternative paths.
2023-08-23 23:31:43 +02:00
Juan Lopez
6170976e6a
Avoid rendering more than once those track sections in tracks with alternative paths.
2023-08-23 23:08:23 +02:00
Dominic Szablewski
e9f91c57f0
Remove obsolete -rdynamic flag
2023-08-23 18:26:23 +02:00
Juan Lopez
6fcd669733
Added support build on Windows under the MSYS2 enviroment.
2023-08-21 22:14:59 +02:00
Dominic Szablewski
9f0e6454bf
Remove implemented things from todo list; fix wording for required files ( #34 )
2023-08-21 20:40:34 +02:00
Dominic Szablewski
5e0cd76948
Initialize joysticks and support loading gamecontrollerdb.txt; see #26
2023-08-21 13:07:39 +02:00
Dominic Szablewski
4c1e50939e
Add mapping game controller guide button; see #26
2023-08-19 23:40:02 +02:00
Dominic Szablewski
a721eec118
Fix championship rank calculation
2023-08-19 21:30:15 +02:00
Dominic Szablewski
8c9ec8871e
Fix makefile to pick up changes in headers
2023-08-18 19:32:41 +02:00
Dominic Szablewski
59ebb89ed2
Blink current menu item 30x per second; see #31
2023-08-18 19:09:28 +02:00
Dominic Szablewski
dae45b786a
Show correct team logo in team selection menu; close #32
2023-08-18 18:46:34 +02:00
Dominic Szablewski
7760f83ce1
Add software rendering backend as a demo
2023-08-16 22:55:04 +02:00
Dominic Szablewski
b2e3ae80dd
Add button bindings to save data, add controls menu; close #6
2023-08-15 23:42:51 +02:00
Dominic Szablewski
0ded93de55
Allow for A_MENU_START to select in menu; add A_MENU_QUIT to go back
2023-08-15 23:37:05 +02:00
Dominic Szablewski
24b6efd3ea
Fix input problems when rebinding input
2023-08-15 23:35:02 +02:00
Dominic Szablewski
0e3422d345
Rename buttons for presentation in menu
2023-08-15 23:20:23 +02:00
Dominic Szablewski
6c85526fcd
Hide mouse cursor in fullscreen; close #23
2023-08-15 19:44:58 +02:00
Dominic Szablewski
5314d92ec6
[Sokol] Lower audio buffer size to prevent audio lag.
2023-08-15 19:32:47 +02:00
Dominic Szablewski
3142dfd841
Merge pull request #24 from vanfanel/lower_audiobuffer
...
[SDL2] Lower audio buffer size to prevent audio lag.
2023-08-15 19:32:15 +02:00
vanfanel
d1a412594c
[SDL2] Lower audio buffer size to prevent audio lag.
2023-08-15 18:18:04 +01:00
Dominic Szablewski
676d4ef6ee
Use glGenTextures() and glFramebufferTexture2D() everywhere instead of creating stubs; close #20
2023-08-15 18:04:05 +02:00
Dominic Szablewski
5fcf2feec8
Fix check for projectiles - acceleration in either horizontal axis is sufficient
2023-08-15 17:51:57 +02:00
Dominic Szablewski
d7204cad0f
Remove obsolete/debug code
2023-08-15 17:50:34 +02:00
Dominic Szablewski
ba2222775a
Whitespace
2023-08-15 17:48:43 +02:00
vanfanel
13d1463112
Add modern GLVND and explicit GLES2 support in GNU/Linux
2023-08-15 12:37:01 +01:00
Dominic Szablewski
cb2a1eded3
Merge pull request #9 from ekirchman/dev
...
Add build intructions for Fedora Linux
2023-08-14 08:39:13 +02:00
ekirchman
52bdfe3e8b
Added build intructions for Fedora Linux
2023-08-13 18:43:03 -05:00