src/render/direct3d/SDL_d3drender.c
changeset 5157 657543cc92f9
parent 5156 307ccc9c135e
child 5166 4d39eeaad00b
equal deleted inserted replaced
5156:307ccc9c135e 5157:657543cc92f9
   113                                const SDL_Rect ** rects, int count);
   113                                const SDL_Rect ** rects, int count);
   114 static int D3D_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
   114 static int D3D_RenderCopy(SDL_Renderer * renderer, SDL_Texture * texture,
   115                           const SDL_Rect * srcrect, const SDL_Rect * dstrect);
   115                           const SDL_Rect * srcrect, const SDL_Rect * dstrect);
   116 static int D3D_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
   116 static int D3D_RenderReadPixels(SDL_Renderer * renderer, const SDL_Rect * rect,
   117                                 Uint32 format, void * pixels, int pitch);
   117                                 Uint32 format, void * pixels, int pitch);
   118 static int D3D_RenderWritePixels(SDL_Renderer * renderer, const SDL_Rect * rect,
       
   119                                  Uint32 format, const void * pixels, int pitch);
       
   120 static void D3D_RenderPresent(SDL_Renderer * renderer);
   118 static void D3D_RenderPresent(SDL_Renderer * renderer);
   121 static void D3D_DestroyTexture(SDL_Renderer * renderer,
   119 static void D3D_DestroyTexture(SDL_Renderer * renderer,
   122                                SDL_Texture * texture);
   120                                SDL_Texture * texture);
   123 static void D3D_DestroyRenderer(SDL_Renderer * renderer);
   121 static void D3D_DestroyRenderer(SDL_Renderer * renderer);
   124 
   122 
   323     renderer->RenderDrawPoints = D3D_RenderDrawPoints;
   321     renderer->RenderDrawPoints = D3D_RenderDrawPoints;
   324     renderer->RenderDrawLines = D3D_RenderDrawLines;
   322     renderer->RenderDrawLines = D3D_RenderDrawLines;
   325     renderer->RenderFillRects = D3D_RenderFillRects;
   323     renderer->RenderFillRects = D3D_RenderFillRects;
   326     renderer->RenderCopy = D3D_RenderCopy;
   324     renderer->RenderCopy = D3D_RenderCopy;
   327     renderer->RenderReadPixels = D3D_RenderReadPixels;
   325     renderer->RenderReadPixels = D3D_RenderReadPixels;
   328     renderer->RenderWritePixels = D3D_RenderWritePixels;
       
   329     renderer->RenderPresent = D3D_RenderPresent;
   326     renderer->RenderPresent = D3D_RenderPresent;
   330     renderer->DestroyTexture = D3D_DestroyTexture;
   327     renderer->DestroyTexture = D3D_DestroyTexture;
   331     renderer->DestroyRenderer = D3D_DestroyRenderer;
   328     renderer->DestroyRenderer = D3D_DestroyRenderer;
   332     renderer->info = D3D_RenderDriver.info;
   329     renderer->info = D3D_RenderDriver.info;
   333     renderer->window = window;
   330     renderer->window = window;
  1019     IDirect3DSurface9_Release(backBuffer);
  1016     IDirect3DSurface9_Release(backBuffer);
  1020 
  1017 
  1021     return 0;
  1018     return 0;
  1022 }
  1019 }
  1023 
  1020 
  1024 static int
       
  1025 D3D_RenderWritePixels(SDL_Renderer * renderer, const SDL_Rect * rect,
       
  1026                       Uint32 format, const void * pixels, int pitch)
       
  1027 {
       
  1028     /* Work in progress */
       
  1029     SDL_Unsupported();
       
  1030     return -1;
       
  1031 }
       
  1032 
       
  1033 static void
  1021 static void
  1034 D3D_RenderPresent(SDL_Renderer * renderer)
  1022 D3D_RenderPresent(SDL_Renderer * renderer)
  1035 {
  1023 {
  1036     D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
  1024     D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
  1037     HRESULT result;
  1025     HRESULT result;