Daniel Nagel
439ea67cc2
Add error handling for SDL_GL_CreateContext
2014-09-02 07:34:08 +02:00
Daniel Nagel
66c19727ce
Add missing mode flag
2014-09-01 20:24:26 +02:00
Daniel Nagel
d4014f5f7f
Update to SDL2
2014-09-01 15:46:14 +02:00
Henrik Rydgard
9a72d5323b
Change thin3d to compile model 2_0 shaders by default. We can add a way to choose 3_0 later.
2014-08-31 09:10:41 +02:00
Unknown W. Brackets
ca16eb2857
Fix some type conversion warnings.
2014-08-30 02:05:21 -07:00
Henrik Rydgård
2d4e491d56
Merge pull request #234 from unknownbrackets/fbo-cache
...
Cache bound fbos, allow unbinding only read
2014-08-28 10:28:14 +02:00
Unknown W. Brackets
f1ec201dbc
Cache bound fbos, allow unbinding only read.
...
This maintains the currently bound fbos, similar to glstate.
So long as these funcs are used, it can prevent duplicate binds.
Binding the same buffer twice comes with a performance penalty.
2014-08-27 23:01:43 -07:00
Henrik Rydgård
196facb355
Merge pull request #233 from unknownbrackets/thin3d
...
d3d: fix scissoring by using top=actual top
2014-08-25 12:40:44 +02:00
Unknown W. Brackets
6f9a83819f
d3d: fix bad texture on first text draw.
...
OpenGL autobinds on create, D3D does not.
2014-08-25 01:54:06 -07:00
Unknown W. Brackets
731ab24e21
d3d: fix scissoring by using top=actual top.
2014-08-24 19:50:36 -07:00
Unknown W. Brackets
c141c368fc
Skip some conversion warnings.
2014-08-24 01:25:59 -07:00
Unknown W. Brackets
e141280f8d
Only create 1 miplevel in TextDrawer.
...
Fixes missing text in D3D.
2014-08-24 01:22:25 -07:00
Unknown W. Brackets
6b223e2cc6
d3d: Fix a crash on a shader compile error.
2014-08-23 21:53:00 -07:00
Henrik Rydgård
6af33015d0
Merge pull request #232 from unknownbrackets/glsl-fix
...
Add the prelude to fragment shaders
2014-08-24 02:05:23 +02:00
Unknown W. Brackets
d726e7f389
Try not to crash on shader compile errors.
2014-08-23 10:40:12 -07:00
Unknown W. Brackets
1ea54accef
Add the prelude to fragment shaders.
2014-08-23 09:27:35 -07:00
Unknown W. Brackets
6b5e9f6b7c
Linux buildfix.
2014-08-23 02:12:13 -07:00
Henrik Rydgård
467599cf56
Merge pull request #230 from hrydgard/thin3d
...
Thin3d - the thinnest wrapper around D3D9 and GL around
2014-08-23 10:51:22 +02:00
Henrik Rydgard
49602416cf
More thin3d minor fixes
2014-08-23 10:31:23 +02:00
Henrik Rydgard
6f96004381
Thin3d D3D: More system information, other minor fixes
2014-08-23 10:20:27 +02:00
Henrik Rydgard
75b7ccd739
Clean up D3DX loader a little
2014-08-23 10:01:03 +02:00
Henrik Rydgard
7708558c2f
Remove a comment, add some checks.
2014-08-23 09:47:30 +02:00
Henrik Rydgård
1179d29323
Merge pull request #231 from unknownbrackets/thin3d
...
Fix Android/Linux compilation
2014-08-23 09:38:16 +02:00
Unknown W. Brackets
8c35e4b5fc
Fix some type conversion warnings.
2014-08-23 00:35:14 -07:00
Unknown W. Brackets
110f640ca8
Fix Linux/Android compilation.
2014-08-23 00:35:13 -07:00
Henrik Rydgard
1401de50dc
Thin3d: Minor shader cleanup
2014-08-22 21:26:46 +02:00
Henrik Rydgard
ff5df25135
Add Thin3d support to draw_text (Qt not touched)
2014-08-22 20:54:28 +02:00
Henrik Rydgard
a1ff7a4488
Thin3D: Add APIName query. Swizzle texture colors in D3D.
...
(not sure whether it's best done in the shader or in the texture data...)
2014-08-22 20:54:27 +02:00
Henrik Rydgard
ecb33f005e
Thin3D now actually draws some stuff
2014-08-22 20:54:27 +02:00
Henrik Rydgard
8774fcad94
Some more thin3d
2014-08-22 20:54:26 +02:00
Henrik Rydgard
54b298a63e
More Thin3D work (textures etc)
2014-08-22 20:54:26 +02:00
Henrik Rydgard
29a60b5952
Thin3d: Add cull mode, other fixes
2014-08-22 20:54:25 +02:00
Henrik Rydgard
bf41d05dfc
Switch to Thin3DTexture. GL still works, d3d still broken.
2014-08-22 20:54:25 +02:00
Henrik Rydgard
1251b6df79
Thin3d: Add some untested texturing stuff
2014-08-22 20:54:25 +02:00
Henrik Rydgard
a0f7f877e2
Fix vertex declarations. Hook up some more of D3D9 (doesn't work yet)
2014-08-22 20:54:24 +02:00
Henrik Rydgard
40b67e27cf
Crashfix
2014-08-22 20:54:24 +02:00
Henrik Rydgard
a9b5fe44bf
Slip thin3d underneath DrawBuffer/UI
2014-08-22 20:54:23 +02:00
Henrik Rydgard
c1bc4215f2
Thin3D: A thin OpenGL/D3D9 wrapper for basic rendering.
...
Only the OpenGL implementation actually works yet.
2014-08-22 20:54:23 +02:00
Henrik Rydgard
cea002e39a
Update GLEW with GL4.4 support
2014-08-21 10:21:37 +02:00
Sacha
14d2fa9a39
Drop the thread from Qt audio loop. Makes exit cleaner.
...
Probably needs to be reworked or replaced with SDL it seems.
2014-08-21 03:46:00 +10:00
Henrik Rydgård
2ba8e36b2b
Merge pull request #229 from thedax/sliderfloat-step
...
Update PopupSliderChoiceFloat to have increment/decrement buttons, and stepping.
2014-08-16 22:56:08 +02:00
The Dax
cfae07f72b
Need to initialise step_ here, too.
2014-08-16 15:15:01 -04:00
The Dax
69e66df07e
Update PopupSliderChoiceFloat to have increment/decrement buttons, and stepping.
2014-08-16 15:07:06 -04:00
Henrik Rydgård
4f3c69e714
Merge pull request #227 from ToadKing/master
...
add ability to create opaque FBO objects from native opengl FBOs
2014-08-06 00:48:03 +02:00
Toad King
fbafdb4e35
add ability to create opaque FBO objects from native opengl FBOs
2014-08-05 17:43:25 -04:00
Henrik Rydgård
9b038d40be
Merge pull request #226 from unknownbrackets/gpu-blend
...
Use glBlendEquationSeparate for ADD on alpha
2014-08-04 22:10:59 +02:00
Unknown W. Brackets
deed84f997
Reassert the add equation in UIContext.
...
Otherwise it might use subtract or some other equation.
Fixes another case of hrydgard/ppsspp#6678 .
2014-08-03 21:38:29 -07:00
Unknown W. Brackets
130865577d
Use glBlendEquationSeparate for ADD on alpha.
2014-08-03 21:38:29 -07:00
Unknown W. Brackets
ddf67c5f72
Add glStencilMask to glstate.
2014-08-03 21:38:28 -07:00
Unknown W. Brackets
9f239b9685
Warning fix.
2014-08-03 19:09:45 -07:00