source: trunk/src/tiler.h @ 645

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

Switch scene rendering method to vertex buffer objects.

  • Property svn:keywords set to Id
File size: 916 bytes
RevLine 
[100]1//
[221]2// Lol Engine
[100]3//
[221]4// Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
5//   This program is free software; you can redistribute it and/or
6//   modify it under the terms of the Do What The Fuck You Want To
7//   Public License, Version 2, as published by Sam Hocevar. See
8//   http://sam.zoy.org/projects/COPYING.WTFPL for more details.
9//
[75]10
[100]11//
12// The Tiler class
13// ---------------
14// The Tiler is a static class that manages tilesets.
15//
[75]16
17#if !defined __DH_TILER_H__
18#define __DH_TILER_H__
19
[79]20#include <stdint.h>
21
[75]22class Tiler
23{
24public:
[633]25    static int Register(char const *path, int2 size, int2 count, float dilate);
[75]26    static void Deregister(int id);
[79]27
[637]28    static int2 GetSize(int id);
29    static int2 GetCount(int id);
[645]30    static void Bind(uint32_t code);
31    static void BlitTile(uint32_t code, int x, int y, int z, int o,
32                         float *vertex, float *texture);
[75]33};
34
35#endif // __DH_TILER_H__
36
Note: See TracBrowser for help on using the repository browser.