comparison src/video/win32/SDL_gdirender.c @ 1905:36d52b1f0504

Prefer the D3D renderer over GDI, at least for testing. Added support for the SDL_VIDEO_RENDERER environment variable to pick the desired render driver. Implemented WritePixels support for the D3D renderer.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 14 Jul 2006 08:22:45 +0000
parents f132024010be
children 06c27a737b7a
comparison
equal deleted inserted replaced
1904:1a713f9d1f71 1905:36d52b1f0504
77 77
78 SDL_RenderDriver SDL_GDI_RenderDriver = { 78 SDL_RenderDriver SDL_GDI_RenderDriver = {
79 SDL_GDI_CreateRenderer, 79 SDL_GDI_CreateRenderer,
80 { 80 {
81 "gdi", 81 "gdi",
82 (SDL_Renderer_Minimal | 82 (SDL_Renderer_SingleBuffer | SDL_Renderer_PresentCopy |
83 SDL_Renderer_SingleBuffer | SDL_Renderer_PresentCopy |
84 SDL_Renderer_PresentFlip2 | SDL_Renderer_PresentFlip3 | 83 SDL_Renderer_PresentFlip2 | SDL_Renderer_PresentFlip3 |
85 SDL_Renderer_PresentDiscard | SDL_Renderer_RenderTarget), 84 SDL_Renderer_PresentDiscard | SDL_Renderer_RenderTarget),
86 (SDL_TextureBlendMode_None | SDL_TextureBlendMode_Mask | 85 (SDL_TextureBlendMode_None | SDL_TextureBlendMode_Mask |
87 SDL_TextureBlendMode_Blend), 86 SDL_TextureBlendMode_Blend),
88 (SDL_TextureScaleMode_None | SDL_TextureScaleMode_Fast), 87 (SDL_TextureScaleMode_None | SDL_TextureScaleMode_Fast),