示例#1
0
 internal TextureNode(ShaderNodeType type)
     : base(type)
 {
 }
示例#2
0
 /// <summary>
 /// Create node of type ShaderNodeType and with given name
 /// </summary>
 /// <param name="type"></param>
 /// <param name="name"></param>
 internal ShaderNode(ShaderNodeType type, string name)
 {
     Type = type;
     Name = name;
 }
示例#3
0
 /// <summary>
 /// Create node of type ShaderNodeType and with given name
 /// </summary>
 /// <param name="type"></param>
 /// <param name="name"></param>
 internal ShaderNode(ShaderNodeType type, string name)
 {
     Type = type;
     Name = name;
 }
示例#4
0
 public static uint add_shader_node(uint clientId, uint shaderId, ShaderNodeType shnType)
 {
     return cycles_add_shader_node(clientId, shaderId, (uint) shnType);
 }
示例#5
0
        public static void shadernode_set_member_byte_img(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType,
			[MarshalAs(UnmanagedType.LPStr)] string name, [MarshalAs(UnmanagedType.LPStr)] string imgName, ref byte[] img, uint width, uint height, uint depth, uint channels)
        {
            unsafe
            {
                fixed (byte* pimg = img)
                {
                    cycles_shadernode_set_member_byte_img(clientId, shaderId, shadernodeId, (uint)shnType, name, imgName, pimg, width, height, depth, channels);
                }
            }
        }
示例#6
0
 public static void shadernode_texmapping_set_mapping(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType, uint mappingx, uint mappingy, uint mappingz)
 {
     cycles_shadernode_texmapping_set_mapping(clientId, shaderId, shadernodeId, (uint) shnType, mappingx, mappingy, mappingz);
 }
示例#7
0
 public static void shadernode_texmapping_set_transformation(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType, uint transformType, float x, float y, float z)
 {
     cycles_shadernode_texmapping_set_transformation(clientId, shaderId, shadernodeId, (uint) shnType, transformType, x, y, z);
 }
示例#8
0
 public static void shadernode_texmapping_set_transformation(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType, uint transformType, float x, float y, float z)
 {
     cycles_shadernode_texmapping_set_transformation(clientId, shaderId, shadernodeId, (uint)shnType, transformType, x, y, z);
 }
示例#9
0
 public static void shadernode_texmapping_set_mapping(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType, uint mappingx, uint mappingy, uint mappingz)
 {
     cycles_shadernode_texmapping_set_mapping(clientId, shaderId, shadernodeId, (uint)shnType, mappingx, mappingy, mappingz);
 }
示例#10
0
 public static void shadernode_set_member_byte_img(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType,
                                                   [MarshalAs(UnmanagedType.LPStr)] string name, [MarshalAs(UnmanagedType.LPStr)] string imgName, ref byte[] img, uint width, uint height, uint depth, uint channels)
 {
     unsafe
     {
         fixed(byte *pimg = img)
         {
             cycles_shadernode_set_member_byte_img(clientId, shaderId, shadernodeId, (uint)shnType, name, imgName, pimg, width, height, depth, channels);
         }
     }
 }
示例#11
0
 public static uint add_shader_node(uint clientId, uint shaderId, ShaderNodeType shnType)
 {
     return(cycles_add_shader_node(clientId, shaderId, (uint)shnType));
 }
示例#12
0
 public static void shadernode_set_member_vec4_at_index(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType,
                                                        [MarshalAs(UnmanagedType.LPStr)] string name, float x, float y, float z, float w, int index)
 {
     cycles_shadernode_set_member_vec4_at_index(clientId, shaderId, shadernodeId, (uint)shnType, name, x, y, z, w, index);
 }
示例#13
0
 public static void shadernode_set_member_bool(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType,
                                               [MarshalAs(UnmanagedType.LPStr)] string name, bool val)
 {
     cycles_shadernode_set_member_bool(clientId, shaderId, shadernodeId, (uint)shnType, name, val);
 }
示例#14
0
 /// <summary>
 /// Set enumeration value for a shader node
 /// </summary>
 /// <param name="clientId">Client</param>
 /// <param name="shaderId">Shader ID</param>
 /// <param name="shadernodeId">Node ID in shader</param>
 /// <param name="shnType">Type of shader node</param>
 /// <param name="enum_name">Name of enumeration. Used mostly for nodes that have multiple</param>
 /// <param name="value">String value of the enumeration</param>
 public static void shadernode_set_enum(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType, string enum_name, string value)
 {
     cycles_shadernode_set_enum(clientId, shaderId, shadernodeId, (uint)shnType, enum_name, value);
 }
示例#15
0
 internal TextureNode(ShaderNodeType type, string name)
     : base(type, name)
 {
 }
示例#16
0
 public static void shadernode_texmapping_set_projection(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType, uint projection)
 {
     cycles_shadernode_texmapping_set_projection(clientId, shaderId, shadernodeId, (uint)shnType, projection);
 }
示例#17
0
        public static void shadernode_set_member_vec4_at_index(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType,
			[MarshalAs(UnmanagedType.LPStr)] string name, float x, float y, float z, float w, int index)
        {
            cycles_shadernode_set_member_vec4_at_index(clientId, shaderId, shadernodeId, (uint)shnType, name, x, y, z, w, index);
        }
示例#18
0
 public static void shadernode_texmapping_set_type(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType, uint type)
 {
     cycles_shadernode_texmapping_set_type(clientId, shaderId, shadernodeId, (uint)shnType, type);
 }
示例#19
0
 public static void shadernode_texmapping_set_projection(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType, uint projection)
 {
     cycles_shadernode_texmapping_set_projection(clientId, shaderId, shadernodeId, (uint) shnType, projection);
 }
示例#20
0
 internal TextureNode(ShaderNodeType type) :
     base(type)
 {
 }
示例#21
0
 public static void shadernode_texmapping_set_type(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType, uint type)
 {
     cycles_shadernode_texmapping_set_type(clientId, shaderId, shadernodeId, (uint) shnType, type);
 }
示例#22
0
 internal TextureNode(ShaderNodeType type, string name) :
     base(type, name)
 {
 }
示例#23
0
 /// <summary>
 /// Set enumeration value for a shader node
 /// </summary>
 /// <param name="clientId">Client</param>
 /// <param name="shaderId">Shader ID</param>
 /// <param name="shadernodeId">Node ID in shader</param>
 /// <param name="shnType">Type of shader node</param>
 /// <param name="enum_name">Name of enumeration. Used mostly for nodes that have multiple</param>
 /// <param name="value">String value of the enumeration</param>
 public static void shadernode_set_enum(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType, string enum_name, string value)
 {
     cycles_shadernode_set_enum(clientId, shaderId, shadernodeId, (uint) shnType, enum_name, value);
 }
示例#24
0
 /// <summary>
 /// Create node of type ShaderNodeType type
 /// </summary>
 /// <param name="type"></param>
 internal ShaderNode(ShaderNodeType type)
     : this(type, String.Empty)
 {
 }
示例#25
0
        public static void shadernode_set_member_float(uint clientId, uint shaderId, uint shadernodeId, ShaderNodeType shnType,
			[MarshalAs(UnmanagedType.LPStr)] string name, float val)
        {
            cycles_shadernode_set_member_float(clientId, shaderId, shadernodeId, (uint)shnType, name, val);
        }
示例#26
0
 /// <summary>
 /// Create node of type ShaderNodeType type
 /// </summary>
 /// <param name="type"></param>
 internal ShaderNode(ShaderNodeType type) : this(type, String.Empty)
 {
 }