source: trunk/src/asset.h @ 94

Last change on this file since 94 was 94, checked in by sam, 10 years ago

Implement a clean class for various assets that can be ticked both in
the game context and in the render context, and a ticker class that
takes care of the ticking.

  • Property svn:keywords set to Id
File size: 397 bytes
Line 
1
2/*
3 * The asset object
4 */
5
6#if !defined __DH_ASSET_H__
7#define __DH_ASSET_H__
8
9#include <stdint.h>
10
11class Asset
12{
13    friend class Ticker;
14
15public:
16    Asset();
17    virtual ~Asset();
18
19    virtual void TickGame(float delta_time);
20    virtual void TickRender(float delta_time);
21
22    virtual void Ref();
23    virtual int Unref();
24
25private:
26    int index, ref, destroy;
27};
28
29#endif // __DH_ASSET_H__
30
Note: See TracBrowser for help on using the repository browser.