Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef RESOURCE_CALLBACK_H
00013 #define RESOURCE_CALLBACK_H
00014
00020 #include "ApexUsingNamespace.h"
00021
00022 namespace nvidia
00023 {
00024 namespace apex
00025 {
00026
00027 PX_PUSH_PACK_DEFAULT
00028
00036 class ResourceCallback
00037 {
00038 public:
00039 virtual ~ResourceCallback() {}
00040
00052 virtual void* requestResource(const char* nameSpace, const char* name) = 0;
00053
00060 virtual void releaseResource(const char* nameSpace, const char* name, void* resource) = 0;
00061 };
00062
00063 PX_POP_PACK
00064
00065 }
00066 }
00067
00068 #endif // RESOURCE_CALLBACK_H