Show
Ignore:
Timestamp:
10/07/08 20:42:00 (3 months ago)
Author:
mokehehe
Message:

ソース整理

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/haskell/nario/AppUtil.hs

    r20673 r20925  
    11module AppUtil where 
    22 
    3 import Multimedia.SDL (Surface, SDLKey(..), loadBMP, freeSurface, surfacePixelFormat, displayFormat, pfPalette, setColorKey, SurfaceFlag(..)) 
     3import Multimedia.SDL (Surface, SDLKey(..), loadBMP, freeSurface, surfacePixelFormat, displayFormat, pfPalette, setColorKey, SurfaceFlag(..), blitSurface, pt) 
    44import Data.Maybe (fromJust) 
    55 
     
    6969getImageSurface imgres = fromJust . flip lookup imgres 
    7070 
     71putimg :: Surface -> ImageResource -> ImageType -> Int -> Int -> IO () 
     72putimg sur imgres imgtype x y = do 
     73        blitSurface (getImageSurface imgres imgtype) Nothing sur (pt x y) 
     74        return () 
     75 
    7176 
    7277-- 固定座標系からセル座標系に