-#include <moof/socket.hh>
-
-#include <fstream>
-
-class MyAsset
-{
-public:
- MyAsset(const std::string& path)
- {
- moof::log_info("MyAsset loading:", path);
-
- char buffer[1024];
-
- std::ifstream stream(path.c_str());
- stream.getline(buffer, sizeof(buffer));
- str = buffer;
- stream.close();
-
- cool();
- }
-
- void cool()
- {
- moof::log_info("MyAsset COOL:", str);
- }
-
- void groovy()
- {
- moof::log_info("MyAsset GROOVY!!!!", str);
- }
-
- std::string str;
-};
-
-typedef moof::resource_handle<MyAsset> MyAsset_handle;
-
-class AnotherAsset
-{
-public:
- AnotherAsset(const std::string& path, double d = 5.0)
- {
- moof::log_info("AnotherAsset loading:", path);
- dude = d;
- }
-
-
- void cool()
- {
- moof::log_info("AnotherAsset cool", dude);
- }
-
- void groovy()
- {
- moof::log_info("AnotherAsset GROOVY!!!!", dude);
- }
-
- double dude;
-};
+#include <moof/image.hh>
+#include <moof/backend.hh>
+#include <moof/sprite.hh>