Commit graph

265 commits

Author SHA1 Message Date
Crayon2000
49ffb512b5 [CHG] Doc improvement 2009-11-11 23:52:36 +00:00
N0NameN0
8f2e7413e5 [CHG] Optimization in tile calculation
i only modded DrawTile, if this mod is ok for all and fully tested
we need to make this change to all functions the needs calculation like this.
(drawpart, drawtilequad, etc...)
2009-11-10 09:50:41 +00:00
Crayon2000
db1246ce52 [CHG] Clean comments for doc 2009-11-09 02:36:22 +00:00
N0NameN0
54a20ad5ca [CHG] Modded Screen2Texture to be able to specify parameters
with this change you can make real GX compositing now ;)
2009-11-08 16:54:14 +00:00
Crayon2000
167bc0b7e3 [CHG] Undo r192 for backward compatibility 2009-11-08 02:37:11 +00:00
N0NameN0
c86e2a8d70 [ADD] GRRLIB_DrawPart to draw a specific part of a Texture. 2009-11-07 13:26:03 +00:00
Crayon2000
3aa0b23d8f [CHG] GRRLIB_FillScreen is now using GX_SetCopyClear instead of calling GRRLIB_Rectangle 2009-11-06 23:43:55 +00:00
Crayon2000
2e8876f899 [CHG] GRRLIB_Rectangle is calling directly GX_Begin/GX_End
[CHG] Documentation improvement
2009-11-06 22:55:01 +00:00
Crayon2000
0ac411a9e8 [CHG] Using some macro to make the code easier to read 2009-11-06 16:58:14 +00:00
Crayon2000
3121e1061a [CHG] Deleted __HAVE_GRRLIB__ because it was not used. If someone need it, just replace it with __GRRLIB_H__ 2009-11-04 17:32:41 +00:00
Crayon2000
0e015068fe [CHG] Typo in GRRLIB_DrawImg and DrawTile (scaleX should be scaleY) 2009-10-30 05:45:02 +00:00
Crayon2000
0c784c800d [BUG] template was not working on devkitPro 18
[CHG] pngu.h is needed in GRRLIB_texSetup.h for GRRLIB_ScrShot
[CHG] pngu.h and jpeglib.h are not needed in GRRLIB_texSetup.h
2009-10-21 01:34:15 +00:00
Crayon2000
01adcdf9b9 [CHG] math.h is not needed in GRRLIB_fbSimple.h 2009-10-20 22:21:01 +00:00
Crayon2000
1e84350468 [CHG] libpng 1.2.29 updated to version 1.2.40 2009-10-18 04:12:45 +00:00
Crayon2000
4f5fbbf2d4 [CHG] Change the definition of GRRLIB_ScrShot. Screenshots could be created on other interfaces than SD card. 2009-10-16 22:31:32 +00:00
Crayon2000
414ccec0f5 [BUG] Corrected bug #5 submitted by imruon 2009-10-16 21:38:40 +00:00
Crayon2000
fff851b34b [CHG] Deleted the Temporary fix (-DNOGUFIX) 2009-10-16 20:59:08 +00:00
Crayon2000
8c05d9ac06 [CHG] Renamed GRRLIB.html to README.html
[CHG] Deleted the "Temporary fix" README.txt, not needed with devkitPro 18
2009-10-15 14:52:42 +00:00
Crayon2000
fc00cfff24 [BUG] Correct the problem reported by flarup during installation 2009-10-09 17:22:05 +00:00
Crayon2000
b7151bcad5 [CHG] Corrected some typos in descriptions 2009-10-06 18:07:03 +00:00
Crayon2000
5d4eec691b [CHG] Library installation script is improved (batch file) 2009-09-18 22:55:49 +00:00
csBlueChip
42b1a60bdb [Issue #4] corrected headers 2009-09-13 18:19:07 +00:00
csBlueChip
4278542057 [CHG] Modified SetPixel() and GetPixel() so they each request half the number of RAM accesses 2009-09-13 18:07:03 +00:00
csBlueChip
f127a121ee [CHG] Corrected \n\r EOL markers to \n and renamed "makefile"'s to Makefile 2009-09-13 14:27:01 +00:00
csBlueChip
b56e7e6672 renamed -readme- file to avoid confusion in linux 2009-09-13 03:58:16 +00:00
Crayon2000
b96657178f [CHG] Blend mode functions now using GRRLIB_blendMode 2009-09-09 21:35:32 +00:00
Crayon2000
70ece3cdc5 [BUG] Fixed issue #2 2009-09-09 15:04:23 +00:00
csBlueChip
e0433ecf89 Minor documentation corrections 2009-09-08 09:31:06 +00:00
csBlueChip
1c10e17780 [CHG] Fix critical bug introduced in 151 2009-09-05 17:05:31 +00:00
Crayon2000
622e74b66c [CHG] Nothing important (code formating) 2009-09-04 16:13:51 +00:00
csBlueChip
b6e0bef531 [ADD] Added sepia function 2009-09-04 15:29:38 +00:00
Crayon2000
f57e01bcfe [CHG] Some parameters were missing for doxygen documentation 2009-09-04 14:10:38 +00:00
csBlueChip
c81b5bacb3 /more/ whitespace cleanup 2009-09-03 03:09:02 +00:00
csBlueChip
1951835c9d More whitespace changes & comments 2009-09-03 02:58:58 +00:00
csBlueChip
9bd2aebaec [CHG] Whitespace - A single line of code should NEVER reach 300 characters without SOME formatting! 2009-09-03 01:15:41 +00:00
csBlueChip
10a1148791 Added some comments to Init() 2009-09-02 15:34:46 +00:00
Xane
3d12a4f77e [CHG] Adjusted the visible screen width for 4:3 screens also, circles should now look like circles... 2009-09-01 00:19:00 +00:00
csBlueChip
9373faaf5e [ADD} Added fileIO functions from Addon (and ensured all examples still compile) 2009-08-30 21:44:05 +00:00
csBlueChip
159f56e252 [CHG] You should not cast malloc/calloc/realloc/etc ...if you compiler is returning errors - include the right header file! (normally stdlib) 2009-08-30 21:20:00 +00:00
Crayon2000
b46057fff7 [CHG] Some doxygen improvement 2009-08-28 18:11:33 +00:00
csBlueChip
ccb6ec7cf5 [CHG] Ensure Init and Exit do not call twice - also return something useful from Init if it fails 2009-08-28 15:04:43 +00:00
csBlueChip
34e06e1dab [CHG] Another NULL pointer check 2009-08-28 14:35:05 +00:00
Crayon2000
34a1991cd9 [CHG] Make sure a NULL pointer is not free'd 2009-08-26 01:59:16 +00:00
Crayon2000
c8abda9052 [CHG] GRRLIB_Compose is now using 4 spaces for tabs (instead of 2) 2009-08-25 00:53:43 +00:00
csBlueChip
08c03a8de9 Completed doxygen headers for .h files 2009-08-23 16:19:21 +00:00
csBlueChip
982f5bf140 remove GRRLIB_addon from main GRRLIB directory to the nonameno03 example code ... some of the functionality of the the addon code is expected to be ported back to the GRRLIB main library 2009-08-23 14:48:04 +00:00
Crayon2000
96a383a4b1 [CHG] Now using doxygen 1.6.0 with search enabled (file description are still missing) 2009-08-22 15:45:24 +00:00
csBlueChip
25900af95f [CHG] Corrected credits (sorry Crayon) 2009-08-20 09:21:01 +00:00
Crayon2000
a1d7b870cd [CHG] Code formatting, not that much ;) 2009-08-19 23:13:44 +00:00
csBlueChip
adb741ccf6 [CHG] Implemented JESPA's optimised plot and line algorithms 2009-08-19 21:40:13 +00:00
Crayon2000
515b4a994a [CHG] Modification for Doxygen documentation 2009-08-19 17:47:29 +00:00
csBlueChip
5e186828b0 Added archive files missed during previous check-in 2009-08-19 09:40:10 +00:00
csBlueChip
ee128f47bc lib-conversion moved to trunk, version is now 4.1.0 2009-08-13 17:47:30 +00:00
csBlueChip
68a63bf966 Makeway for v4.0.1 2009-08-13 17:39:09 +00:00
Crayon2000
c1ac0d5048 [CHG] Code optimization, thanks to BlueChip 2009-07-23 15:48:44 +00:00
Crayon2000
839240c498 [CHG] Code formating 2009-07-18 17:50:31 +00:00
N0NameN0
948bf1de99 [ADD] GRRLIB_DrawTileQuad()
[ADD] GRRLIB_addon_Init()
[ADD] GRRLIB_addon_Exit()
[ADD] GRRLIB_addon_Button
[ADD] nonameno03 sample code howto use button
[ADD] Font and button gfx for addon use
2009-03-22 23:51:26 +00:00
N0NameN0
609bc1b0e1 [CHG] Move GRRLIB_Screen2Texture to GRRLIB.C instead of addon
[ADD] A Sample Code to Show the GRRLIB_Screen2Texture conversion BUG
2009-03-22 23:04:46 +00:00
Crayon2000
83f0679add [BUG] Addon lib is working
[CHG] Added GRRLIB_ScrShot function to lesson1
2009-03-21 23:29:29 +00:00
Xane
27e586c4a3 [NEW] Added a quick display fix for PAL 50hz Users. 2009-03-21 21:24:01 +00:00
N0NameN0
cbe8627249 [CHG] Created a GRRLIB.c/.h and move GRRLIB_ScrShot and
GRRLIB_LoadTextureFromFile to it since it's not really Lib related. 
(need to fix warning)
2009-03-19 00:22:25 +00:00
Crayon2000
e9bb506e09 [CHG] Examples are using GRRLIB_FreeTexture 2009-03-17 03:38:34 +00:00
N0NameN0
7b3c6c0d16 [NEW] Added LoadTextureFromFile can be usefull ;) 2009-03-15 18:57:28 +00:00
Crayon2000
5bb6d7d5a4 [NEW] Added GRRLIB_FreeTexture to free memory 2009-03-13 22:27:40 +00:00
Xane
af79603ae4 [CHG] Corrected an issue when drawing shapes first. 2009-03-12 17:13:33 +00:00
Xane
27ecf55edf [CHG] Declared all inline functions and optimized stuff. 2009-03-12 16:35:13 +00:00
Xane
269cc33794 [CHG] Fixed an issue where the screen started to glitch when drawing outside the viewport. 2009-03-12 01:41:49 +00:00
Crayon2000
eb1002f395 [CHG] A bit more secure, dealing with NULL pointer after memory allocation 2009-03-11 22:02:35 +00:00
Xane
61db0e3998 [CHG] Several optimizations 2009-03-11 19:48:36 +00:00
Xane
67987d304b [NEW] Added an example showing the different blending modes.
[CHG] Updated all examples to work with the current revision.
[CHG] Optimized different things~
2009-03-11 17:23:41 +00:00
Xane
ea276d1dae [CHG] Fixed an issue with blending constants. 2009-03-10 21:49:05 +00:00
Xane
4ebd507bd5 [NEW] Added 4 blending modes: Additive, Alpha Light, Multiply and Invert Color. For best results, use alpha-less black/white textures.
[CHG] Improved stability when closing a GRRLIB application.
2009-03-10 21:27:42 +00:00
Xane
9608deb240 [CHG] Now checks if the struct is valid / not NULL before drawing it. 2009-03-10 01:46:00 +00:00
Xane
6197d0e717 [CHG] Modified all functions to use the pointer of the structure instead. Allows the deletion of the whole structure when needed. 2009-03-10 01:18:48 +00:00
N0NameN0
49c5e0df03 [CHG] Optimizing "uggly" u32 convertion ;) 2009-03-09 23:41:23 +00:00
Xane
1e934418d1 [ADD] Added BRRLIB_GetColor to convert RGBA values to an u32 color.
[CHG] Renamed GRRLIB_FBReadPixel to GRRLIB_GetPixelFromFB;
2009-03-09 23:31:41 +00:00
Xane
b120658463 [ADD] Added GRRLIB_FBReadPixel to read pixels directly from the FB.
[CHG] Optimized PNGU's YCbCr algorithm, allowing a full spectrum of RGB colors (0 - 255).
2009-03-09 22:07:47 +00:00
Crayon2000
a9c6b7043f [NEW] doxygen project is included 2009-03-09 15:01:47 +00:00
N0NameN0
acd4ffb972 [CHG] change u32 color to an array for differents primitive allowing
better control.
2009-03-09 14:17:05 +00:00
Xane
1a0b496d3b [CHG] Say goodbye to GRRLIB_SetOffset.
[CHG] SetMidHandle can now be turned on/off.
2009-03-09 02:08:28 +00:00
Xane
bd14db7c46 [CHG] Separated SetHandle and SetOffset for more control when rotating. 2009-03-09 01:43:03 +00:00
Xane
e4152ff067 [CHG] Fixed the rotation's handle of tiled images. 2009-03-09 00:47:58 +00:00
Xane
a6df7ea613 [CHG] Fixed a rarely occurring glitch when using pointers. 2009-03-09 00:40:26 +00:00
Xane
67f7978884 [CHG] Fixed an error in the LinkedList. 2009-03-08 21:39:26 +00:00
Xane
2bed5b3d46 [ADD] Added a basic Array List, still under development. 2009-03-08 19:28:23 +00:00
N0NameN0
5836c028de [NEW] GRRLIB_DrawImgQuad (+ new example nonameno01 how to use it)
but it seems a little distorted, perhaps need fix.
2009-03-08 18:56:05 +00:00
Xane
71ac1a21b3 [ADD] Added basic blending support. Still needs some fixing~ 2009-03-08 15:55:31 +00:00
Crayon2000
ab964e34db [CHG] Fixed some doxygen comments 2009-03-08 08:32:43 +00:00
Crayon2000
e27b278a05 [CHG] ScrShot using rmode->fbWidth, rmode->efbHeight instead of harcoded values. 2009-03-07 23:29:24 +00:00
Xane
f979db4aa4 [ADD] Added a basic struct for image settings.
[ADD] Added GRRLIB_SetAntiAlias to turn AntiAliasing on/off. It's enabled by default.
2009-03-07 23:25:23 +00:00
Xane
6c33b53d49 [CHG] When starting an GRRLIB application, the last rendered screen won't display for a split second anymore. 2009-03-07 22:34:44 +00:00
Xane
fc6019ae7b [CHG] Pure cosmetic update - Made the code more readable and fixed some spelling errors. 2009-03-07 22:21:43 +00:00
Xane
c2086fbf93 [CHG] GRRLIB_Exit - Now resets clipping and blacks out the screen before exiting BRRLIB mode.
[CHG] GRRLIB_Init - Made the orthogonal init automatic. (guOrtho)
2009-03-07 21:48:44 +00:00
Xane
6ff0332f42 - Made GRRLIB_LoadTextureJPG & GRRLIB_LoadTexturePNG accessible for public.
- Added GRRLIB_ClipDrawing.
- Added GRRLIB_ClipReset.
- Added GRRLIB_SetHandle.
- Added GRRLIB_SetMidHandle.
- Images can now rotate on a specified handle / hotspot. The default is 0x0 (top left). Can be centered using GRRLIB_SetMidHandle.
2009-03-07 21:19:17 +00:00
Crayon2000
977b523d70 [CHG] Moved "#include <ogc/conf.h>" from .h to .c 2009-03-06 05:07:50 +00:00
N0NameN0
989faaabcc [CHG] Add ScreenShot function and 16:9 correction 2009-03-05 23:40:10 +00:00
Crayon2000
346889e86b [CHG] RawTo4x4RGBA credited to the good person 2009-03-04 23:11:19 +00:00
Crayon2000
ecd85143e6 [CHG] Documentation improvement 2009-03-04 22:32:49 +00:00
Crayon2000
f3a8825d21 [NEW] GRRLIB_Circle function by Dark-Link 2009-02-28 03:57:19 +00:00
Crayon2000
971bc0f9b5 [CHG] Documentation improvement
[CHG] Avoid divisions by zero in GRRLIB_InitTileSet
2009-02-26 22:05:58 +00:00
Crayon2000
ca422e6867 [CHG] Static functions declare at the beginning of the file 2009-02-26 05:04:19 +00:00
Crayon2000
82532896e5 [CHG] Documentation improvement 2009-02-25 19:37:42 +00:00
Crayon2000
46c91a7703 [CHG] Documentation improvement 2009-02-25 06:01:52 +00:00
Crayon2000
0862cb893b [CHG] Formating the code 2009-02-25 05:29:47 +00:00
Crayon2000
8cc6db8605 [CHG] GRRLIB_LoadBMF is working, problem with palette is fixed but some cleaning is still required
[CHG] GRRLIB_FreeBMF is working too
2009-02-22 06:36:31 +00:00
Crayon2000
4d9046eade [CHG] GRRLIB_LoadTextureBMF is still in progress (problem with palette and
some cleaning is needed)
2009-02-20 06:48:07 +00:00
Crayon2000
a1edf64aac [CHG] Started function GRRLIB_LoadTextureBMF (just the beginning) 2009-02-17 05:46:16 +00:00
N0NameN0
3d92f40205 [CHG] Just a little docs error ;) 2009-02-16 23:41:25 +00:00
N0NameN0
9c6a0491eb [CHG] GRRLIB_LoadTexture now autodetect if its JPG or PNG
[DEL] GRRLIB_Credit is gone ;)
[CHG] Scatter removed from lesson1
2009-02-16 23:36:21 +00:00
Crayon2000
5f57f2e346 [NEW] GRRLIB_BMFX_FlipH and GRRLIB_BMFX_FlipV for flipping a texture 2009-02-16 04:38:16 +00:00
N0NameN0
56682fa5ff [NEW] GRRLIB_BMFX_Pixelate and lesson3 to show how to use it ;) 2009-02-15 00:41:32 +00:00
N0NameN0
f457382f43 [NEW] GRRLIB_BMFX_Blur and lesson2 to show how to use it.
Take Care most BMFX are not provided to be used in real time, only to make precalc at code start ;)
2009-02-14 23:04:34 +00:00
Crayon2000
4349944ae7 [NEW] Function to invert all the colors of an image 2009-02-14 06:03:43 +00:00
N0NameN0
3b9d414405 [BUG] No More Memory leak in the Scatter BitMap FX ;) 2009-02-14 01:02:41 +00:00
Crayon2000
bad67ed1c1 [CHG] Moving stuff around (step 1) 2009-02-13 19:19:45 +00:00