Advertisement
Rapptz

Untitled

Sep 1st, 2014
522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. struct drawable {};
  2.  
  3. struct texture {};
  4.  
  5. struct test {
  6.     void do_register(const stuff& t) {
  7.         // register stuff's texture
  8.         // ...
  9.         // after registering, do a callback
  10.         // t.callback();
  11.     }
  12.    
  13.     void do_register(const texture& t) {
  14.         // register texture
  15.         // no callback
  16.     }
  17. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement