Assorted utility functions.
Helper function for converting it to DDS, and storing it in the specified char vector property.
handle to the node to set the property on
name of the property
buffer containing the image data to convert to DDS
the opengl format of the buffer data
the opengl type of the buffer data
the pixel width of the buffer data
the pixel height of the buffer data
whether to compress the texture using DXT1
0 if property is successfully populated with DDS data
( 0 = completely opaque, 1 = transarency mask, 2 = translucent )
of mipMap levels
Helper function for loading an image file from disk, converting it to DDS, and storing it in the specified char vector property.
path to the file to read, if not found, an error pattern is set instead
0 if property is successfully populated with data from the file in DDS format
Helper function for getting the OpenGL texture format out of a texture node.
handle to the texture node
0 if node has no DDSData property, otherwise the GLenum value representing the texture format
Helper function for getting the OpenGL texture information out of a texture node.
information reguarding texture paramaters, values will be 0 on faliure