MCPcopy Create free account
hub / github.com/DentonW/DevIL / iluScale3D_

Function iluScale3D_

DevIL/src-ILU/src/ilu_scale3d.cpp:33–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33ILimage *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
54ILimage *iluScale3DNear_(ILimage *Image, ILimage *Scaled, ILuint Width, ILuint Height, ILuint Depth)

Callers 1

ILAPIENTRY iluScale_Function · 0.85

Calls 2

ilSetErrorFunction · 0.85
iluScale3DNear_Function · 0.85

Tested by

no test coverage detected