Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_d3drender.c @ 1918:092bd3a019c5
Starting on the OpenGL renderer...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 19 Jul 2006 07:18:45 +0000 |
parents | 3f54b3ec5a07 |
children | 8a162bfdc838 |
comparison
equal
deleted
inserted
replaced
1917:3f54b3ec5a07 | 1918:092bd3a019c5 |
---|---|
60 D3D_CreateRenderer, | 60 D3D_CreateRenderer, |
61 { | 61 { |
62 "d3d", | 62 "d3d", |
63 (SDL_Renderer_SingleBuffer | SDL_Renderer_PresentCopy | | 63 (SDL_Renderer_SingleBuffer | SDL_Renderer_PresentCopy | |
64 SDL_Renderer_PresentFlip2 | SDL_Renderer_PresentFlip3 | | 64 SDL_Renderer_PresentFlip2 | SDL_Renderer_PresentFlip3 | |
65 SDL_Renderer_PresentDiscard | SDL_Renderer_PresentVSync), | 65 SDL_Renderer_PresentDiscard | SDL_Renderer_PresentVSync | |
66 (SDL_TextureBlendMode_None | SDL_TextureBlendMode_Mask | SDL_TextureBlendMode_Blend), /* FIXME */ | 66 SDL_Renderer_Accelerated), |
67 (SDL_TextureScaleMode_None | SDL_TextureScaleMode_Fast), /* FIXME */ | 67 (SDL_TextureBlendMode_None | SDL_TextureBlendMode_Mask | |
68 SDL_TextureBlendMode_Blend | SDL_TextureBlendMode_Add | | |
69 SDL_TextureBlendMode_Mod), | |
70 (SDL_TextureScaleMode_None | SDL_TextureScaleMode_Fast | | |
71 SDL_TextureScaleMode_Best), | |
68 12, | 72 12, |
69 { | 73 { |
70 SDL_PixelFormat_Index8, | 74 SDL_PixelFormat_Index8, |
71 SDL_PixelFormat_RGB332, | 75 SDL_PixelFormat_RGB332, |
72 SDL_PixelFormat_RGB444, | 76 SDL_PixelFormat_RGB444, |
351 } | 355 } |
352 if (pparams.PresentationInterval == D3DPRESENT_INTERVAL_ONE) { | 356 if (pparams.PresentationInterval == D3DPRESENT_INTERVAL_ONE) { |
353 renderer->info.flags |= SDL_Renderer_PresentVSync; | 357 renderer->info.flags |= SDL_Renderer_PresentVSync; |
354 } | 358 } |
355 | 359 |
360 /* FIXME: Query maximum texture size */ | |
361 | |
356 /* Set up parameters for rendering */ | 362 /* Set up parameters for rendering */ |
357 IDirect3DDevice9_SetVertexShader(data->device, NULL); | 363 IDirect3DDevice9_SetVertexShader(data->device, NULL); |
358 IDirect3DDevice9_SetFVF(data->device, D3DFVF_XYZRHW | D3DFVF_TEX1); | 364 IDirect3DDevice9_SetFVF(data->device, D3DFVF_XYZRHW | D3DFVF_TEX1); |
359 IDirect3DDevice9_SetRenderState(data->device, D3DRS_CULLMODE, | 365 IDirect3DDevice9_SetRenderState(data->device, D3DRS_CULLMODE, |
360 D3DCULL_NONE); | 366 D3DCULL_NONE); |