Mercurial > hg > Game > Cerium
diff Renderer/Engine/polygon.cc @ 1055:9ce0480cde63 draft
remove texture_image
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Dec 2010 11:37:15 +0900 (2010-12-14) |
parents | 294bc9364bee |
children | b733c7903d07 |
line wrap: on
line diff
--- a/Renderer/Engine/polygon.cc Sun Dec 12 05:57:37 2010 +0900 +++ b/Renderer/Engine/polygon.cc Tue Dec 14 11:37:15 2010 +0900 @@ -251,17 +251,17 @@ //Uint32 temp, pixel; Uint8 red, green, blue; - fmt = texture_image->format; + fmt = texture_info.texture_image->format; if (tx<0) tx = 0; - if (texture_image->w-1< tx) tx = texture_image->w-1 ; + if (texture_info.texture_image->w-1< tx) tx = texture_info.texture_image->w-1 ; if (ty<0) ty = 0; - if (texture_image->h-1< ty) ty = texture_image->h-1 ; + if (texture_info.texture_image->h-1< ty) ty = texture_info.texture_image->h-1 ; //SDL_LockSurface(texture_image); - char *p = get_pixel(tx,ty,texture_image); + char *p = get_pixel(tx,ty,texture_info.texture_image); blue = (Uint8) p[0]; green = (Uint8) p[1]; red = (Uint8) p[2];