Mercurial > hg > Game > Cerium
diff Renderer/Engine/SceneGraph.cc @ 996:bac3b0afc3e8 draft
add sdl_test file
author | yutaka@charles.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Mon, 11 Oct 2010 18:56:51 +0900 |
parents | 56c3b9dd37a7 |
children | a9581a9df440 |
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraph.cc Mon Oct 11 14:22:09 2010 +0900 +++ b/Renderer/Engine/SceneGraph.cc Mon Oct 11 18:56:51 2010 +0900 @@ -454,11 +454,19 @@ if (!texture_image) return 0; SDL_Surface *tmpImage = SDL_CreateRGBSurface(SDL_SWSURFACE, texture_image->w, - texture_image->h, 32, redMask, - greenMask, blueMask, alphaMask); + texture_image->h, 32, redMask, + greenMask, blueMask, alphaMask); + + //= SDL_CreateRGBSurface(SDL_HWSURFACE, 0, + // 0, 32, redMask, + // greenMask, blueMask, alphaMask); + SDL_Surface *converted; converted = SDL_ConvertSurface(texture_image, tmpImage->format, - SDL_SWSURFACE); + SDL_HWSURFACE); + + //SDL_SetAlpha(converted, 0, 0); + if (converted != NULL) { SDL_FreeSurface(texture_image); texture_image = converted;