Hi all !
I've been recently working on Per Pixel Lighting, and I've got a little problem with D3DXFill2D and D3DXFillCubeMap.
The function D3DXFillCubeMap seems to require a TD3DXFill2D. That type is a procedure/function pointer.
So, I define my own procedure to fill in the Cubemap, and then I have the D3DXFill2D points towards the procedure.
The problem is the error during the compilation
"Incompatible types "normal procedure and method pointer"" (this might be a bad translation from the French But I hope you see what I mean).
My procedure is defined with the same parameters(same name, same type) and is called FillCubeMap
After that, I just call the function D3DXFillCubeMap . this way :
D3DXFillCubeMap(CubeMap, FillCubeMap, nil);
And I get my error ... Any ideas ? (CubeMap is my output texture)
Thanks in advance
Bye
Avatar
Bookmarks