Files
wagic/projects/mtg/include
wagic.jeck f220d2e9b9 Jeck - Cache and resource manager merged, streamlined.
This is pretty major, so there'll probably be something wrong with it... even though I did spend a few hours looking.
NOTES:
 * If you've Retrieved it, don't delete it--- Use resources.Release(Whatever). 
    Textures automatically release subordinate quads.
 * Most of the time, use resources.RetrieveQuad to grab a quad. Should handle everything for you.
    RetrieveQuad will load the required texture, if needed.
    Only managed resources have a resource name ("back", "simon", etc). 
    Managed resources can be retrieved with GetTexture/GetQuad/GetWhatever.
    Non managed quads lookup by position/dimensions, defaulting to the whole texture.
 * Use resources.RetrieveTexture only when you need to do something special to it. 
    Calling retrieve texture with RETRIEVE_MANAGE will permanently add a texture to the manager
    RETRIEVE_LOCK and RETRIEVE_VRAM will lock a texture. It will not leave the cache until
    Release(JTexture*) is called, or as a last resort during cache overflow.
 * Try to only store (as a class member) pointers to textures retrieved with RETRIEVE_MANAGE. 
    All others may become invalid, although locked textures do have a high degree of stability. It's
    pretty safe to store a locked texture if you're not going to load much between uses.

There's a lot going on here, so I might have missed something... but it runs through the test suite alright.

TODO: 
 * When called without any arguments, RetrieveQuad sometimes leaves a thin border around the image. 
    This can be bypassed by specifying a quad one or two pixels less than the image size. Why?
 * I've had a crash while runing the Demo mode, something to do with receiveEventMinus? 
    This hasn't exactly reproduced on a clean SVN copy, (being a hang, rather than a crash) so 
    I've probably done something to worsen the problem somehow? I'll look into it tomorrow.
 * Clean up lock/unlock system, memory usage. Streamline interface, consider phasing out calls using GetWhatever() format.
2009-09-03 09:28:16 +00:00
..
2009-07-11 15:59:51 +00:00
J :
2009-08-22 05:59:43 +00:00
2009-09-02 12:59:55 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2008-11-12 13:45:42 +00:00
2009-08-26 14:30:24 +00:00
2009-07-11 15:59:51 +00:00
2009-06-25 14:23:21 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-08-22 06:39:29 +00:00
2009-08-31 12:22:43 +00:00
J :
2009-08-28 13:57:12 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2008-11-12 13:45:42 +00:00
2009-02-16 13:46:14 +00:00
J :
2009-09-03 02:16:53 +00:00
J :
2009-08-31 02:00:33 +00:00
2009-07-26 06:08:39 +00:00
2009-05-19 13:45:53 +00:00
2009-08-25 11:55:07 +00:00
J :
2009-06-15 00:56:30 +00:00
2009-06-26 11:38:53 +00:00
J :
2009-09-03 02:16:53 +00:00
2009-07-16 11:48:59 +00:00
2009-08-22 00:46:45 +00:00
J :
2009-08-22 06:43:49 +00:00
J :
2009-08-22 06:01:52 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-08-31 16:55:03 +00:00
J :
2009-08-22 06:01:52 +00:00
2009-08-29 14:16:58 +00:00
J :
2009-08-22 05:59:43 +00:00
2009-08-29 14:16:58 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-08-22 06:27:03 +00:00
J :
2009-09-03 02:16:53 +00:00
2009-01-17 01:46:11 +00:00
2009-08-26 14:30:24 +00:00
J :
2008-11-12 13:45:42 +00:00
J :
2009-05-23 08:34:50 +00:00
2009-08-31 10:17:28 +00:00
2009-08-28 13:40:14 +00:00
2009-07-18 14:26:58 +00:00
J :
2009-08-22 05:59:43 +00:00
2009-07-11 15:59:51 +00:00
J :
2009-08-28 01:58:57 +00:00
J :
2009-08-22 06:01:52 +00:00
J :
2009-09-03 02:16:53 +00:00
2009-08-26 14:30:24 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-08-31 02:00:33 +00:00
2009-05-20 11:07:20 +00:00
2009-06-25 11:09:51 +00:00
2009-08-22 07:04:54 +00:00
2009-05-25 12:43:58 +00:00
2009-08-28 05:40:10 +00:00
2008-11-24 09:24:47 +00:00
J :
2009-08-22 05:59:43 +00:00
J :
2009-08-22 05:59:43 +00:00
2009-07-11 15:59:51 +00:00
2009-08-25 11:55:07 +00:00
2009-05-31 09:42:08 +00:00
2008-12-16 14:20:03 +00:00
2009-05-16 15:23:26 +00:00
J :
2009-08-31 02:00:33 +00:00