Commit Graph

579 Commits

Author SHA1 Message Date
Francisco Javier Trujillo Mata
162f34c1f1 Fix mipmapping sample 2025-05-17 00:52:57 +02:00
Francisco Javier Trujillo Mata
01cde97b88 Merge pull request #290 from fjtrujy/take_screenshot
Add an option to take an screenshot in the `debug` library.
2025-05-14 12:51:14 +02:00
Wouter Wijsman
0f6bf946fc Merge pull request #291 from sblondon/fix-replace-statement
fix: replace a statement by an assigment
2025-05-14 09:54:37 +02:00
Wouter Wijsman
17f820df2a Merge pull request #292 from sblondon/clean-remove-unused-variables
clean: remove unused variables
2025-05-14 09:52:35 +02:00
Wouter Wijsman
e0fc8d7102 Merge pull request #289 from fjtrujy/gu_magic_numbers
Remove magic numbers from clear function
2025-05-14 09:33:19 +02:00
Stéphane Blondon
e54a823b03 fix: replace a statement by an assigment
The statement had no effect. It's in a block intended for initialization (as shown in the line 639) so an assigment was probably the intended behaviour.

The graphical output is the same with or without this patch.

Detected by a warning from gcc:

spharm.c: In function ‘SpharmGenTest’:
spharm.c:640:15: warning: statement with no effect [-Wunused-value]
  640 |       objtype == 0;
      |       ~~~~~~~~^~~~
2025-05-13 22:27:15 +02:00
Stéphane Blondon
29f114c84c clean: remove unused variables
Fix several unused variables detected by gcc and displayed such as:

morphskin.c:270:37: warning: variable ‘ss’ set but not used [-Wunused-but-set-variable]
  270 |                         float cs,ct,ss,st;
      |                                     ^~
morphskin.c:270:31: warning: variable ‘cs’ set but not used [-Wunused-but-set-variable]
  270 |                         float cs,ct,ss,st;
      |                               ^~
2025-05-13 22:25:34 +02:00
Francisco Javier Trujillo Mata
ee30cb2668 screenshot example 2025-05-13 22:08:54 +02:00
Francisco Javier Trujillo Mata
38b8f5f2cc Add implementation for bitmapwrite 2025-05-13 22:08:54 +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
fbdb62c71f Create function header 2025-05-13 21:00:19 +02:00
Francisco Javier Trujillo Mata
2a6f9b8582 Merge pull request #288 from fjtrujy/missingRegions
`scissor` misses `REGION1` and `REGION2` commands
2025-05-13 17:55:21 +02:00
Francisco Javier Trujillo Mata
a47fce5a52 Fix missing regions 2025-05-13 17:36:50 +02:00
Francisco Javier Trujillo Mata
ee208d234a Merge pull request #286 from fjtrujy/sceGuFinalChanges
Another `scegu` improvement
2025-05-12 21:51:16 +02:00
Wouter Wijsman
e4831cf068 Merge pull request #287 from MotoLegacy/cypress/right-stick-support
Document and explicitly declare right analog stick input; display right analog stick in controller sample
2025-05-11 13:52:52 +02:00
MotoLegacy
4cfccb0785 Document and explicitly declare right analog stick input; display right analog stick in controller sample 2025-05-10 11:55:02 -07:00
Francisco Javier Trujillo Mata
55714928f0 Some clean ups and defines 2025-05-10 19:17:10 +02:00
Francisco Javier Trujillo Mata
f2b1155689 Merge pull request #285 from fjtrujy/magic_numbers_gu
Some clean ups around `sceGu`
2025-05-10 00:41:40 +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
Wouter Wijsman
7f1ca0ab34 Merge pull request #284 from sblondon/remove-unused-variables
clean: remove unused variables
2025-05-07 09:02:13 +02:00
Stéphane Blondon
65bf2b5997 clean: remove unused variables
Fix several unused variables detected by gcc and displayed such as:

morphskin.c:270:37: warning: variable ‘ss’ set but not used [-Wunused-but-set-variable]
  270 |                         float cs,ct,ss,st;
      |                                     ^~
morphskin.c:270:31: warning: variable ‘cs’ set but not used [-Wunused-but-set-variable]
  270 |                         float cs,ct,ss,st;
      |                               ^~
2025-05-06 22:33:55 +02:00
Wouter Wijsman
95da2b307e Merge pull request #282 from fjtrujy/improve_scgeu
Keeps improving the `sceGu` definitions and implementation
2025-05-06 22:22:15 +02:00
Wouter Wijsman
3b3dcdecd6 Merge pull request #283 from sblondon/remove-unused-macros
Remove unused macros and magical values
2025-05-06 15:50:58 +02:00
Stéphane Blondon
79ac3b7d71 refacto: replace magical values
Hexadecimal constants are replaced by the same value, defined by the FRAME_SIZE macro. These changes are based on the same replacement already done in clut.c.
2025-05-06 13:57:12 +02:00
Stéphane Blondon
3c93bc03dc clean: remove unused macros 2025-05-06 08:19:16 +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
3af3247136 Merge pull request #277 from fjtrujy/sceGu_parallel
Adding a `sceGU` sample dealing with CPU & GPU parallelization
2025-05-04 11:19:19 +02:00
Francisco Javier Trujillo Mata
067e6d446f Add double list example 2025-05-03 17:16:29 +02:00
Francisco Javier Trujillo Mata
915acbd4d2 Improve sceGuStart 2025-05-03 16:25:04 +02:00
Wouter Wijsman
6ce791c34e Merge pull request #281 from sblondon/remove-unused-constant
clean: remove unused macros
2025-05-03 00:52:41 +02:00
Stéphane Blondon
05aa23c994 clean: remove unused macros 2025-05-01 20:31:37 +02:00
Wouter Wijsman
46482f38fd Merge pull request #280 from sblondon/fix-doxygen-coc-warning
add Code of Conduct in generated documentation
2025-04-29 09:30:47 +02:00
Stéphane Blondon
277153114c add Code of Conduct in generated documentation
The Code of Conduct (CoC) was not included in the documentation generated by Doxyfile.
With this patch, the CoC is included, the link in the index exists and this warning is fixed:

[...]README.md:160: warning: unable to resolve reference to '/home/stephane/src/pspsdk/CODE_OF_CONDUCT.md' for \ref command
2025-04-29 01:19:25 +02:00
Wouter Wijsman
92a822d1b6 Merge pull request #279 from TheHellcat/cmake_eboot_psar
added 'data.psar' handling to create_pbp_file
2025-04-22 09:52:38 +02:00
Hellcat
10361e5033 added 'data.psar' handling to create_pbp_file 2025-04-19 18:20:34 +02:00
Wouter Wijsman
85e3577cb5 Merge pull request #278 from sblondon/refactor-a-constant
refacto: same constant declaration become unique
2025-04-16 15:49:42 +02:00
Stéphane Blondon
a1e1b0b73f refacto: same constant declaration become unique
It's clearer to declare 'decrypted' outside the conditional compilation.
Only the two other declarations are different.
2025-04-16 13:35:33 +02:00
Wouter Wijsman
632b1c758c Merge pull request #276 from fjtrujy/improve_sceGu
Improve `sceGu`
2025-04-10 22:09:28 +02:00
Francisco Javier Trujillo Mata
c926419761 Stop using magic numbers for sceGuStart 2025-04-10 20:15:47 +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
0767ece731 Merge pull request #275 from sblondon/change-doxygen-output-directory
Move generated documentation in dedicated directory
2025-04-10 09:35:21 +02:00
Stéphane Blondon
30f71a2a61 clean: delete uneeded .gitkeep file
doc/ directory contains style.css file so the directory is not empty.
2025-04-10 09:28:07 +02:00
Stéphane Blondon
e9905349fb move generated documentation in dedicated directory
The documentation generated by Doxygen moves from doc/ to doc/build/.
There is a problem with using doc/ directory because when Doxygen produces the documentation, the doc/ directory is replaced so its content (style.css file) disappears.
2025-04-10 09:27:52 +02:00
Wouter Wijsman
3e11ca529c Merge pull request #274 from pspdev/rebrand-pspdev
Fix wording to be inline with rebranding of PSPDEV
2025-04-08 14:47:52 +02:00
Wouter Wijsman
790c03b071 Fix wording to be inline with rebranding of PSPDEV 2025-04-08 14:00:51 +02:00
Diamond Rivero
8c79b45439 Merge pull request #273 from sblondon/fix-doxygen-obsolete-warnings
doc: fix obsolete tags warnings
2025-04-08 12:59:12 +08:00
Stéphane Blondon
fc8768fcf8 doc: fix obsolete tags warnings
When Doxygen generates the documentation (via `make doxygen-run`), it displays warnings such as:
warning: Tag 'OUTPUT_TEXT_DIRECTION' at line 102 of file 'Doxyfile' has become obsolete.
         To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"

The patch contains only the modifications done by `doxygen -u`.
2025-04-07 21:49:23 +02:00