Helper function for loading an image file from disk, converting it to DDS, and storing it in the specified char vector property.
- Parameters
node | handle to the node to set the property on |
propName | name of the property |
file | path to the file to read, if not found, an error pattern is set instead |
compress | whether to compress the texture using DXT1 |
- Returns
0 if property is successfully populated with data from the file in DDS format