mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 10:40:20 +03:00
Snap dotted and dashed border geometry to physical pixels so centered patterns cannot begin on ambiguous half-pixel coordinates. This makes rectangular dot placement deterministic across llvmpipe and macOS GPU drivers. Update the old Reddit golden image to use the snapped dot phase. Optimize compile-time header dependencies - Extract lightweight singleton declarations. - Remove unnecessary core.hpp, stream, pack, and container includes. - Add explicit direct dependencies across system, network, graphics, and syntax headers. - Forward-declare stream and pack types where possible. - Normalize selected network headers to LF.
25 lines
904 B
C++
25 lines
904 B
C++
#ifndef EE_SYSTEMSINGLETONDECLARATIONS_HPP
|
|
#define EE_SYSTEMSINGLETONDECLARATIONS_HPP
|
|
|
|
/** Declarations shared by the macro-based singleton implementations.
|
|
*
|
|
* Keep this header lightweight. The implementation macro and the Singleton template
|
|
* require the allocation and synchronization machinery from singleton.hpp, while
|
|
* singleton-owning public headers only need these declarations.
|
|
*/
|
|
#define SINGLETON_DECLARE_HEADERS( T ) \
|
|
public: \
|
|
static T* createSingleton(); \
|
|
\
|
|
static T* existsSingleton(); \
|
|
\
|
|
static bool isShuttingDown(); \
|
|
\
|
|
static T* instance(); \
|
|
\
|
|
static void destroySingleton(); \
|
|
\
|
|
static void detachSingleton();
|
|
|
|
#endif
|