Aller au contenu


Photo

Hello World


  • Veuillez vous connecter pour répondre
Aucune réponse à ce sujet

Posté 08 septembre 2010 - 02:35

#1
SiNDoL

SiNDoL

    Sunriseur

  • Members
  • PipPip
  • 100 messages
  • Sexe:Male
  • Lieu:Planete Terre
  • Passions:PS3 - PSP - PC
Voici le code source du hello world

//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
  • Retour en haut




1 utilisateur(s) li(sen)t ce sujet

0 invité(s) et 1 utilisateur(s) anonyme(s)