简体   繁体   English

iOS:应用内购买中的GLSL

[英]IOS: GLSL in In-App-Purchase

Is it possible for us to include GLSL inside In-App-Purchase?? 我们有可能在应用内购买中包含GLSL吗? I have a game idea to sell game level with special genre, which will be nice to have a special visual treatment for that. 我有一个游戏创意,可以出售具有特殊体裁的游戏关卡,对此进行特殊的视觉处理将非常不错。 And since it is episodic, we have to put the GLSL in the level itself. 并且由于它是情节性的,因此我们必须将GLSL置于关卡本身中。

As far as I know (and I have not developed any iOS apps besides some fiddling), iOS and it's system libraries supports compiling OpenGL ES 2.0 GLSL at runtime. 据我所知(除了一些麻烦之外,我还没有开发任何iOS应用),iOS及其系统库支持在运行时编译OpenGL ES 2.0 GLSL。 This link would seem to confirm that: 此链接似乎可以确认:

https://developer.apple.com/library/ios/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/BestPracticesforShaders/BestPracticesforShaders.html#//apple_ref/doc/uid/TP40008793-CH7-SW3 https://developer.apple.com/library/ios/documentation/3DDrawing/Conceptual/OpenGLES_ProgrammingGuide/BestPracticesforShaders/BestPracticesforShaders.html#//apple_ref/doc/uid/TP40008793-CH7-SW3

GLSL is just text. GLSL只是文本。 I can't think of a good reason you couldn't load text from an In-App-Purchase to do what you want with it. 我想不出您无法从应用程序内购买中加载文本来完成所需操作的充分原因。 Now, if you wanted to obfuscate it so it's not obvious in an iOS device backup, well that's another issue. 现在,如果您要对其进行混淆处理,以使其在iOS设备备份中不明显,那么这是另一个问题。 (I'm speaking hypothetically here... I'm not sure what the recommended practices are for In App Purchases, and some of those practices might cover that issue.) (我在这里假设是……我不确定应用内购买的推荐做法是什么,其中一些做法可能涵盖了该问题。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM