Commit Graph

53 Commits

Author SHA1 Message Date
Luke Benstead
7c33f13438 Allow configuring initial capacities 2019-03-13 15:43:50 +00: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
259a82e69f Add support for multiple shared palettes 2019-03-10 11:18:56 +00:00
Luke Benstead
3c3018450f Support twiddled and non-twiddled paletted textures 2019-03-03 18:49:33 +00:00
Luke Benstead
c3cd3b936c Add definition of GL_INTENSITY 2019-02-23 21:29:45 +00:00
Luke Benstead
6d2c47bda1 Implement GL_EXT_shared_texture_palette 2019-02-21 21:58:31 +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
d36469faaf Start implementing a multitexture example 2018-08-17 07:09:53 +01:00
Luke Benstead
021237f258 Fix a number of issues with texture loading 2018-08-14 09:49:31 +01:00
Luke Benstead
4c99dd740a Add support for mipmapped compressed textures 2018-08-08 09:50:57 +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
9167869633 Add gluOrtho2D, ortho2d example and fix glOrtho 2018-05-29 19:39:27 +01:00
Luke Benstead
b6b1591010 Add the first nehe sample and make it work 2018-05-29 13:12:38 +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
1356ae352c Begin experimental new renderig code 2018-05-05 20:38:55 +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
Lawrence Sebald
25ba67b9b1 Fix compilation inside the new kos-ports tree. 2015-05-08 22:35:16 -04: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
9dde472293 #Fixed problem in glut.h causing conflict when linking the library against c++ programs 2014-08-17 15:03:16 -07:00
U-PH3NOM-PC\PH3NOM
aca082fa8b #Initial Commit for new Open GL API, replacing the old KGL 2014-08-16 11:15:06 -07:00