source: trunk/src/asset.cpp @ 101

Last change on this file since 101 was 101, checked in by sam, 11 years ago

Implement ticking groups.

  • Property svn:keywords set to Id
File size: 575 bytes
RevLine 
[100]1//
2// Deus Hax (working title)
3// Copyright (c) 2010 Sam Hocevar <sam@hocevar.net>
4//
[94]5
[100]6#if defined HAVE_CONFIG_H
7#   include "config.h"
8#endif
9
[98]10#include <cstdlib>
[94]11
12#include "asset.h"
13#include "ticker.h"
14
15/*
16 * Public Asset class
17 */
18
19Asset::Asset() :
[98]20    next(0),
[94]21    ref(0),
22    destroy(0)
23{
24    Ticker::Register(this);
25}
26
27Asset::~Asset()
28{
29}
30
[101]31Asset::Group Asset::GetGroup()
32{
33    return GROUP_DEFAULT;
34}
35
[94]36void Asset::TickGame(float delta_time)
37{
38
39}
40
41void Asset::TickRender(float delta_time)
42{
43
44}
45
46void Asset::Ref()
47{
48    ref++;
49}
50
51int Asset::Unref()
52{
53    return --ref;
54}
55
Note: See TracBrowser for help on using the repository browser.