1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

-several fixes to Android to work better on Tegra 3/4 devices, uses 16 bits FBOs so all 2D shader effects should now work in every single Android device.

This commit is contained in:
Juan Linietsky
2015-12-02 11:15:48 -03:00
parent 7ac31a7209
commit 4b1f0afb01
11 changed files with 59 additions and 8 deletions

View File

@@ -141,6 +141,8 @@ void OS_Android::initialize(const VideoMode& p_desired,int p_video_driver,int p_
}
rasterizer->set_force_16_bits_fbo(use_16bits_fbo);
visual_server = memnew( VisualServerRaster(rasterizer) );
if (get_render_thread_mode() != RENDER_THREAD_UNSAFE) {
@@ -725,6 +727,13 @@ void OS_Android::native_video_stop() {
video_stop_func();
}
void OS_Android::set_context_is_16_bits(bool p_is_16) {
use_16bits_fbo=p_is_16;
if (rasterizer)
rasterizer->set_force_16_bits_fbo(p_is_16);
}
OS_Android::OS_Android(GFXInitFunc p_gfx_init_func,void*p_gfx_init_ud, OpenURIFunc p_open_uri_func, GetDataDirFunc p_get_data_dir_func,GetLocaleFunc p_get_locale_func,GetModelFunc p_get_model_func, ShowVirtualKeyboardFunc p_show_vk, HideVirtualKeyboardFunc p_hide_vk, SetScreenOrientationFunc p_screen_orient,GetUniqueIDFunc p_get_unique_id,GetSystemDirFunc p_get_sdir_func, VideoPlayFunc p_video_play_func, VideoIsPlayingFunc p_video_is_playing_func, VideoPauseFunc p_video_pause_func, VideoStopFunc p_video_stop_func,bool p_use_apk_expansion) {