diff options
author | aap <aap@papnet.eu> | 2019-06-23 19:59:58 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-23 19:59:58 +0200 |
commit | 4d84d94166772adf112652becf90f07f38e47ff4 (patch) | |
tree | a17cc3209730325de0ab4d0a8394da6f7a3ed715 /src/RwHelper.cpp | |
parent | some Radar and Hud cleanup; fix in Physical (diff) | |
download | re3-4d84d94166772adf112652becf90f07f38e47ff4.tar re3-4d84d94166772adf112652becf90f07f38e47ff4.tar.gz re3-4d84d94166772adf112652becf90f07f38e47ff4.tar.bz2 re3-4d84d94166772adf112652becf90f07f38e47ff4.tar.lz re3-4d84d94166772adf112652becf90f07f38e47ff4.tar.xz re3-4d84d94166772adf112652becf90f07f38e47ff4.tar.zst re3-4d84d94166772adf112652becf90f07f38e47ff4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/RwHelper.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/RwHelper.cpp b/src/RwHelper.cpp index 5aa31e92..3c198272 100644 --- a/src/RwHelper.cpp +++ b/src/RwHelper.cpp @@ -108,6 +108,23 @@ GetFirstAtomic(RpClump *clump) return atm; } +RwTexture* +GetFirstTextureCallback(RwTexture *tex, void *data) +{ + *(RwTexture**)data = tex; + return nil; +} + +RwTexture* +GetFirstTexture(RwTexDictionary *txd) +{ + RwTexture *tex; + + tex = nil; + RwTexDictionaryForAllTextures(txd, GetFirstTextureCallback, &tex); + return tex; +} + void CameraSize(RwCamera * camera, RwRect * rect, RwReal viewWindow, RwReal aspectRatio) |