Commit graph

177 commits

Author SHA1 Message Date
Areloch
e8bc70e514 Merge pull request #1567 from JeffProgrammer/epoxy
Added Epoxy in favor of GLEW
2016-05-05 19:40:59 -05:00
rextimmy
8056a4bfa9 GL fix for Epoxy and creating a 3.2 core context with win32 api. 2016-05-05 22:25:34 +10:00
Azaezel
4b1895cba5 Certain plugins were not playing nice on the directx end with updating rendertargets. Provides a profile for targets intended to be continuously updated. 2016-04-24 11:36:28 -05:00
Areloch
e8c96d7df1 Merge pull request #1577 from rextimmy/dx11_gl_drawutil_border_fix
DX11/GL border offset fix for GFXDrawUtil::drawRect
2016-04-19 01:47:38 -05:00
Jeff Hutchinson
fddc00b39b Merge branch 'development-gg' into epoxy 2016-04-17 23:59:42 -04:00
Areloch
b23ac9fb6a Removes some unnecessary extension checks for GL, as those formats are part of 3.2 core. SDL is having some conflicts with extension detection with GL. 2016-04-08 15:34:02 -05:00
rextimmy
5a4bb6b36d DX11/GL border offset fix for GFXDrawUtil::drawRect 2016-04-08 18:58:53 +10:00
rextimmy
2073a94a7a ScreenShotD3D11 delete fix. 2016-04-02 22:30:56 +10:00
Areloch
6a40b8bb84 Merge pull request #1559 from rextimmy/dx11_clean
Direct3D11 Support
2016-03-29 00:51:23 -05:00
rextimmy
12621f876b Added GFXFormatR8G8B8A8_SRGB format. 2016-03-28 10:05:16 +10:00
Jeff Hutchinson
7317848080 epoxy GLX extension interface 2016-03-25 21:03:01 -04:00
Jeff Hutchinson
4cf6a30e05 cleanup 2016-03-25 13:44:22 -04:00
Jeff Hutchinson
6e692ea9cf torque windows integration of epoxy 2016-03-25 13:41:38 -04:00
Anis
7ccac9b9b7 Merge pull request #1550 from Azaezel/ResetGFX
new method: ResetGFX();
2016-03-22 12:53:02 +01:00
rextimmy
8667bd3ca2 GL floating point format fix. 2016-03-21 22:49:47 +10:00
rextimmy
41e5caf22b Direct3D11 Engine/source changes 2016-03-20 21:52:11 +10:00
rextimmy
1ff6f221fb Direct3D11 GFX device. 2016-03-20 21:48:52 +10:00
Azaezel
067caec4a4 docstring. do note best practices is to internally trigger this kind of thing, but this way folks have a test-case to see if that is in fact the flaw for their derivatives. 2016-03-15 19:19:12 -05:00
Azaezel
cc618ce2e0 new method: ResetGFX();
exposes the GFX->beginReset(); method to script to allow folks to force the gbuffer to reinitialize (if, say a custom element is holding on to data in a buffer and it needs a cleaning, to name one example)
2016-03-15 18:04:11 -05:00
Areloch
908be4818f Merge pull request #1519 from Azaezel/deferredShading
Deferred shading
2016-02-27 15:08:20 -06:00
Anis A. Hireche
10cb6ab9c4 Merge remote-tracking branch 'refs/remotes/origin/development' into pr/1153 2016-02-26 14:39:38 +01:00
Anis
a31dea224c Merge pull request #1525 from TheDushan/ImmutableBuffers
Added immutable vertex and index buffers.
2016-02-25 15:38:07 +01:00
Anis
740c999c19 compile fix 2016-02-25 15:26:52 +01:00
Anis
f39f7a80c8 Update gfxGLDevice.cpp 2016-02-25 15:26:25 +01:00
Dušan Jocić
28d303c5ea Added immutable vertex and index buffers. 2016-02-20 21:28:18 +01:00
Anis
6a2d394d90 Merge pull request #1348 from hpvb/intel-mesa-compile-fix
Fix running on Linux / Intel Mesa drivers
2016-02-20 14:50:22 +01:00
Anis
cebfc81d7f Merge pull request #1496 from camporter/linux_compat_fixes
Fix case sensitivity and Platform::fileDelete
2016-02-19 16:50:27 +01:00
Anis
92e5cb3528 Merge pull request #1381 from Azaezel/debugdraw
From Dušan Jocić: additional debugdraw entries.
2016-02-19 16:29:29 +01:00
Anis
9a2a5b2a90 compile fix. 2016-02-18 16:49:06 +01:00
Anis
fe5bf90153 Merge pull request #1102 from Azaezel/mipmap_emission
extraneous mipmap generation prune
2016-02-17 19:02:15 +01:00
Azaezel
8c5810adad The final step (barring any overlooked missing bits, requested refactors, and of course, rolling in dependencies already submitted as PRs) consists of:
renderPrePassMgr.cpp related:
A) shifting .addFeature( MFT_XYZ); calls from ProcessedShaderMaterial::_determineFeatures to ProcessedPrePassMaterial::_determineFeatures
B) mimicking the "// set the XXX if different" entries from RenderMeshMgr::render in RenderPrePassMgr::render
C) fleshing out ProcessedPrePassMaterial::getNumStages() so that it shares a 1:1 correlation with ProcessedShaderMaterial::getNumStages()
D) causing inline void Swizzle<T, mapLength>::ToBuffer( void *destination, const void *source, const dsize_t size )  to silently fail rather than fatally assert if a source or destination buffer is not yet ready to be filled. (support for #customTarget scripted render targets)

Reflections:
A) removing reflectRenderState.disableAdvancedLightingBins(true); entries. this would otherwise early out from prepass and provide no color data whatsoever.
B) removing the fd.features.addFeature( MFT_ForwardShading ); entry forcing all materials to be forward lit when reflected.
C) 2 things best described bluntly as working hacks:
C1) when reflected, a scattersky is rotated PI along it's z then x axis in order to draw properly.
C2) along similar lines, in terraincellmaterial, we shut off culling if it's a prepass material.

Skies: scattersky is given a pair of rotations for reflection purposes, all sky objects are given a z value for depth testing.
2016-02-16 02:50:49 -06:00
Anis
e2d789e87d Update gfxGLTextureTarget.cpp 2016-01-18 06:17:20 +01:00
Anis
ca31ef3f1a Update gfxGLWindowTarget.cpp 2016-01-18 06:15:07 +01:00
Anis
500a237892 Update gfxGLWindowTarget.h 2016-01-18 05:56:00 +01:00
Anis
c3ef59e39c Update gfxGLWindowTarget.cpp 2016-01-18 05:55:48 +01:00
Anis
0728282287 Update gfxGLTextureTarget.cpp 2016-01-18 05:55:36 +01:00
Anis
58a604d363 Update gfxGLCircularVolatileBuffer.h 2016-01-18 05:49:05 +01:00
Cameron Porter
4c17d4bb49 Fix case sensitivity and Platform::fileDelete
for linux and OSX. Correct a couple of warnings and errors preventing builds on linux.
2016-01-09 00:37:45 -06:00
rextimmy
e3b228db8b Fix for OpenGL/D3D11 bottom border offset 2015-12-28 09:17:14 +10:00
Jeff Hutchinson
4baf410b4f remove GL_EXT_gpu_shader4 2015-09-22 00:57:40 -04:00
Areloch
bedc79aacb Merges in Monkey's fixes PR with a resolution for a conflict 2015-09-03 22:58:57 -05:00
Areloch
b54f41e36d Merge pull request #1378 from Areloch/PVS_Cleanup_595
Properly testing pointer vars aren't null before using them.
2015-08-22 23:17:43 -05:00
Azaezel
1df7e47a89 From @LuisAntonRebollo -Stymies infinite loop on exit with SDL2+opengl on windows. 2015-08-13 15:34:41 -05:00
Hein-Pieter van Braam
eadd77272d Add @Azaezel's exception for Win32
"This chunk causes issues on the win8.1/non-SDL side."
2015-07-30 22:18:01 +02:00
Hein-Pieter van Braam
320718327f Actually generate a working string for glewGetExtension()
I don't know how to 'C' apparently.
2015-07-30 22:18:00 +02:00
Hein-Pieter van Braam
08622e9601 Use different extension detection mechanism
I got this from looking at the code from the glew utility 'glewinfo' on my system it reported the following for GL_ARB_geometry_shader4:  OK [MISSING]. This lead me to believe that there are two different ways of determining extensions. The first 'OK' seems to refer to the entrypoint existing while the second one seems to refer to the extension being available.

The difference is this:
The first OK comes from : GLEW_ARB_geometry_shader4 the global whereas the second 'MISSING' comes from glewGetExtension("GL_ARB_geometry_shader4"). By replacing the gglHasExtension I got the desired result.

We may want to implement some caching if we want to keep using GLEW perhaps?

Anyway I suggest this merely as a test, I'm not sure if this is a viable long-term solution.
2015-07-30 22:18:00 +02:00
Hein-Pieter van Braam
5d91cf90b3 Fix running on Linux / Intel Mesa drivers
* Explicitly request a GL 3.2 context
* Enable 'experimental' extensions on glew (This appears necessary to get glew to work with explictly set GL versions)
2015-07-30 22:18:00 +02:00
Azaezel
005c3c4b36 From Dušan Jocić: additional debugdraw entries. DirectionLine, OutlinedText, Capsule 2015-07-29 01:41:09 -05:00
Areloch
3a18819e1e Issue found by PVS Studio:
Several instances where we utilize a pointer variable without properly testing that they aren't null first.
2015-07-28 23:25:09 -05:00
Daniel Buckmaster
4f2f1ca4e1 Merge pull request #1356 from Areloch/PVS_Cleanup_813
Convert un-modified function arguments to const references.
2015-07-20 22:55:22 +10:00