Skip to content

Commit 5efc8b7

Browse files
NC-7840: Use TileStyle in SDK-example
1 parent ad99e8e commit 5efc8b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SDK/Examples/Source/TextureCube.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ LIB3MFRESULT fnLoadModelTexture(PLib3MFModel * pModel, const char * pszPath, con
9999
return hResult;
100100
}
101101

102+
hResult = lib3mf_texture2d_settilestyleuv(pTexture2D, eTileStyleU, eTileStyleV);
103+
if (hResult != 0) {
104+
lib3mf_release(pTexture2D);
105+
return hResult;
106+
}
107+
102108
// Retrieve Texture ID
103109
hResult = lib3mf_resource_getresourceid(pTexture2D, pTextureID);
104110
if (hResult != 0) {

0 commit comments

Comments
 (0)