Commit Graph

53 Commits

Author SHA1 Message Date
Francisco Javier Trujillo Mata
b1bf44e88a Adding assertions
- Adding assertions to each specific sceGu function
- Also adding printf for verbose output
2025-07-17 21:41:15 +02:00
Francisco Javier Trujillo Mata
541277ebcc Creating libpspgud library 2025-07-13 13:18:23 +02:00
Wouter Wijsman
6a32e2f325 Fix scissor causing graphical issues 2025-07-08 13:25:05 +02:00
Wouter Wijsman
4ec0eef96f Merge pull request #311 from veka0/blend-factor-improvements
Improve blending factors documentation
2025-07-04 00:16:21 +02:00
Wouter Wijsman
8a74665c16 Merge pull request #316 from veka0/sceGuLogicalOp-docs-improvement
Clarify sceGuLogicalOp documentation that color logic op can be used with blending
2025-07-04 00:13:27 +02:00
Veka0
a26915c69d Clarify sceGuLogicalOp documentation 2025-07-03 13:47:57 +02:00
Veka0
50557e178d Clarify csa parameter in sceGuClutMode documentation 2025-07-03 13:01:50 +02:00
Veka0
273a9196eb Improve blending factors documentation 2025-07-03 12:13:17 +02:00
Francisco Javier Trujillo Mata
ac445612d4 Some other SIGNAL usage improvement 2025-06-23 17:26:24 +02:00
Francisco Javier Trujillo Mata
b5c93d8598 Improve sceGuSignal usage 2025-06-23 17:26:20 +02:00
Francisco Javier Trujillo Mata
d666830ae1 Improve sceGuClear
- Fix wrong color of first vertex when slow mode
- Speed up clear-fast when 32 bits mode
2025-06-13 00:33:07 +02:00
Francisco Javier Trujillo Mata
afc560e82e Add missing _sceGuUpdateStallAddr 2025-06-11 19:19:10 +02:00
Francisco Javier Trujillo Mata
7373322962 Fix sceGuVIewport with odd center values 2025-06-10 18:22:45 +02:00
Francisco Javier Trujillo Mata
be9540d033 Merge pull request #301 from fjtrujy/sceGuResetGlobalVariables
Make fully private the `sceGuResetGlobalVariables`
2025-06-09 23:46:55 +02:00
Francisco Javier Trujillo Mata
b03dd2acff Make sceGuResetGlobalVariables a private function 2025-06-09 23:19:57 +02:00
Francisco Javier Trujillo Mata
e59e71e45b Improve the sceGuEndObject implementation 2025-06-09 23:17:55 +02:00
Francisco Javier Trujillo Mata
da602c8e7a Improve sceGuLight* functions 2025-06-09 17:29:51 +02:00
Francisco Javier Trujillo Mata
f7fc5117d4 Fixing sceGUScissor 2025-05-18 14:37:34 +02:00
Francisco Javier Trujillo Mata
ac5f732701 Remove magic numbers from clear function 2025-05-13 21:59:22 +02:00
Francisco Javier Trujillo Mata
a47fce5a52 Fix missing regions 2025-05-13 17:36:50 +02:00
Francisco Javier Trujillo Mata
55714928f0 Some clean ups and defines 2025-05-10 19:17:10 +02:00
Francisco Javier Trujillo Mata
4743678478 Improvements around STALL 2025-05-10 00:11:14 +02:00
Francisco Javier Trujillo Mata
2ecbb9d8b8 Fixing remaining magic numbers 2025-05-08 20:48:18 +02:00
Francisco Javier Trujillo Mata
36a4b80f91 Clean ups around sceGu
- Fix sceGuBreak
- Fix sceGuContinue
- Fix sceGuDrawArrayN
- Fix sceGuMorphWeight
- Remove unnecessary 0xffffff as it is done by sendCommandi
- Improve the name of some parameters
- Create and use GU_MAX_STATUS
- Remove magic numbers in `sceGuMaterial`
- Remove magic numbers in `sceGuMorphWeight`
- Remove magic numbers in `sceGuSetMatrix`
- Remove magic numbers in `sceGuSignal`
2025-05-04 22:09:01 +02:00
Francisco Javier Trujillo Mata
915acbd4d2 Improve sceGuStart 2025-05-03 16:25:04 +02:00
Francisco Javier Trujillo Mata
86f7e0deed Stop using magic numbers for sceGuSync 2025-04-10 20:15:47 +02:00
Francisco Javier Trujillo Mata
6364b27f57 Use proper values for sceGuSync 2025-04-10 20:15:35 +02:00
Francisco Javier Trujillo Mata
b1fcb2b738 Improve finish 2025-04-10 20:15:16 +02:00
Wouter Wijsman
a79285ce1d Use define to set alignment for vram assignment 2024-12-04 11:01:22 +01:00
Wouter Wijsman
28c294881d Align memory to 16 when giving out vram for textures and buffers 2024-12-04 11:01:22 +01:00
Francisco Javier Trujillo Mata
bffb51b4a1 Fix return value for sceGuSendList 2024-08-19 14:30:03 +02:00
Francisco Javier Trujillo Mata
0f124ac986 Use texture int for TextFlush 2024-08-18 19:30:42 +02:00
Francisco Javier Trujillo Mata
c75a9c89dc Clean up some methods 2024-08-18 13:51:46 +02:00
Francisco Javier Trujillo Mata
a04e1a79ae Use the same GU Init as official doc 2024-08-09 16:53:20 +02:00
Francisco Javier Trujillo Mata
191880f973 Improving SCE GU readability 2024-08-09 08:25:54 +02:00
Wouter Wijsman
76bae20779 Add guGetDisplayState function to libgu
This function allows users to get if the display is turned on in libgu.
This can be useful for libraries like SDL, which want a way to check if
it is before trying to display the on-screen keyboard or a native
message dialog, since those do not work before libgu has been fully
initialized.
2024-07-15 12:30:24 +02:00
Wouter Wijsman
ff07d84723 Add gu in front of vram functions 2024-07-14 17:01:20 +02:00
Wouter Wijsman
7b39035744 Remove incorrect part of a comment in pspgu.h 2024-07-12 21:12:37 +02:00
Wouter Wijsman
0e89eea634 Improve wording in documentation for getStaticVramTexture 2024-07-12 13:33:38 +02:00
Wouter Wijsman
cf3894d3e5 Add getStaticVramBuffer getStaticVramTexture 2024-07-12 13:22:13 +02:00
Sokus
fa9b2c7f25 Refactor vertex data layout description for sceGuDrawArray 2024-02-12 22:48:33 +01:00
Sokus
c992832f0b Fix documentation on vertex layout for sceGuDrawArray 2024-02-11 11:06:17 +01:00
Crow-bar
d71a9da389 gu: speedup 2024-02-02 14:49:12 +03:00
Beyley Thomas
a5473d0451 Use builtin_clz on all codepaths 2023-12-22 09:45:10 -08:00
Beyley Thomas
04756ae9bc Move clang path to __builtin_clz 2023-09-17 00:55:12 -07:00
Beyley Thomas
fcf9ed6d35 gu: Add clang-friendly codepath 2023-09-15 12:03:57 -07:00
Nathan Bourgeois
3f22a7ec08 Fixed documentation -- added 8 bit notes. 2023-06-27 08:08:05 -04:00
Nathan Bourgeois
09d3a7fd39 Documentation: Update sceGuDrawArray() for 16-bit vertices. 2023-06-26 23:57:38 -04:00
Paul Sajna
1f37590ef4 fix doxygen addgroup syntax 2020-10-03 13:02:09 -07:00
Carsten Teibes
6f8e67656e Silence build output
Do not pass CPPFLAGS twice
2020-05-16 02:58:04 +02:00