 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
ifcaro

Joined: 19 Oct 2008 Posts: 23
|
Posted: Mon Oct 20, 2008 9:31 am Post subject: Unofficial Llibplanar 0.9 |
|
|
Unofficial Llibplanar 0.9
| Quote: | Changes from the original version:
* Llib2D.c
- Added resize resolution PAL to NTSC
* Llib2DText.c
- Added resize resolution PAL to NTSC
- Added characters ñ Ñ and ¿
* Llib3D.c
- Added camera movement (position x, y, z, rotation x, y, z, pointing camera x, y, z)
- Added transparent objects
* Llibgs.c
- Added resize resolution PAL to NTSC
- Added the functions drawBoxLined() and drawBoxLined2()
* LlibTex.c
- Added the functions GetTextureDir(), SetTextureDir() and imageFree() Experimental!.
These functions are dangerous because they change the pointer of textures
no matter who is in that memory. (Used in the game "el boli" for
remove the last picture loaded without using the function textureFixDir()).
- Added imageLoadRawC() and imageLoadIIFC() functions to load an image in RAW/IIF format from memory.
* Load_IIF.c
- Added the functions IIF_vOpenFile(), IIF_vCloseFile(), IIF_vcountFrames(), IIF_vreadClut()
IIF_vreadImage() to upload files from the memory.
* LoadFile.c
- Added findMediaMode function () that automatically guesses if the program is running
from HOST, MC0, MC1, MASS or CDROM.
- Bars / or \ are changed automatically according to the accessed media.
- Added the functions vopenFile(), vcloseFile(), vreadFile(), vreadFileBlock(), vseekFile()
to read files from memory.
* Math.c
- Added the functions gradosaradianes() and radianesagrados().
NOTES:
In this version should not be used objectReset() in the program as it is called internally from objectTranslate() and objectRotate () functions. Also before gfxRender() must be added a camRender(). |
http://ps2dev.ifcaro.net/programas,11.htm |
|
| Back to top |
|
 |
cosmito
Joined: 04 Mar 2007 Posts: 314 Location: Portugal
|
Posted: Tue Oct 21, 2008 8:10 am Post subject: |
|
|
Hello ifcaro,
Thanks for your work. I already knew Llibplanar from my first development experiments on the PS2 and it seems you added some nice features.
However, the sources will not compile under a regular ps2sdk installation due some the makefile issues. The changes I did were simple and I thought it would be nice to post them here, for beginners mainly :
(Attention beginners : Don't copy-paste this. Instead edit your files, since tabs are used for makefiles as separators which are not reproducible by copy-paste operations)
lalib-0.1s2\Makefile.pref :
| Code: | PS2DEV_Dir = $(PS2DEV)
#SHELL = $(PS2DEV_Dir)/bin/sh.exe
#PS2DEV = $(PS2DEV_Dir)/bin
PS2SDK = $(PS2DEV_Dir)/ps2sdk
LALIB_DIR = $(PS2DEV_Dir)/lalib-0.1s2
TOOLCHAIN_DIR = $(PS2DEV_Dir)/ee/lib/gcc-lib/ee/3.2.2
EE_PREFIX = ee-
EE_CC = $(EE_PREFIX)gcc
EE_AS = $(EE_PREFIX)gcc
EE_LD = $(EE_PREFIX)ld
EE_AR = $(EE_PREFIX)ar
DVPASM = $(PS2DEV)/dvp/bin/dvp-as
EE_OBJCOPY = $(EE_PREFIX)objcopy
EE_STRIP = $(EE_PREFIX)strip |
lalib-0.1s2\Makefile.global
| Code: | EE_INCS = \
-I$(TOOLCHAIN_DIR)/include \
-I$(PS2SDK)/ee/include \
-I$(PS2SDK)/common/include \
-I$(LALIB_DIR)/ee/include \
-I$(LALIB_DIR)/ee/samples/common
EE_LIB_DIRS = \
-L$(TOOLCHAIN_DIR) \
-L$(PS2SDK)/ee/lib \
-L$(LALIB_DIR)/ee/lib \
-L$(PS2DEV)/ee/lib/gcc-lib/ee/3.2.2
EE_CFLAGS = -D_EE -fshort-double -O2 -G0 -c -Wall $(EE_INCS)
DVPASMFLAGS = -g
(the remaining of the file is OK)
|
LlibPlanar\Makefile.pref :
| Code: | PS2DEV_Dir = $(PS2DEV)
#SHELL = $(PS2DEV_Dir)/bin/sh.exe
#PS2DEV = $(PS2DEV_Dir)/bin
PS2SDK = $(PS2DEV_Dir)/ps2sdk
LALIB_DIR = $(PS2DEV_Dir)/lalib-0.1s2
TOOLCHAIN_DIR = $(PS2DEV_Dir)/ee/lib/gcc-lib/ee/3.2.2
PLANAR_DIR = $(PS2DEV_Dir)/LlibPlanar
EE_PREFIX = ee-
EE_CC = $(EE_PREFIX)gcc
EE_AS = $(EE_PREFIX)gcc
EE_LD = $(EE_PREFIX)ld
EE_AR = $(EE_PREFIX)ar
DVPASM = $(PS2DEV)/dvp/bin/dvp-as
EE_OBJCOPY = $(EE_PREFIX)objcopy
EE_STRIP = $(EE_PREFIX)strip |
Also, it's expected to have the LlibPlanar and lalib-0.1s2 source folders placed at your ps2dev source folder.
Now it should compile. |
|
| Back to top |
|
 |
ifcaro

Joined: 19 Oct 2008 Posts: 23
|
Posted: Tue Oct 21, 2008 11:49 pm Post subject: |
|
|
| Thanks. I will edit it in the version 0.91 together with the patch of the function objectRotate() |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|