src/render/psp/SDL_render_psp.c
changeset 10136 c2ef15299a2e
parent 9998 f67cf37e9cd4
child 10137 406f82002892
equal deleted inserted replaced
10135:74e0da251b27 10136:c2ef15299a2e
    48 
    48 
    49 static SDL_Renderer *PSP_CreateRenderer(SDL_Window * window, Uint32 flags);
    49 static SDL_Renderer *PSP_CreateRenderer(SDL_Window * window, Uint32 flags);
    50 static void PSP_WindowEvent(SDL_Renderer * renderer,
    50 static void PSP_WindowEvent(SDL_Renderer * renderer,
    51                              const SDL_WindowEvent *event);
    51                              const SDL_WindowEvent *event);
    52 static int PSP_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture);
    52 static int PSP_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture);
       
    53 static int PSP_SetTextureColorMod(SDL_Renderer * renderer,
       
    54                                    SDL_Texture * texture);
    53 static int PSP_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
    55 static int PSP_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
    54                               const SDL_Rect * rect, const void *pixels,
    56                               const SDL_Rect * rect, const void *pixels,
    55                               int pitch);
    57                               int pitch);
    56 static int PSP_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture,
    58 static int PSP_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture,
    57                             const SDL_Rect * rect, void **pixels, int *pitch);
    59                             const SDL_Rect * rect, void **pixels, int *pitch);
   357     }
   359     }
   358 
   360 
   359 
   361 
   360     renderer->WindowEvent = PSP_WindowEvent;
   362     renderer->WindowEvent = PSP_WindowEvent;
   361     renderer->CreateTexture = PSP_CreateTexture;
   363     renderer->CreateTexture = PSP_CreateTexture;
       
   364     renderer->SetTextureColorMod = PSP_SetTextureColorMod;
   362     renderer->UpdateTexture = PSP_UpdateTexture;
   365     renderer->UpdateTexture = PSP_UpdateTexture;
   363     renderer->LockTexture = PSP_LockTexture;
   366     renderer->LockTexture = PSP_LockTexture;
   364     renderer->UnlockTexture = PSP_UnlockTexture;
   367     renderer->UnlockTexture = PSP_UnlockTexture;
   365     renderer->SetRenderTarget = PSP_SetRenderTarget;
   368     renderer->SetRenderTarget = PSP_SetRenderTarget;
   366     renderer->UpdateViewport = PSP_UpdateViewport;
   369     renderer->UpdateViewport = PSP_UpdateViewport;
   499     texture->driverdata = psp_texture;
   502     texture->driverdata = psp_texture;
   500 
   503 
   501     return 0;
   504     return 0;
   502 }
   505 }
   503 
   506 
       
   507 static int
       
   508 PSP_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture)
       
   509 {
       
   510     return SDL_Unsupported();
       
   511 }
   504 
   512 
   505 void
   513 void
   506 TextureActivate(SDL_Texture * texture)
   514 TextureActivate(SDL_Texture * texture)
   507 {
   515 {
   508     PSP_TextureData *psp_texture = (PSP_TextureData *) texture->driverdata;
   516     PSP_TextureData *psp_texture = (PSP_TextureData *) texture->driverdata;