| 31 | |
| 32 | |
| 33 | ILimage *iluScale3D_(ILimage *Image, ILimage *Scaled, ILuint Width, ILuint Height, ILuint Depth) |
| 34 | { |
| 35 | if (Image == NULL) { |
| 36 | ilSetError(ILU_ILLEGAL_OPERATION); |
| 37 | return IL_FALSE; |
| 38 | } |
| 39 | |
| 40 | ScaleX = (ILfloat)Width / Image->Width; |
| 41 | ScaleY = (ILfloat)Height / Image->Height; |
| 42 | ScaleZ = (ILfloat)Depth / Image->Depth; |
| 43 | |
| 44 | //if (iluFilter == ILU_NEAREST) |
| 45 | return iluScale3DNear_(Image, Scaled, Width, Height, Depth); |
| 46 | //else if (iluFilter == ILU_LINEAR) |
| 47 | //return iluScale3DLinear_(Image, Scaled, Width, Height, Depth); |
| 48 | |
| 49 | // iluFilter == ILU_BILINEAR |
| 50 | //return iluScale3DBilinear_(Image, Scaled, Width, Height, Depth); |
| 51 | } |
| 52 | |
| 53 | |
| 54 | ILimage *iluScale3DNear_(ILimage *Image, ILimage *Scaled, ILuint Width, ILuint Height, ILuint Depth) |
no test coverage detected