Extension.h 440 B

123456789101112131415161718192021222324
  1. #ifndef ANKI_RESOURCE_EXTENSION_H
  2. #define ANKI_RESOURCE_EXTENSION_H
  3. namespace anki {
  4. /// Extension resource
  5. class Extension
  6. {
  7. public:
  8. Extension();
  9. ~Extension();
  10. void load(const char* filename);
  11. /*template<typename Type>
  12. int FooBar(Type* ptr) { DEBUG_ERR(foobarPtr==NULL);
  13. return (*foobarPtr)(reinterpret_cast<Type*>(ptr)); }*/
  14. private:
  15. void* libHandle = nullptr;
  16. int(*foobarPtr)(void*) = nullptr;
  17. };
  18. } // end namespace
  19. #endif