Revision c8dbce40
Added by Leszek Koltunski almost 5 years ago
| src/main/java/org/distorted/library/main/DistortedLibrary.java | ||
|---|---|---|
| 1048 | 1048 |
{
|
| 1049 | 1049 |
InternalObject.onPause(); |
| 1050 | 1050 |
Dynamic.onPause(); |
| 1051 |
|
|
| 1051 | 1052 |
mLinkedListSSBO[0]= -1; |
| 1052 | 1053 |
mAtomicCounter = null; |
| 1053 | 1054 |
|
| 1054 |
mFullProgram = null; |
|
| 1055 |
mNormalProgram = null; |
|
| 1056 |
mOITRenderProgram = null; |
|
| 1057 |
mOITCollapseProgram = null; |
|
| 1058 |
mOITBuildProgram = null; |
|
| 1059 |
mOITClearProgram = null; |
|
| 1060 |
} |
|
| 1061 |
|
|
| 1062 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
| 1063 |
/** |
|
| 1064 |
* Call this so that the Library can release its internal data structures. |
|
| 1065 |
* Must be called from Activity.onDestroy(). |
|
| 1066 |
*/ |
|
| 1067 |
public static void onDestroy() |
|
| 1068 |
{
|
|
| 1069 |
InternalObject.onDestroy(); |
|
| 1070 |
InternalNodeData.onDestroy(); |
|
| 1071 |
InternalMaster.onDestroy(); |
|
| 1072 |
InternalOutputSurface.onDestroy(); |
|
| 1073 |
DistortedEffects.onDestroy(); |
|
| 1074 |
EffectQueue.onDestroy(); |
|
| 1075 |
Effect.onDestroy(); |
|
| 1076 |
DeferredJobs.onDestroy(); |
|
| 1077 |
EffectMessageSender.stopSending(); |
|
| 1078 |
|
|
| 1079 |
mInitialized = false; |
|
| 1080 |
mOITCompilationAttempted = false; |
|
| 1081 |
|
|
| 1082 | 1055 |
mNormalProgram = null; |
| 1083 | 1056 |
mMainOITProgram = null; |
| 1084 | 1057 |
mMainProgram = null; |
| ... | ... | |
| 1091 | 1064 |
mBlitProgram = null; |
| 1092 | 1065 |
} |
| 1093 | 1066 |
|
| 1067 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
| 1068 |
/** |
|
| 1069 |
* Call this so that the Library can release its internal data structures. |
|
| 1070 |
* Must be called from Activity.onDestroy(). |
|
| 1071 |
*/ |
|
| 1072 |
public static void onDestroy() |
|
| 1073 |
{
|
|
| 1074 |
if( mInitialized ) |
|
| 1075 |
{
|
|
| 1076 |
mInitialized = false; |
|
| 1077 |
mOITCompilationAttempted = false; |
|
| 1078 |
|
|
| 1079 |
InternalObject.onDestroy(); |
|
| 1080 |
InternalNodeData.onDestroy(); |
|
| 1081 |
InternalMaster.onDestroy(); |
|
| 1082 |
InternalOutputSurface.onDestroy(); |
|
| 1083 |
DistortedEffects.onDestroy(); |
|
| 1084 |
EffectQueue.onDestroy(); |
|
| 1085 |
Effect.onDestroy(); |
|
| 1086 |
DeferredJobs.onDestroy(); |
|
| 1087 |
EffectMessageSender.stopSending(); |
|
| 1088 |
} |
|
| 1089 |
} |
|
| 1090 |
|
|
| 1094 | 1091 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 1095 | 1092 |
/** |
| 1096 | 1093 |
* Return the maximum size of the texture supported by the driver. |
Also available in: Unified diff
Minor.