1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00
Commit Graph

1221 Commits

Author SHA1 Message Date
Sergey Lipskiy
9a991ba550 Correct FrameBufferList::renderBuffer for GLES2 2015-06-01 23:58:57 +06:00
Sergey Lipskiy
e1000add03 Fix compilation warning in Keys.cpp 2015-06-01 14:50:07 +06:00
Sergey Lipskiy
37b5a38486 Enable texture_filter_anisotropic for GLES. 2015-06-01 14:50:04 +06:00
Sergey Lipskiy
c9f62a55e8 Disable fog blend for some GLES2 GPU, which can not parse that part of fragment shader.
Currently disabled for PowerVR and Adreno GLES2 GPU.

GLES3 Adreno GPU free of that limitation and thus fog blend
will not disabled for them.
2015-06-01 14:49:59 +06:00
Sergey Lipskiy
f000cf4154 Log info about GL version. 2015-06-01 13:35:58 +06:00
ptitSeb
9b33b71f36 Trying to get xbrz compiling under GCC >= 5 2015-05-31 18:26:17 +02:00
ptitSeb
f953e235c4 Pandora support 2015-05-31 18:26:08 +02:00
Sergey Lipskiy
6b67ba3a57 Fix 3point texture filtering for GLES2. 2015-05-31 14:13:27 +06:00
Sergey Lipskiy
910c5de1bf Enable post-processor for GLES2. 2015-05-30 22:40:14 +06:00
Sergey Lipskiy
92450d3acf Fix PostProcessor compatibility with Android. 2015-05-30 22:39:19 +06:00
Sergey Lipskiy
be5695bea7 Make TextDrawer compatible with Android. 2015-05-30 20:38:53 +06:00
Sergey Lipskiy
83d74af29d Fix compilation warnings in TextDrawer.cpp 2015-05-30 20:38:52 +06:00
Sergey Lipskiy
1ce07a2205 Switch to newer versions of libpng and libz. 2015-05-30 20:38:51 +06:00
Sergey Lipskiy
ecf4c79e66 make gln_wcscat static to avoid link issues. 2015-05-30 20:38:50 +06:00
Sergey Lipskiy
1751c75e8a Fix compilation on Linux. 2015-05-30 20:38:37 +06:00
purplemarshmallow
b73fb10442 maintain correct aspect ratio when changing window size in mupen64plus 2015-05-29 22:56:52 +06:00
Sergey Lipskiy
65df8335f6 Move osal_files.h and txWidestringWrapper.h from inc to osal subfolder. 2015-05-29 20:51:39 +06:00
Sergey Lipskiy
87b80b1383 Remove config.generalEmulation.enableLOD usage for GLES2.
GLES2 mipmap shader can't calculate LOD, but it does useful comparisons,
so it is useful to use it regardless of config option.
2015-05-29 20:51:33 +06:00
Sergey Lipskiy
701ebad2ab Fix _cutLastPathSeparator()
Add Android implementation.
2015-05-29 20:51:23 +06:00
Sergey Lipskiy
2b0db06858 Add Android compatible wrapper for wcscat and wchar_t* constant strings. 2015-05-29 20:51:19 +06:00
Sergey Lipskiy
0a4bf95e2f Wrapper for std::wstring and wchar_t* strings.
Necessary functions are not implemented properly on many Android platforms.
The wrapper converts wchr_t* string to char* one and uses char* functions,
which Android supports well.
2015-05-28 12:20:21 +06:00
Sergey Lipskiy
076f0c8e1b GLideNHQ: Output debug messages to android log instead of file. 2015-05-26 23:41:02 +06:00
Sergey Lipskiy
037d2d8e1d Remove boost dependency.
This modification is done mostly for Android port of the plugin.

Boost::filesystem replaced by osal-files collection of filesystem functions.
osal-files copied from mupen64plus-video-rice and modified to work with wchar_t strings.

Windows implementation should work well with unicode strings, because
Microsoft provides wide string compatible filesystem functions.

Unix implementation fakes work with unicode strings by converting them to multibyte strings.
It may not work if user will chose folder with non-ASCII path.
2015-05-26 23:40:52 +06:00
Sergey Lipskiy
9299dc5549 Disable mip-map texture load for GLES2. 2015-05-26 14:03:53 +06:00
Sergey Lipskiy
ae694f98e0 Always use GL_RGBA as internal texture format for GLES2.
Fixed compatibility with Mali400 GPU.
2015-05-26 14:03:47 +06:00
Sergey Lipskiy
3e0d3dc192 Correct About dialog form:
- disable translation of authors and funders names.
- add nesplayer4life to main funders section. ($500+ in total!)
2015-05-25 15:26:51 +06:00
Sergey Lipskiy
7b0e0b94f4 Disable number of processors detection for Android. 2015-05-23 17:57:16 +06:00
Sergey Lipskiy
2c7184cab6 Add PluginAPI functions: GetUserDataPath() and GetUserCachePath().
New functions are used for texture library initialization.
GetUserDataPath() returns default folder to search for hi-res texture packs.
GetUserCachePath() returns folder to store texture cache.

Mupen64Plus implementation: use system ConfigGetUserDataPath() and ConfigGetUserCachePath().
Windows implementation: just return FindPluginPath() for both functions.

Note: behaviour of Mupen64Plus changed.
Previously the emulator's folder was default path for hires textures and texture cache.
Now default path is system dependent.
For Windows it will be %HOME%\AppData\Roaming\Mupen64Plus
2015-05-23 17:53:08 +06:00
Sergey Lipskiy
0c416070c7 Fix load RGBA16 texture when tlut is enabled.
Solution is taken from Angrylion's software lle plugin.

Fixed Mario Kart- thwomp textures #532
2015-05-22 19:05:21 +06:00
Sergey Lipskiy
c0655c1f7c Correct path to GL includes for GLES
Add #define GL_COLOR_INDEX8_EXT for GLES
2015-05-21 20:21:06 +06:00
Sergey Lipskiy
a966632dc6 Optimization: use simplified fragment_shader_readtex when BILINEAR_3POINT mode disabled. 2015-05-21 00:14:22 +06:00
Sergey Lipskiy
1819f4fc50 Add Shaders and GLSLCombiner for GLES2. 2015-05-21 00:14:16 +06:00
Sergey Lipskiy
48b1d55449 Move noise and monochrome_image initialization to the right place.
These functionalities do not require GL_IMAGE_TEXTURES_SUPPORT.
2015-05-21 00:11:43 +06:00
Sergey Lipskiy
92fcf0a797 Code cleanup: make g_monochrome_image_program variable static. 2015-05-21 00:11:39 +06:00
Sergey Lipskiy
5eee1ef01e Optimization. Split fragment_shader_readtex on 3 part:
- readTex when BILINEAR_3POINT mode disabled
- readTex when BILINEAR_3POINT mode enabled
- readTexMS for multisampled textures.
2015-05-21 00:11:37 +06:00
Sergey Lipskiy
aad80168d3 Code refactor:
Move CompileCombiner to ShadersUtils.
Remove GLES2 specific code.
2015-05-21 00:11:30 +06:00
Sergey Lipskiy
9fd4d55b44 Code refactor: Make specialized shaders code for GLES2 and OGL3X (GLES3+ and desktop GL)
GLES2 is very limited and its limitations make source code look bad.

Step 1. Move Shaders.h and GLSLCombiner.cpp to OGL3X folder.
2015-05-20 17:16:49 +06:00
Sergey Lipskiy
e62e81c0e2 Code refactor: move some shaders utility functions to separate files. 2015-05-20 11:32:10 +06:00
Sergey Lipskiy
e73cee3a58 Code refactor: add abstract class UniformCollection.
Implement it for desktop GL: OGL3X/UniformBlock
and for GLES2: GLES2/UniformSet

GLES3 and above must use OGL3X/UniformBlock.
2015-05-20 11:32:05 +06:00
Sergey Lipskiy
ed4271e60e Make shaders GLES2 compatible. 2015-05-19 00:33:16 +06:00
Sergey Lipskiy
19c9e80b70 Correct frame buffer texture format for GLES2. 2015-05-18 13:51:16 +06:00
Sergey Lipskiy
d30a2dc8b5 Correct depth buffer texture format for GLES2. 2015-05-18 13:51:16 +06:00
Sergey Lipskiy
12f9f8d5d0 Disable ResolveDepthBufferTexture creation for system without GL_MULTISAMPLING_SUPPORT 2015-05-18 13:51:15 +06:00
Sergey Lipskiy
47719e3ce3 Don't set GL_TEXTURE_MAX_LEVEL for GLES2. 2015-05-18 13:51:14 +06:00
Sergey Lipskiy
b14086911c GLES2: fix OGLRender::_initExtensions() 2015-05-18 13:51:13 +06:00
Sergey Lipskiy
b88f801a62 GLES2: fix OGLVideo::readScreen2 2015-05-18 13:51:13 +06:00
Sergey Lipskiy
d105a2a8a1 Make PostProcessor GLES2 compatible. 2015-05-18 13:51:12 +06:00
Sergey Lipskiy
ca0844c57d Correct shader version in PostProcessor 2015-05-18 13:51:11 +06:00
Sergey Lipskiy
b16dedd3f9 Fix compilation error in FrameBufferList::renderBuffer. 2015-05-18 13:51:10 +06:00
Sergey Lipskiy
7cbca30197 Disable resolveMultisampledTexture() for system without GL_MULTISAMPLING_SUPPORT 2015-05-18 13:51:10 +06:00