//Hello World PS3 by the_marioga & CORAGON #include <stdlib.h> #include <stdio.h> #include <sys/process.h> #include <sys/spu_initialize.h> #include <sys/paths.h> #include <PSGL/psgl.h> #include <PSGL/psglu.h> #include <Cg/cg.h> #include <cell/dbgfont.h> #include "../../Common/gfxCommon.h" #include "../../Common/gfxPad.h" SYS_PROCESS_PARAM(1001, 0x10000) int main() { sys_spu_initialize(6, 1); gfxInitGraphics(); gfxInitPad(); dbgFontInit(); while (1) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); dbgFontPrintf(40,70,1.0f,"HELLO WORLD BY the_marioga & CORAGON."); dbgFontPrintf(40,90,1.0f,"Agradecimientos a xinops3 por probarlo. Visita www.r-3volution.com y www.demonhades.org"); dbgFontDraw(); psglSwap(); gfxPadRead(); if (gfxDpadCross(0)) { psglExit(); } } return 0; }
le pkg : www.megaupload.com/?d=H0VTYZU6