public void setShadingMode(ShadeOptions mode) { OgrePINVOKE.Technique_setShadingMode(swigCPtr, (int)mode); if (OgrePINVOKE.SWIGPendingException.Pending) { throw OgrePINVOKE.SWIGPendingException.Retrieve(); } }
public static D3D9.ShadeMode ConvertEnum(ShadeOptions opt) { switch (opt) { case ShadeOptions.Flat: return(D3D9.ShadeMode.Flat); case ShadeOptions.Gouraud: return(D3D9.ShadeMode.Gouraud); case ShadeOptions.Phong: return((D3D9.ShadeMode) 3); //D3D.ShadeMode.Phong; } ; return(0); }
public static D3D9.ShadeMode ConvertEnum( ShadeOptions opt ) { switch ( opt ) { case ShadeOptions.Flat: return D3D9.ShadeMode.Flat; case ShadeOptions.Gouraud: return D3D9.ShadeMode.Gouraud; case ShadeOptions.Phong: return (D3D9.ShadeMode)3; //D3D.ShadeMode.Phong; } ; return 0; }
public static D3D.ShadeMode ConvertEnum(ShadeOptions opt) { switch (opt) { case ShadeOptions.Flat: return D3D.ShadeMode.Flat; case ShadeOptions.Gouraud: return D3D.ShadeMode.Gouraud; default: throw new NotImplementedException(); } }
private static extern void Material_setShadingMode(IntPtr material, ShadeOptions mode);
public void setShadingMode(ShadeOptions mode) { Material_setShadingMode(resource, mode); }
public void setShadingMode(ShadeOptions mode) { Pass_setShadingMode(pass, mode); }
private static extern void Pass_setShadingMode(IntPtr pass, ShadeOptions mode);
private static extern void Technique_setShadingMode(IntPtr technique, ShadeOptions mode);
public void setShadingMode(ShadeOptions mode) { Technique_setShadingMode(technique, mode); }