diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-02-09 20:49:58 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-02-09 20:49:58 +0100 |
commit | 034cd62a7740a51d2527272a44bf225cd7a89724 (patch) | |
tree | bb0f0e63cb5b7eb720d5329b1c79d027d906d325 /core/os/os.h | |
parent | 5fa5678eb70d6f12800a4862215f54f4c20a4a96 (diff) |
Warn when using GPU particles with GLES2
Closes #25733.
Diffstat (limited to 'core/os/os.h')
-rw-r--r-- | core/os/os.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/core/os/os.h b/core/os/os.h index 20a3494e11..396555970a 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -45,12 +45,6 @@ @author Juan Linietsky <reduzio@gmail.com> */ -enum VideoDriver { - VIDEO_DRIVER_GLES3, - VIDEO_DRIVER_GLES2, - VIDEO_DRIVER_MAX, -}; - class OS { static OS *singleton; @@ -184,9 +178,16 @@ public: virtual VideoMode get_video_mode(int p_screen = 0) const = 0; virtual void get_fullscreen_mode_list(List<VideoMode> *p_list, int p_screen = 0) const = 0; + enum VideoDriver { + VIDEO_DRIVER_GLES3, + VIDEO_DRIVER_GLES2, + VIDEO_DRIVER_MAX, + }; + virtual int get_video_driver_count() const; virtual const char *get_video_driver_name(int p_driver) const; virtual int get_current_video_driver() const = 0; + virtual int get_audio_driver_count() const; virtual const char *get_audio_driver_name(int p_driver) const; |