Hayden Kowalchuk
ea3dec1daa
feat: opengl headers expose new functionality
2020-03-05 15:13:30 -05:00
Luke Benstead
43a8db9e9d
Remove divisions
2020-02-29 09:48:51 +00:00
Luke Benstead
140eec3d92
glNormalPointer should accept GL_INT_2_10_10_10_REV, not GL_UNSIGNED_INT_2_...
2019-11-27 09:10:10 +00:00
Luke Benstead
11cd54bc0b
Add partial support for GL_ARB_vertex_type_2_10_10_10_rev and also GL_NORMALIZE
2019-11-18 17:39:09 +00:00
Luke Benstead
200db3593e
Make primitive constants match the spec
2019-09-06 09:36:14 +01:00
Luke Benstead
22690600d0
Don't include kos headers from gl.h
2019-09-06 09:35:33 +01:00
Luke Benstead
041b545177
Add missing glDepthRange declaration
2019-08-20 21:02:08 +01:00
Luke Benstead
57f4f62f86
Implement glColor3ubv
2019-08-20 20:42:29 +01:00
Luke Benstead
00c38edba9
Add polygon_offset sample (thanks mrneo240)
2019-07-17 10:46:19 +01:00
Luke Benstead
724ff628aa
Fix some signedness issues
2019-03-13 15:14:09 +00:00
Luke Benstead
c73a96c1a5
Fix some more invalid GL constants
2019-03-11 19:36:07 +00:00
Luke Benstead
d21a07e799
Fix up some wrong constant values
2019-03-11 19:29:48 +00:00
Luke Benstead
588c082ec8
Allow specifying palette, autosort, memory options via glKosInitEx
2019-03-11 19:07:59 +00:00
Luke Benstead
834599dc4b
Add glDrawBuffer stub
2019-03-10 20:05:40 +00:00
Luke Benstead
1807a0119c
Add some missing function stubs
2019-03-10 12:19:45 +00:00
Luke Benstead
c3cd3b936c
Add definition of GL_INTENSITY
2019-02-23 21:29:45 +00:00
Luke Benstead
c84f211ad0
More work towards paletted textures
2018-09-22 20:45:17 +01:00
Luke Benstead
baf7cf5bdd
Stub out glColorTableEXT
2018-09-20 15:01:13 +01:00
Luke Benstead
e68c051991
Add missing glColorMaterial definition
2018-09-15 11:42:42 +01:00
Luke Benstead
0d0beface3
Fix up some extension aliasing
2018-08-26 19:29:46 +01:00
Luke Benstead
021237f258
Fix a number of issues with texture loading
2018-08-14 09:49:31 +01:00
Luke Benstead
86dd5dd2b2
glCompressedTexImage2D is an ARB extension in OpenGL 1.2.1
2018-08-07 20:49:10 +01:00
Luke Benstead
16d949bfbc
Clean up compressed texture constants and code
2018-08-07 20:22:44 +01:00
Luke Benstead
582a29d267
Add glMultiTexCoord2fARB
2018-08-05 09:09:38 +01:00
Luke Benstead
bebca59796
Allow toggling z clipping
2018-08-01 11:32:07 +01:00
Luke Benstead
51d02ae489
Stub out some of the ARB_framebuffer_object extension
2018-05-20 21:29:04 +01:00
Luke Benstead
396ea82856
Drop all of the old libGL files
2018-05-20 16:16:53 +01:00
Luke Benstead
23e564269b
Fix lighting bugs
2018-05-19 09:17:24 +01:00
Luke Benstead
f9cdefcd81
Replace the entire matrix stack handling to work towards fixing lighting
2018-05-16 21:00:41 +01:00
Luke Benstead
4b8991e45f
More immediate mode
2018-05-12 14:54:06 +01:00
Luke Benstead
146be442f4
Start reimplementing immediate mode and removing dead code
2018-05-12 14:39:20 +01:00
Luke Benstead
e96d379796
Stub out lighting functionality
2018-05-12 14:05:54 +01:00
Luke Benstead
62e001c288
Reimplement or refactor Texturing, State, and Drawing
...
Things working:
- glDrawArrays / glDrawElements et al.
- Texturing
- Blending
Things missing:
- Lighting
- Multitexturing
- Near Z-clipping
- Framebuffer extension
- Immediate mode
2018-05-11 15:39:28 +01:00
Luke Benstead
42d2a1e091
Refactor glTexImage2D and associated enums
...
- Enums now respect GLs defined ranges
- Short formats are now correctly supported
- Duplicated (and incorrect) enums removed
- New conversions supported
- Fixes a number of bugs
2018-05-01 09:07:09 +01:00
Luke Benstead
4bf579f7bc
Replace custom glKosLightAmbientX functions with glLightModelfv
2017-07-23 18:58:57 +01:00
Luke Benstead
1a80a70614
Implement gl(Enable|Disable)ClientState
2017-05-31 19:32:46 +01:00
Lawrence Sebald
0fa6e42b55
Remove +x permissions bits...
2016-01-03 22:24:52 -05:00
Lawrence Sebald
9fc75b6772
Add glGetError() and gluErrorString().
2016-01-03 22:23:32 -05:00
Josh Pearson
5fce3e1897
Added Texture Format Conversion to glTexImage2D, Added GL_TEXTURE Matrix Transformations when glEnable(GL_KOS_TEXTURE_MATRIX), various bug fixes, few more API functions added
2015-09-06 09:47:57 -07:00
Josh Pearson
763ec99483
Added multi-texture support and glCompressedTexImage2D to the GL API
2015-01-04 15:07:57 -08:00
Josh Pearson
8b276ca731
Fixed const pointer function definitions
2014-12-19 19:07:11 -08:00
Josh Pearson
97dc25918a
First major update to the API 9-28-14
2014-09-28 19:40:41 -07:00
U-PH3NOM-PC\PH3NOM
b6e9ff70b5
Fixed bugs reported as of 9-06-2014
2014-09-07 15:41:26 -07:00
Lawrence Sebald
be969bd840
Normalize line endings in libgl to LF rather than CRLF.
2014-08-29 15:56:23 -04:00
Lawrence Sebald
61b809f5cd
Add glGetFloatv() for reading matrices as requested in #dreamcastdev on IRC.
...
This commit also adds a new glKosGetMatrix() function that does the same thing,
but isn't limited to the modelview, projection, and texture matrices, as
glGetFloatv() is.
2014-08-29 15:38:42 -04:00
U-PH3NOM-PC\PH3NOM
0711f10b1f
#Fixed glVertex2f to perform as the standard defines. glKosVertex2f is added for direct submission to PVR of 2D vertices with no transform.
2014-08-26 18:11:41 -07:00
Lawrence Sebald
4390d627bf
This should hopefully fix the C++ compilation issues with libgl.
2014-08-18 19:16:32 -04:00
U-PH3NOM-PC\PH3NOM
5c5a0196c5
#Initial Commit for new Open GL API, replacing the old KGL
2014-08-16 11:09:37 -07:00
Harley Laue
8e2359a1d0
This should work again
2012-07-06 09:01:41 -05:00