Skip to content
Snippets Groups Projects
Commit 1940cd62 authored by Amorilia's avatar Amorilia
Browse files

GetTexture() now returns a TexDesc reference (requested by DragoonWraith).

parent 0650b9db
No related branches found
No related tags found
No related merge requests found
......@@ -636,4 +636,7 @@
* AsQuaternion is now a const member function (contributed by Dragongeo2).
* Some math operators for TexCoord and Color4 (contributed by Dragongeo2).
* Make base_type field public (requested by DragoonWraith).
* Store block number in NiObject when reading a nif file (requested by DragoonWraith).
* Added cmake build script.
* GetTexture() now returns a TexDesc reference (requested by DragoonWraith).
......@@ -105,7 +105,7 @@ public:
* \param n The slot number of the texture to get the texture description of. This is a positive zero based index that must be less than the value returned by NiTexturingProperty::GetTextureCount.
* \sa NiTexturingProperty::SetTexture, TexType
*/
NIFLIB_API TexDesc GetTexture( int n ) const;
NIFLIB_API TexDesc & GetTexture( int n );
/*!
* Checks whether a particular texture type is being used
......
......@@ -1517,7 +1517,7 @@ int NiTexturingProperty::GetShaderTextureCount() const {
return int(shaderTextures.size());
}
TexDesc NiTexturingProperty::GetTexture( int n ) const {
TexDesc & NiTexturingProperty::GetTexture( int n ) {
//TODO: Create a built in type for this array of textures so it can be a real array again?
//Copy the values to the right texture
switch (n) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment