Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1320 → Rev 1321

/demos/trunk/mesatex/mesatex.c
33,7 → 33,7
#endif
 
#define WIDTH 640
#define HEIGHT 480
#define HEIGHT 430
#define BYTES_PP 2 //BytesPerPixel
 
OSMesaContext ctx;
57,8 → 57,8
unsigned long int VMEMLONG = WIDTH * HEIGHT * BYTES_PP / 4; // Used by copy_videomem_16to16
unsigned long int RGB565MEM = WIDTH * HEIGHT * BYTES_PP; // Total video mem
 
unsigned long int PERIOD_REFRESH = 60000;
unsigned long int PERIOD_DISEGNA = 60000;
unsigned long int PERIOD_REFRESH = 30000;
unsigned long int PERIOD_DISEGNA = 30000;
 
unsigned long int WCET_REFRESH, WCET_DISEGNA;
 
123,24 → 123,24
 
static int twidth=8, theight=8;
static GLubyte tex1[] = {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0, 0,
0, 0, 0, 1, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0, 0,
0, 0, 0, 1, 1, 1, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0 };
0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 1, 0, 0, 0, 0, 0,
0, 0, 0, 1, 1, 1, 0, 0 };
 
static GLubyte tex2[] = {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 2, 2, 0, 0, 0,
0, 0, 2, 0, 0, 2, 0, 0,
0, 0, 0, 2, 2, 2, 0, 0,
0, 0, 2, 0, 0, 0, 0, 0,
0, 0, 2, 0, 0, 0, 0, 0,
0, 0, 0, 2, 0, 0, 0, 0,
0, 0, 0, 0, 2, 0, 0, 0,
0, 0, 0, 0, 0, 2, 0, 0,
0, 0, 0, 0, 2, 0, 0, 0,
0, 0, 0, 2, 0, 0, 0, 0,
0, 0, 2, 2, 2, 2, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0 };
0, 0, 0, 0, 0, 2, 0, 0,
0, 0, 2, 2, 2, 0, 0, 0 };
 
GLubyte tex[64][3];
GLint i, j;
295,7 → 295,7
 
while(1) {
 
memcpy(rgb_565_buf, video_buf, RGB565MEM);
memcpy((video_buf+40*WIDTH*2), rgb_565_buf, RGB565MEM);
task_endcycle();
 
}