JubeatPlus 3.9.11
Loading...
Searching...
No Matches
TextureLoading.h
Go to the documentation of this file.
1
21
22#import <Foundation/Foundation.h>
23#import <UIKit/UIKit.h>
24
25#import "BFCodec.h"
26#import "Texture2D.h"
27
28NS_ASSUME_NONNULL_BEGIN
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
46UIImage *_Nullable CreateImageFromEncryptedData(BFCodec *cipher, NSMutableData *encryptedData);
47
60BOOL LoadTextureSubImageFromResource(Texture2D *texture, NSString *resourceName, CGPoint point);
61
78 NSString *resourceName,
79 BFCodec *cipher,
80 CGPoint point);
81
93Texture2D *_Nullable CreateTexture2DFromPngResource(NSString *resourceName);
94
106Texture2D *_Nullable CreateTexture2DFromEncryptedTexResource(NSString *resourceName,
107 BFCodec *cipher);
108
109#ifdef __cplusplus
110}
111#endif
112
113NS_ASSUME_NONNULL_END
114
115// code: language=Objective-C
116// kate: hl Objective-C;
117// vim: set ft=objc :
The Blowfish codec.
The engine's sprite-sheet texture: a single OpenGL ES texture that batches many sprite quads into one...
Texture2D *_Nullable CreateTexture2DFromPngResource(NSString *resourceName)
Vends a fully-populated Texture2D atlas from a bundled PNG plus its sprite-rect plist.
Definition TextureLoading.m:58
BOOL LoadTextureSubImageFromEncryptedTex(Texture2D *texture, NSString *resourceName, BFCodec *cipher, CGPoint point)
Decrypts a bundled .tex asset and blits it into an existing texture atlas at a point.
Definition TextureLoading.m:35
BOOL LoadTextureSubImageFromResource(Texture2D *texture, NSString *resourceName, CGPoint point)
Loads a bundled PNG and blits it into an existing texture atlas at a point.
Definition TextureLoading.m:25
Texture2D *_Nullable CreateTexture2DFromEncryptedTexResource(NSString *resourceName, BFCodec *cipher)
Vends a Texture2D atlas from an encrypted .tex asset plus its plaintext plist.
Definition TextureLoading.m:75
NS_ASSUME_NONNULL_BEGIN UIImage *_Nullable CreateImageFromEncryptedData(BFCodec *cipher, NSMutableData *encryptedData)
Decrypts an encrypted image blob in place and builds a UIImage from it.
Definition TextureLoading.m:13
A Blowfish cipher that works in place on an NSMutableData.
Definition BFCodec.h:25
A texture that can draw any of the sprites packed into it.
Definition Texture2D.h:40