source: trunk/src/asset.cpp @ 100

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

Slightly improve the documentation in a few files, add the missing
joystick class, and put a header in each source file.

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