Zachary Lund
001f0b10a4
Fixed Windows goofy macros
2014-01-25 22:26:55 -06:00
Zachary Lund
74ab96a3ad
I removed GLEW, added glLoadGen (renamed to GL here), and added implementations for all platforms. Hopefully this goes better than GLAD did.
2014-01-25 22:26:43 -06:00
Zachary Lund
bb24591d48
Add copyright and name to files it applies to.
2014-01-11 18:09:48 -06:00
Zachary Lund
d3dab077cb
Another attempt to fix ARB_debug_output, hopefully the last one.
2014-01-07 18:24:04 -06:00
jp9000
bf371437b3
Fixed debug extension check
...
- Check the actual debug extension instead of checking GL 4.0 support;
it appears that despite having GL 4.0 support, AMD does not implement
the standard debug extensions even when the *_CONTEXT_DEBUG_BIT_ARB
flag is set on the context.
- Also, fixed a place where spaces where used for indents instead of a
tab.
2014-01-06 19:02:19 -07:00
jp9000
156009cc0c
Fixed debug GL functions on windows (amend)
...
- Removed the dependency on windows.h for windows. I feel it's an
unnecessarily large dependency to have to add to all source files
when the only thing that's needed to make the windows version compile
the debug functions is just the __stdcall call convention keyword.
On top of increasing compile time due to the large number of headers
it includes from all the windows API headers, it also adds a lot of
potential name conflicts, as I was getting a number of name conflicts
for lots of names like near/far, which were used in old legacy 16bit
windows code.
2014-01-06 17:36:19 -07:00
Zachary Lund
840c1cfd65
I removed GL-specific extension checking to a platform independent file.
...
I also fixed autoconf to find wxWidgets 2.9 without user intervention
Removed unused code and added more organization
2014-01-05 23:50:32 -06:00
Zachary Lund
4aef1d00d1
Change _DEBUG coverage a bit
2014-01-05 19:55:19 -06:00
Zachary Lund
fee0d9a8f3
Minor style fixup
2014-01-04 01:37:00 -06:00
Zachary Lund
94f88c82cf
Added OpenGL debug callback support and context changes.
...
1. We no longer hardcode a 3.2 profile. It chooses the latest profile that fits out description.
2. I added three tables and macros to help with the offsets compared to the variables to help reading. Read comments for more info.
3. I added glewExperimental being set. What a dumb "feature". It doesn't help anything...
2014-01-03 23:14:35 -06:00
jp9000
969a71d716
call NSOpenGLContext 'update' on opengl context on macos when resizing
2013-12-31 03:09:28 -07:00
Palana
f23bf6b83c
restore pre-c99-compatibility
2013-12-22 04:51:11 +01:00
Palana
1dde992990
remove mipmap texture filter from min_filter for rectangle textures
2013-12-22 04:47:18 +01:00
jp9000
8dea4d60ef
add comment explaining the purpose of that line (because I noticed it was rather vague)
2013-12-13 10:32:05 -07:00
jp9000
61c6defd77
almost lured myself into another null pointer trap, fixed
2013-12-13 10:28:05 -07:00
jp9000
31dd23cb0d
fixed potential null pointer bug
2013-12-13 10:24:54 -07:00
jp9000
8298fa4dc7
With the permission of my fellow contributors, I'm switching obs-studio back to GPL v2+ to prevent issues between this project and the original OBS project, and for personal reasons to avoid legal ambiguity (not political reasons, I admittedly would prefer GPL v3+)
2013-12-02 22:24:38 -07:00
jp9000
e5c99175c5
fixed some build issues on non-windows systems
2013-11-26 23:07:27 -07:00
jp9000
5e33707f6a
ensure 80-column max formatting in gl-subsystem.c
2013-11-15 07:10:21 -07:00
jp9000
37c7db5dbe
fixed some bugs and fixed a variable that wasn't declared at the top
2013-11-02 14:44:40 -07:00
Palana
db9f8cc269
restrict max_anisotropy to 1 ≤ max_anisotropy ≤ max_anisotropy_max
2013-11-02 22:24:57 +01:00
jp9000
18834c6a45
some static analysis cleanup
2013-10-17 17:21:42 -07:00
jp9000
dfa2dc6eab
fix up the rest of the GL code, add glew to project, add makefiles for opengl, fix makefiles so that it can be built with gcc, update project files to automatically output to the build directory
2013-10-16 23:31:18 -07:00
jp9000
9570f0b8d7
change names, fix some bugs, minor GL/D3D fixes, update tests, fix effect files, output a little more debug information
2013-10-14 12:37:52 -07:00
jp9000
27a7873066
fix the can_render function and add in view/projection matrix code
2013-10-12 23:53:30 -07:00
jp9000
9577ddcf9b
fill in the rest of the GL functions. finally
2013-10-12 20:18:05 -07:00
jp9000
e591256922
add FBOs and render target loading
2013-10-12 16:28:10 -07:00
jp9000
83ddb920a1
finish up shader/sampler/texture/buffer loading/unloading/association
2013-10-12 12:35:38 -07:00
jp9000
aeea0eadc9
added shader attributes and added vertex buffer loading
2013-10-11 20:14:26 -07:00
jp9000
3951babc93
add GL index buffers and a few tweaks to the helper functions
2013-10-11 13:00:39 -07:00
jp9000
1b3b177583
add initial GL vertex buffer code
2013-10-10 23:03:42 -07:00
jp9000
85e2fc6b07
add stage surfaces and texture copying
2013-10-10 17:39:56 -07:00
jp9000
c1939de49b
added z-stencil buffers to GL and made a GS_MAX_TEXTURES macro
2013-10-10 12:37:03 -07:00
jp9000
fda2ee1147
added initial GL shader code
2013-10-09 15:48:16 -07:00
jp9000
3243bfbaa3
rearrange/cleanup GL texture stuff, and fill out GL cubemap texture functions (still need FBOs)
2013-10-05 09:25:12 -07:00
jp9000
543d2481f1
move around some graphics stuff and put in copyright comments
2013-10-04 12:13:59 -07:00
jp9000
75262e6e0b
update graphics subsystem code to add mipmap support and also add initial GL texture stuff and helper functions
2013-10-04 08:55:33 -07:00
jp9000
98a74e211a
added a 'default' swap chain
2013-10-03 06:17:43 -07:00
jp9000
7002821245
added GL subsystem prototypes
2013-10-02 23:14:15 -07:00
jp9000
a2dce06fa8
add initial opengl files and opengl project
2013-10-01 00:29:40 -07:00