Commit Graph

247 Commits

Author SHA1 Message Date
Luke Benstead
1a80a70614 Implement gl(Enable|Disable)ClientState 2017-05-31 19:32:46 +01:00
Luke Benstead
f36fc72334 Default to CCW front faces 2017-05-31 19:22:38 +01:00
Luke Benstead
cdaee856cc Fix up normal stride 2017-05-31 14:34:43 +01:00
Luke Benstead
6829dcada4 Only enable multitexturing if a texture is bound to unit 1 2017-05-31 13:34:30 +01:00
Luke Benstead
1307f43bc5 Fix texture coordinate stride 2017-05-31 12:36:01 +01:00
Luke Benstead
5fef5546ee Take into account vertex stride when transforming positions 2017-05-31 11:17:55 +01:00
Luke Benstead
6aacdcf573 Fix start offset of glDrawArrays for colours and vertices 2017-05-31 11:12:34 +01:00
Luke Benstead
a51cedad79 Fix vertex stride 2017-05-31 11:07:28 +01:00
Luke Benstead
46b927fa8a Fix glColorPointer pointer arithmetic by using bytes consistently and properly calculating stride 2017-05-31 10:59:32 +01:00
Lawrence Sebald
a1185f3369 glIsEnabled(GL_CULL_FACE) should return the status of culling, not fog. 2017-05-23 09:11:52 -04:00
jlf65
c960b24f07 Handle change in texture parameters in glCompressedTexImage2D 2016-08-02 15:07:27 -06:00
jlf65
b897a2abad Handle change in texture parameters in glTexImage2D 2016-08-02 14:42:09 -06:00
Lawrence Sebald
30f408caa3 Fix a store-queue related issue in the primitive submission code.
The primitive list submission code in libgl never sets the QACR0 or QACR1
registers when it uses the store queues. Thus, if any other code accesses the
store queues, rendering may well grind to a halt.

This fixes the issue by setting QACR0 and QACR1 each frame.

Note: This solution is still not thread-safe. Of course, many GL implementations
are not thread-safe at all...
2016-07-02 23:37:04 -04: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
dd765f80d6 Foramt cleanup on gl-rgb.c 2015-09-09 11:45:09 -07:00
Josh Pearson
3df4244bc2 Formatting cleanup, and cleanup on gl-fog.c 2015-09-09 11:25:51 -07:00
Lawrence Sebald
46ed1d5353 Don't allocate texture conversion space on the stack, as it is likely to overflow the stack and corrupt heap memory. 2015-09-09 10:39:22 -04: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
4af2c8aacc Added support for 2D vertices using glDrawArrays. Fixed a small bug in matrix transform stack. 2014-12-20 16:49:56 -08:00
Josh Pearson
8b276ca731 Fixed const pointer function definitions 2014-12-19 19:07:11 -08:00
Josh Pearson
2b37d7ba61 Fixed change that removed allignment on L vector on gl-light.c 2014-12-13 15:50:47 -08:00
Josh Pearson
704a46e8dc Fixed stride on glDrawArrays, clean up on lighting code, added glRect function 2014-12-13 15:17:57 -08:00
Lawrence Sebald
8c34258eb4 Make sure output parameters to _glKosSpotlight() are aligned to an 8-byte boundary. 2014-10-25 19:41:00 -04: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
092a04cccf Ignore the noise... Just testing something. 2014-08-30 13:33:02 -04:00
Lawrence Sebald
be969bd840 Normalize line endings in libgl to LF rather than CRLF. 2014-08-29 15:56:23 -04:00
Lawrence Sebald
5daf045d0c Add .gitattributes file for setting line endings... 2014-08-29 15:53:39 -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
U-PH3NOM-PC\PH3NOM
d5077ae105 #Initial Commit for new Open GL API, replacing the old KGL 2014-08-16 11:13:38 -07: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
efe60e2ccd Added gitignore 2012-07-17 16:47:56 -05:00
Harley Laue
8e2359a1d0 This should work again 2012-07-06 09:01:41 -05:00
Harley Laue
90361d1ecb Removing all the old CVSID stuff from the kos-ports tree.
I think this is the rest of them for kos-ports.
2008-10-22 07:25:38 +00:00
Harley Laue
dc87356760 Removing all the old CVSID stuff from the kos-ports tree. 2008-10-21 22:31:18 +00:00
Atani
10a8b26180 glVertex2f patch 2007-07-18 18:15:56 +00:00
Sam Steele
c04bf69469 KGL: Support GL_TRIANGLE_FAN 2005-11-19 17:30:49 +00:00
Dan Potter
7a1053faea kos-ports: adapt for Newlib usage in KOS 2004-08-07 04:30:56 +00:00
Dan Potter
058fc015e1 Build system improvements, and finished kos-ports tree separation.
Please see RELNOTES and doc/environ.sh.sample because you will need
a new environ.sh file (or at least you'll need to spread any local
mods to environ.sh and the new environ_base.sh). This still doesn't
work for any platform but DC but I'm working on that.
2003-11-30 00:02:59 +00:00
Dan Potter
cbe2111cd8 Updated changelog/relnotes, moved most addons into their own tree 2003-10-13 00:41:10 +00:00