Example #1
0
        bool SetTexture(Rhino.DocObjects.Texture texture, Rhino.DocObjects.TextureType which, bool front)
        {
            IntPtr pMaterial = NonConstMaterialPointer(front);
            IntPtr pTexture  = texture.ConstPointer();

            return(UnsafeNativeMethods.ON_Material_SetTexture(pMaterial, pTexture, (int)which));
        }
Example #2
0
 public bool SetTransparencyTexture(Rhino.DocObjects.Texture texture, bool front)
 {
     return(SetTexture(texture, Rhino.DocObjects.TextureType.Transparency, front));
 }
Example #3
0
 public bool SetEnvironmentTexture(Rhino.DocObjects.Texture texture, bool front)
 {
     return(SetTexture(texture, Rhino.DocObjects.TextureType.Emap, front));
 }
Example #4
0
 public bool SetBumpTexture(Rhino.DocObjects.Texture texture, bool front)
 {
     return(SetTexture(texture, Rhino.DocObjects.TextureType.Bump, front));
 }
        public Rhino.DocObjects.Texture Texture()
        {
            Rhino.DocObjects.Texture texture = new Rhino.DocObjects.Texture(this);

            return(texture);
        }
    public Rhino.DocObjects.Texture Texture()
    {
      Rhino.DocObjects.Texture texture = new Rhino.DocObjects.Texture(this);

      return texture;
    }
Example #7
0
 public bool SetTransparencyTexture(Rhino.DocObjects.Texture texture, bool front)
 {
     return(SetTexture(texture, Rhino.DocObjects.Material.idxTransparencyTexture, front));
 }
Example #8
0
 public bool SetEnvironmentTexture(Rhino.DocObjects.Texture texture, bool front)
 {
     return(SetTexture(texture, Rhino.DocObjects.Material.idxEmapTexture, front));
 }
Example #9
0
 public bool SetBumpTexture(Rhino.DocObjects.Texture texture, bool front)
 {
     return(SetTexture(texture, Rhino.DocObjects.Material.idxBumpTexture, front));
 }