SDK Faire afficher une image sur GRAPH 85
Posté le 20/09/2007 22:16
Salut,
J'ai une GRAPH 85 SD.
J'essai de compiler un bout de code en langage C pour afficher une image en niveau de gris grâce à Photocasio 2006 et la lib revolution.h mais ça marche pas. Pouvez-vous m'aider svp.
Merci.
#include "fxlib.h"
#include "revolution.h"
#include "dispbios.h"
#include "endian.h"
#include "filebios.h"
#include "keybios.h"
#include "timer.h"
#include "_h_c_lib.h"
#include "assert.h"
#include "builtin.h"
#include "ctype.h"
#include "ensigdsp.h"
#include "errno.h"
#include "filt_ws.h"
#include "float.h"
#include "limits.h"
#include "machine.h"
#include "math.h"
#include "mathf.h"
#include "setjmp.h"
#include "smachine.h"
#include "stdarg.h"
#include "stddef.h"
#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "umachine.h"
int AddIn_main(int isAppli, unsigned short OptionNum)
{
unsigned int key;
Bdisp_AllClr_DDVRAM();
unsigned long buffer1[]={0xFFFFFFFF,0xFFFFFFFF,...}:
unsigned long buffer2[]={0xFFFFFFFF,0xFFFFFFFF,...};
GrayLinkBuffers(&buffer1, &buffer2);
GrayInit(3273, 1452);
GrayEnd();
Reset_Calc();
while(1)
{
GetKey(&key);
}
return 1;
}
#pragma section _BR_Size
unsigned long BR_Size;
#pragma section
#pragma section _TOP
int InitializeSystem(int isAppli, unsigned short OptionNum)
{
return INIT_ADDIN_APPLICATION(isAppli, OptionNum);
}
#pragma section