|
发表于 2004-3-15 20:24:00
|
显示全部楼层
Re: (新手求教)请问d3d中如何设置texture的colorkey?
junhot: (新手求教)请问d3d中如何设置texture的colorkey?
在ddraw中很简单,可是到了d3d就摸不着桌头绪了……
用loadtexturefromfileEx()里面的那个colorkey参数好像没有效果?
看看 IDirectDrawSurface::SetColorKey 应该可以
The SetColorKey method sets the color key value for the DirectDrawSurface object if the hardware supports color keys on a per surface basis.
HRESULT SetColorKey(
DWORD dwFlags,
LPDDCOLORKEY lpDDColorKey
);
|
|