comparison src/video/nds/SDL_ndsrender.c @ 2683:e858ac8868b6 gsoc2008_nds

Ongoing video render work; initial work on NDS Timers.
author Darren Alton <dalton@stevens.edu>
date Fri, 08 Aug 2008 08:22:08 +0000
parents f7594fc66bda
children 2190b873ff00
comparison
equal deleted inserted replaced
2682:f7594fc66bda 2683:e858ac8868b6
458 NDS_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture) 458 NDS_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture)
459 { 459 {
460 if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) { 460 if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) {
461 SDL_SetError("Unsupported texture format"); 461 SDL_SetError("Unsupported texture format");
462 } 462 }
463 printf("!NDS_UnlockTexture\n"); 463 printf("+NDS_UnlockTexture\n-NDS_UnlockTexture\n");
464 } 464 }
465 465
466 static void 466 static void
467 NDS_DirtyTexture(SDL_Renderer * renderer, SDL_Texture * texture, 467 NDS_DirtyTexture(SDL_Renderer * renderer, SDL_Texture * texture,
468 int numrects, const SDL_Rect * rects) 468 int numrects, const SDL_Rect * rects)
500 NDS_TextureData *txdat = (NDS_TextureData *) texture->driverdata; 500 NDS_TextureData *txdat = (NDS_TextureData *) texture->driverdata;
501 // SDL_Window *window = SDL_GetWindowFromID(renderer->window); 501 // SDL_Window *window = SDL_GetWindowFromID(renderer->window);
502 // SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window); 502 // SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window);
503 int i; 503 int i;
504 printf("+NDS_RenderCopy\n"); 504 printf("+NDS_RenderCopy\n");
505 for(i = 0; i <= 0xFFFF; ++i) { 505 /*for(i = 0; i <= 0xFFFF; ++i) {
506 txdat->vram[i] = 0x8000|i; 506 txdat->vram[i] = 0x8000|i;
507 } 507 }*/
508 printf("/txdat->hw_index = %d\n", txdat->hw_index); 508 printf("/txdat->hw_index = %d\n", txdat->hw_index);
509 #if 0 509 #if 0
510 if (txdat->dirty.list) { 510 if (txdat->dirty.list) {
511 SDL_DirtyRect *dirty; 511 SDL_DirtyRect *dirty;
512 void *pixels; 512 void *pixels;