source: trunk/src/gpu/texture.h @ 1987

Last change on this file since 1987 was 1987, checked in by sam, 7 years ago

gpu: put the texture creation code in its own class; for now a lot of things are
hardcoded and only the fractal demo uses it, but everything will eventually switch.

  • Property svn:keywords set to Id
File size: 739 bytes
Line 
1//
2// Lol Engine
3//
4// Copyright: (c) 2010-2012 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//
10
11//
12// The Texture class
13// -----------------
14//
15
16#if !defined __LOL_TEXTURE_H__
17#define __LOL_TEXTURE_H__
18
19namespace lol
20{
21
22class Texture
23{
24public:
25    Texture(ivec2 size);
26    ~Texture();
27
28    void Bind();
29    void SetData(void *data);
30    void SetSubData(ivec2 origin, ivec2 size, void *data);
31
32private:
33    class TextureData *m_data;
34};
35
36} /* namespace lol */
37
38#endif // __LOL_TEXTURE_H__
39
Note: See TracBrowser for help on using the repository browser.