source: trunk/src/gpu/vbo.h @ 1053

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

gpu: start implementing a vertex buffer object.

  • Property svn:keywords set to Id
File size: 788 bytes
Line 
1//
2// Lol Engine
3//
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//
10
11//
12// The GpuVbo class
13// ----------------
14//
15
16#if !defined __LOL_VBO_H__
17#define __LOL_VBO_H__
18
19namespace lol
20{
21
22class GpuVboData;
23
24class GpuVbo
25{
26public:
27    GpuVbo();
28    ~GpuVbo();
29
30    void SetSize(size_t elemsize, size_t elemcount);
31    size_t GetSize();
32    uint8_t *GetData();
33    uint8_t const *GetData() const;
34
35    void Bind();
36    void Unbind();
37
38private:
39    GpuVboData *data;
40};
41
42} /* namespace lol */
43
44#endif // __LOL_VBO_H__
45
Note: See TracBrowser for help on using the repository browser.