Skip to content

Commit 81892cd

Browse files
committed
Refactor DirectX specific code into its own class, like OpenGL
1 parent 10434ea commit 81892cd

File tree

14 files changed

+757
-492
lines changed

14 files changed

+757
-492
lines changed

BuildConfig.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,21 @@
2727

2828

2929
//
30-
// Enable the use of OpenGL display driver, otherwise use DirectX.
30+
// Enable the use of OpenGL display driver
3131
//
3232
#ifndef _LEGACY_VCC
3333
#ifndef USE_OPENGL
3434
#define USE_OPENGL true
3535
#endif
3636
#endif
3737

38+
//
39+
// Enable the use of DirectX display driver
40+
//
41+
#ifndef USE_DIRECTX
42+
#define USE_DIRECTX true
43+
#endif
44+
3845
//
3946
// Enable black fill to preserve aspect ratio, otherwise replicate border color.
4047
//
@@ -84,13 +91,6 @@
8491
//
8592
// Edit options above rather than these:
8693
//
87-
#if !USE_OPENGL
88-
#define USE_DIRECTX true
89-
#endif
90-
91-
#if USE_OPENGL && USE_DIRECTX
92-
#error Enable either USE_OPENGL or USE_DIRECTX not both.
93-
#endif
9494

9595
///////////////////////////////////////////////////////////////////////////////////////////////////
9696
// Options that are always off for release

0 commit comments

Comments
 (0)