Commit graph

140 commits

Author SHA1 Message Date
6fa58683ad fix(glsdl): use SDL2 'centered' values for new window 2024-07-22 16:15:35 -04:00
1b4f1dba86 fix(gx): simplified gx device creation according to api enum 2024-07-22 01:21:08 -04:00
5229b9b972 fix(gx): only use GLSDL if compiled with CMake variable WHOA_BUILD_GLSDL 2024-07-22 00:43:39 -04:00
d067eb1ae2 feat(build): UBsan can be enabled or disabled with WHOA_UB_SAN. GLSDL can be toggled with WHOA_BUILD_GLSDL 2024-07-21 20:04:32 -04:00
2a46ce4d6d feat(build): to compile with FMOD support, WHOA_BUILD_FMOD must be passed into CMake 2024-07-21 18:39:52 -04:00
5f3eadea1e fix(font): specify 'std' namespace when accessing floor() to avoid double function 2024-07-21 18:30:33 -04:00
20f392cd74 chore(build): make Thunderbrew zig-buildable 2024-07-21 16:41:14 -04:00
c6e2947506 fix(gx): size_t is declared in <cstddef>, not <cstdint> 2024-03-29 22:53:29 -04:00
64f20e6fee fix(gx): removed some bad class declaration 2024-03-29 22:47:30 -04:00
f81a6fb92b fix(gx): dispatch SDL window events in SceneClear() 2024-03-05 16:39:45 -05:00
2fb754a83a refactor(thunderbrew): use static size members instead of null-termination to delimit FrameScript_Method arrays 2024-03-05 16:24:33 -05:00
VDm
32cfe08d0b
feat(sound): Small script related improvements
* chore(build): rename src/util/Log.* to SysMessage.*

* chore(ui): implement SetNonSpaceWrap() for error messages

* chore(ui): move Video Script methods into CGVideoOptions class

* chore(script): temporary fix GetNumOutputDrivers to eliminate loading errors

* feat(sound): add SI2 Log methods

* chore(sound): add SI2 CVars

* chore(ui): implement Script_PlayGlueMusic

* chore(sound): update SI2::Init()

* fix: resolve compilation errors in variadic macros SI2_ERR and SI2_LOG

---------

Co-authored-by: Tristan Cormier <cormiert2@outlook.com>
2024-03-05 15:53:07 -05:00
8596860120 fix(glsdl): move SDL event dispatching to different function 2024-03-05 01:52:10 -05:00
e20f185f75 fix(gx): file pointer should be initialized to nullptr because its value is used as a condition 2024-02-17 21:29:01 -05:00
0f04abb9de fix(gx): remove stub NewGLSDL when compiling for macOS 2023-12-16 21:03:53 -05:00
073c7d7dc0 fix(gx): CGxDeviceGLSDL should set its gxApi value to GxApi_GLSDL 2023-12-10 19:19:03 -05:00
6bf87c4f2d feat(gx): detach CGxDeviceGLSDL from GxApi_OpenGl handling 2023-12-10 19:04:57 -05:00
f03ea10648 fix(gx): create CGxDeviceGLSDL using GxApi_GLSDL 2023-12-10 18:55:04 -05:00
bd9e145557 feat(gx): add EGxApi value GxApi_GLSDL 2023-12-10 18:53:52 -05:00
1570d3dc99 fix(gx): create GLSDL graphics device on Linux 2023-12-02 12:28:53 -05:00
b379e06194 fix(gx): add missing include <cstring> 2023-12-02 12:18:48 -05:00
56439993ba feat(gx): implement GLSDLDevice::SetScissor 2023-11-30 22:32:07 -05:00
1620994f02 fix(gx): typo 2023-11-30 16:13:08 -05:00
47b9878e3e fix(gx): restore old behavior to GLSDL 2023-11-30 16:11:40 -05:00
29edb4e032 fix(gx): return fallback sample count 2023-11-26 15:38:57 -05:00
697f3ca9f6 fix(gx): disable unused code block pertaining to multisamples 2023-11-26 15:12:00 -05:00
bf0fa09160 fix(gx): do glFlush() before swapping buffers 2023-11-26 15:11:22 -05:00
3da866cfb0 fix(gx): include CGxDeviceGLSDL 2023-11-26 14:52:03 -05:00
884d208bd0 feat(gx): resize GLSDL window with SDL resize event 2023-11-26 14:51:01 -05:00
21dcc7d8ae feat(gx): handle SDL window resize event 2023-11-26 14:42:47 -05:00
dbac391d9e fix(gx): change charactersize to int32 2023-11-26 12:43:31 -05:00
2dd65b2b5d fix(gx): SUniSGetUTF8, not SUniGetUTF8 2023-11-26 12:25:07 -05:00
18572b35fc fix(gx): include <storm/Unicode.hpp 2023-11-26 12:22:36 -05:00
a336165cef feat(gx): translate SDL_TextInput events into OS_INPUT_CHAR events 2023-11-26 12:13:32 -05:00
c0d5e2a0c8 feat(gx): GLSDL window closes upon SDL_EVENT_QUIT 2023-11-24 23:52:34 -05:00
73912ed71a feat(gx): correct translation of mouse button index 2023-11-24 23:51:01 -05:00
49bc9d5d8b feat(gx): GLSDL window dispatches mouse button events 2023-11-24 23:25:58 -05:00
eccf4db2e0 feat(gx): GLSDL window dispatches mouse and key events to input queue 2023-11-24 19:33:48 -05:00
ec66da49c5 fix(gx): when not on Windows or Linux, use dummy NewOpenGl 2023-11-18 11:30:06 -05:00
706c8903a1
feat(gx): add incomplete 'CGxDeviceGLSDL' (#2)
* chore(build): add vendored SDL 3.0.0 library

* chore(build): add vendored glew-cmake-2.2.0 library

* feat(console): in the presence of -opengl launch flag, change GxApi to OpenGl

* feat(gx): add uncompleted CGxDeviceGLSDL targeting Windows and Linux

* chore(build): change SDL3 linkage from shared (bad) to to static (good)
2023-11-18 10:50:16 -05:00
8a7d89b52f feat(gx): implement GxuFontClearBatch 2023-08-16 19:24:24 -04:00
fallenoak
bc1ce52f7d
chore(gx): use uint32_t union member in CGxStateBom when appropriate 2023-04-17 16:52:11 -05:00
fallenoak
58272f1212
chore(gx): clean up function declarations in GLDevice 2023-04-17 12:16:38 -05:00
fallenoak
01ca76788c
chore(gx): clean up member function declarations in CGxMatrixStack 2023-04-15 21:23:03 -05:00
fallenoak
912d643e9c
chore(gx): add flag enum to CGxMatrixStack 2023-04-15 21:21:27 -05:00
fallenoak
d67e13087a
feat(gx): sync viewport in d3d backend 2023-04-15 13:56:49 -05:00
fallenoak
37996fa79c
feat(gx): set marker when viewport changes 2023-04-15 12:36:57 -05:00
fallenoak
5174970b24
feat(gx): sync projection and view xforms in d3d backend 2023-04-15 12:14:33 -05:00
fallenoak
c0e623d02b
feat(gx): add const getter for top of matrix stack 2023-04-15 10:32:07 -05:00
fallenoak
4a1101bd7d
feat(gx): stub ffp state syncing in d3d backend 2023-04-15 10:04:29 -05:00