* Start of supporting multiple platform drivers
* Remove dependency of null platform on SDL2
* cmake: support loading SDL2 dynamically
* Move CMake options to project root for SDL2::SDL2 access
* Don't link to OpenGL
* Move common dynamic loading to header
* Add SDL 1.2 platform
* Add SDL1 platform backend
* Remove accidental addition
* Try multiple platform drivers until we find a good one
* Fix sdl1 mouse
* Use my BRender fork FIXME FIXME FIXME REMOVEME REMOVEME REMOVEME
* Build dethrace supporting SDL1 on ci
* use dethrace-labs BRender fork
* Basic networking functions implemented to get the lobby functional
* Apply suggestions from code review
* PDNetObtainSystemUserName gets local system name
---------
Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
* Change type of DRPixelmapCleverText2 to char*
* Fix warnings emitted due to -Wreturn-type
* Fix BR_ONE_LS redefinition warning
* Fix warnings emitted by -Wparentheses
* Tag FatalError and PDFatalError with noreturn attribute, fixing -Wreturn-type warnings
* Fix string type of TransBrPixelmapText~
* Fix a few -Wmaybe-uninitialized warnings
* Fix -Wformat and -Wpointer-sign warnings in test_datafile.c
* Fix -Wshift-negative-value warning
* Fix -Wpointer-sign warning
* chdir is declared with attribute 'warn_unused_result'
* Fix -Wmaybe-uninitialized warning
* Fix -Warray-bounds warning
* Fix -Wmaybe-unitialized warning
* Fix -Wmaybe-unitialized warning
* Fix -Wmaybe-unitialized warning
* Fix -Wmaybe-unitialized warnings
* Fix a few -Wmaybe-uninitialized warnings
* cmake: unify warnings amongst gcc and clang
* fatalerror_fixup
* Fix -Wabsolute-value warning
* Fix all warnings when building with MinGW on Windows
* Fix warning caused by -Wimplicit-fallthrough
* Fix warnings caused by -Wcast-function-type
Fixes these types of warnings:
cast between incompatible function types from ‘br_uint_32 (*)(br_actor *, void *)’ {aka ‘unsigned int (*)(struct br_actor *, void *)’} to ‘intptr_t (*)(br_actor *, void *)’ {aka ‘long int (*)(struct br_actor *, void *)’} [-Wcast-function-type]
* Fix warning caused by -Wmissing-field-initializers
* Normalize direction_v vector and store in displacement
* dethrace: right align numbers in columns
* tools/progress.py: allow sorting on different keys
* brender: add BrPixelmapSave(Many)? to brender.h
* brender: add BrActorLoadMany and BrModelAddMany to brender.h
* brender: add BrWriteModeSet to brender.h header
* brender: define br_size_t as size_t
* brender: expose default order_table through header
* brender: sort tokens by value (and add _BRT_LAST_BUILTIN_TOKEN value)
* brender: diffusion factor of default material is 0.7
* brender; br_value_tag and br_lexer_token.v are unions
* brender: add all genclip functions
* brender: add all token functions
* brender: add assocarr functions
* brender: add lexer functions
* brender: add default model
* brender: add resource functions
* brender: fix BrMaterialAllocate
* brender: add logwrite functions
* brender: add brprintf functions
* brender: add missing file function (BrFileAttributes)
* brender: add BrAngleToDegrees define in br_defs.h
* brender: add image functions
* brender: implement all resreg functions
* brender: implement all pmnull methods
* dethrace: fix brender init string + other params
* brender: use BR_ASIZE when using pm_resourceClasses
* brender: implement all dbsetup functions
* dethrace: implement all input functions
* dethrace: implement various depth edit mode functions
* infra: add WARN_ONCE macro to avoid spamming the console
* dethrace: add enable/disable plingmaterials + add log message
* dethrace: Implement a few loading functions
* dethrace: implement PrintScreenFile + PrintScreen to write screen to BMP
* brender: 8 directories for image is a better default
* brender: Implement makeMeshFromBounds + add typedef for render callbacks
* brender: implement all functions in enables.c
* brender: implement all fwsetup functions
* brender: implement some prepmesh functions
* brender: implement all modsupt.c functions
* brender: use correct types in comparisons
* brender: add whitespace in brlists.c
* brender: actually return something in BrBoundsToMatrix34
* brender: implement all bswap functions
* brender: implement all brerxcept functions
* brender: Implement BrActorSearch + fix RenumberActor
'd' is the depth, it should be the same for all children
* dethrace: gMem_names contains empty strings instead of NULL
* dethrace: ServiceTheGame also does CheckMemory
* dethrace: implement DisposeActorMatrix + DisposeColumns
* dethrace: Implement TogglePedestrians + GetPedCount + GetPedPosition
* dethrace: implement a few superficial powerup functions
* dethrace: implement a few shading helper functions
* dethrace: implement a few world actor helper functions
* dethrace: InitNetGameplayStuff has empty implementation
* dethrace: implement + use DRPixelmapCentredText
* dethrace: display APO bars on HUD
* dethrace: do DoNewGameAnimation when starting a new race (=empty)
* dethrace: (Open|Close)Diagnostics are the first/last functions to run
* dethrace: implement RestoreCameraPosition
* dethrace: LoadOpponentMugShot does a MAMSLock
* dethrace: use enum value for gRace_over_reason
* dethrace: add withespace after LOG_TRACE
* dethrace: implement SetSmokeLastDamageLEvel + StealCar
* dethrace: implement ResetOilSpills
* dethrace: InitRace calls InitNetGameplayStuff
* dethrace: use COUNT_OF instead of magic number
* brender; br_value_tag and br_lexer_token.v are unions
* dethrace: implement options menu (missing graphics/controller/sound menu)
* dethrace: implement DrawRectangle + DrawRRectangle
* dethrace: implement (Set|Reset)NonFatalALlocationErrors + MAMSInitMem
* dethrace: Call MAMSInitMem() in InitialiseApplication
* dethrace: implement some flic accessor methods
* dethrace: implement getters to initialize the graphics options menu
* dethrace: implement graphics options menu
* dethrace: support saving options to file
* dethrace: implement AwardTime
* Add utility script to decode encrypted text file
* dethrace: implement Log2 + LoadDepthTable
* dethrace: replace number with their character equivalent
* dethrace: implement DimRectangle
Dimming the rectangles for the HUD is not working, because the renderer needs to write back to the back screen.
* dethrace: implement KillOldestQueuedHeadup
* resource: remove debug fflush
* modrend: fix comment
* depth: fix factor 2 bug
* loading: undefine BAIL_IF_NEGATIVE
* dbsetup: use macros for enabled types
* input: remove outdated comment
* Include windows.h before imagehlp.h
This fixes a long list of undefined type errors when building with mingw (on Linux).
* Remove matherr function
This function is provided by the c library.
* Use GetFileAttributesA to filter files
dirent->d_type is not available in all implementation.
Posix only mandates the fields d_name and d_ino.
* Use FindOpenGL.cmake to get the opengl library
Mingw has no libGL.so, but has libopengl32.a. Use the CMake module to abstract this away.
* harness needs to link to dbghelp
This fixes undefined references to:
__imp_SymInitialize, __imp_SymGetModuleBase64,
__imp_SymFunctionTableAccess64, __imp_StackWalk64 and __imp_SymCleanup.
* Don't add -g to compile options.
CMAKE_BUILD_TYPE=(Debug|RelWithDebInfo) takes care of this
* Set test file name before running tests in suite.
This causes the message to contain the correct file name where an assertion failed/succeeded.
* Use wrapper to sleep for number on seconds in tests
sleep on Windows expects milliseconds.
sleep on Posix expects seconds.
* Use char* instead of void*
MSVC complained that it couldn't determine the size of void
* Don't test state of removed resource after deletion when building Debug
When building in Debug configuration, the compiler may mark deleted memory ranges with some value.
Therefore, we cannot expect deleted memory to remain unchanged.
(MSVC in Debug mode does this)
* Use helper to get system temporary folder.
Using /tmp on Windows failed hard.
* Header containing sse3 intrinsics is pmmintrin.h
See https://github.com/recp/cglm/pull/234
* Add errno.h include for ENOTSUP
* Fix test_utility_GetALineWithNoPossibleService: avoid strcpy of uninitialized s
Found by running the tests with CMAKE_BUILD_TYPE=Debug with MSVC
* Add mingw@Linux and mingw@Windows jobs to github workflow
* Rename build-windows.ps1 script to build-msvc.ps1.
Also bump the versions of SDL2 and ninja, used in this script.
* Run tests in github jobs running on Windows
Co-authored-by: Dethrace Engineering Laboratory <78985374+dethrace-labs@users.noreply.github.com>