parent
2662c7e3d1
commit
814fdd3985
@ -80,6 +80,10 @@ const char *OS_Haiku::get_video_driver_name(int p_driver) const {
|
||||
return "GLES3";
|
||||
}
|
||||
|
||||
int OS_Haiku::get_current_video_driver() const {
|
||||
return video_driver_index;
|
||||
}
|
||||
|
||||
Error OS_Haiku::initialize(const VideoMode &p_desired, int p_video_driver, int p_audio_driver) {
|
||||
main_loop = NULL;
|
||||
current_video_mode = p_desired;
|
||||
@ -124,6 +128,8 @@ Error OS_Haiku::initialize(const VideoMode &p_desired, int p_video_driver, int p
|
||||
}
|
||||
*/
|
||||
|
||||
video_driver_index = p_video_driver;
|
||||
|
||||
input = memnew(InputDefault);
|
||||
window->SetInput(input);
|
||||
|
||||
|
@ -51,6 +51,7 @@ private:
|
||||
Rasterizer *rasterizer;
|
||||
VisualServer *visual_server;
|
||||
VideoMode current_video_mode;
|
||||
int video_driver_index;
|
||||
PowerHaiku *power_manager;
|
||||
|
||||
#ifdef MEDIA_KIT_ENABLED
|
||||
@ -66,6 +67,7 @@ private:
|
||||
protected:
|
||||
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;
|
||||
|
||||
virtual Error initialize(const VideoMode &p_desired, int p_video_driver, int p_audio_driver);
|
||||
virtual void finalize();
|
||||
|
@ -47,7 +47,6 @@
|
||||
|
||||
class OS_Server : public OS_Unix {
|
||||
|
||||
//Rasterizer *rasterizer;
|
||||
VisualServer *visual_server;
|
||||
VideoMode current_videomode;
|
||||
List<String> args;
|
||||
@ -73,7 +72,7 @@ class OS_Server : public OS_Unix {
|
||||
protected:
|
||||
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;
|
||||
virtual int get_audio_driver_count() const;
|
||||
virtual const char *get_audio_driver_name(int p_driver) const;
|
||||
|
||||
@ -86,8 +85,6 @@ protected:
|
||||
public:
|
||||
virtual String get_name();
|
||||
|
||||
virtual int get_current_video_driver() const;
|
||||
|
||||
virtual void set_cursor_shape(CursorShape p_shape);
|
||||
virtual void set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, const Vector2 &p_hotspot);
|
||||
|
||||
|
@ -77,6 +77,10 @@ Size2 OSUWP::get_window_size() const {
|
||||
return size;
|
||||
}
|
||||
|
||||
int OSUWP::get_current_video_driver() const {
|
||||
return video_driver_index;
|
||||
}
|
||||
|
||||
void OSUWP::set_window_size(const Size2 p_size) {
|
||||
|
||||
Windows::Foundation::Size new_size;
|
||||
@ -237,6 +241,8 @@ Error OSUWP::initialize(const VideoMode &p_desired, int p_video_driver, int p_au
|
||||
}
|
||||
gl_context->set_use_vsync(vm.use_vsync);
|
||||
|
||||
video_driver_index = p_video_driver;
|
||||
|
||||
visual_server = memnew(VisualServerRaster);
|
||||
// FIXME: Reimplement threaded rendering? Or remove?
|
||||
/*
|
||||
|
@ -99,6 +99,7 @@ private:
|
||||
Windows::UI::Core::CoreWindow ^ window;
|
||||
|
||||
VideoMode video_mode;
|
||||
int video_driver_index;
|
||||
|
||||
MainLoop *main_loop;
|
||||
|
||||
@ -154,6 +155,7 @@ private:
|
||||
// functions used by main to initialize/deintialize the OS
|
||||
protected:
|
||||
virtual int get_video_driver_count() const;
|
||||
virtual int get_current_video_driver() const;
|
||||
|
||||
virtual void initialize_core();
|
||||
virtual Error initialize(const VideoMode &p_desired, int p_video_driver, int p_audio_driver);
|
||||
|
@ -196,6 +196,8 @@ class OS_X11 : public OS_Unix {
|
||||
Bool xrandr_ext_ok;
|
||||
|
||||
protected:
|
||||
virtual int get_current_video_driver() const;
|
||||
|
||||
virtual void initialize_core();
|
||||
virtual Error initialize(const VideoMode &p_desired, int p_video_driver, int p_audio_driver);
|
||||
virtual void finalize();
|
||||
@ -207,8 +209,6 @@ protected:
|
||||
bool is_window_maximize_allowed();
|
||||
|
||||
public:
|
||||
virtual int get_current_video_driver() const;
|
||||
|
||||
virtual String get_name();
|
||||
|
||||
virtual void set_cursor_shape(CursorShape p_shape);
|
||||
|
Loading…
Reference in New Issue
Block a user