Comments (3)
Creating a single header is possible, the current SDL.h
does that in a way by including all other headers.
But combining all .c
sources in a single SDL.c
is (currently) not possible.
The various sources sometimes define conflicting static functions or types that have the same names.
C does not support anonymous C++ namespaces.
Configuring SDL with -DCMAKE_UNITY_BUILD=ON
, you get an idea how big the problem is.
from sdl.
Thank you so much for the answer. As you said "currently", does that mean there is a future plan on solving this problem?
from sdl.
No, there is no current plan.
But we have it in the back of our head to find out a good approach.
Grouping sources by id might be a good middle ground.
from sdl.
Related Issues (20)
- Should RWseek(0, RW_SEEK_CUR) be optimized? HOT 3
- Retrobit Sega Saturn Wireless Contoller has invalid parameters HOT 4
- SDL_Event.key and kdevice does not return expected IDs? HOT 12
- testcamera does not work on emscripten HOT 2
- [Feature Request] Add Handheld and Custom device capability and feature support
- SDL_DestroyTexture leak memory wayland X11. HOT 2
- SDL3 Android SIGSEGV in `ANDROID_JoystickRumble` after `SDL_Quit` HOT 1
- testffmpeg poor performance HOT 11
- dummy audio driver does not work on emscripten HOT 6
- Memory leaks SDL_stack_alloc/SDL_stack_free HOT 4
- SDL return code -> SDL_bool? HOT 23
- [Windows 10] Most joystick events do not show up unless initalized with SDL_INIT_VIDEO HOT 1
- Clarify initial content of surfaces and textures HOT 1
- make src/libm a static library internal to SDL ? HOT 18
- [Android] mouse - avoid popping out system bars HOT 1
- Remove unused math code from MSVC and Xcode projects
- ios: infinite hang on SDL_malloc HOT 2
- Windows VC Linker error audio_async and sdl audio functions HOT 3
- Bug in SDL_DelayNS() HOT 2
- Game controller support matrix HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdl.