2
* Copyright 2010 Inalogic Inc.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License version 3, as
6
* published by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the applicable version of the GNU Lesser General Public
12
* License for more details.
14
* You should have received a copy of both the GNU Lesser General Public
15
* License version 3 along with this program. If not, see
16
* <http://www.gnu.org/licenses/>
18
* Authored by: Jay Taoko <jay.taoko_AT_gmail_DOT_com>
23
#ifndef IOPENGLPIXELBUFFEROBJECT_H
24
#define IOPENGLPIXELBUFFEROBJECT_H
28
class IOpenGLPixelBufferObject: public IOpenGLResource
30
DECLARE_OBJECT_TYPE(IOpenGLPixelBufferObject, IOpenGLResource);
33
virtual ~IOpenGLPixelBufferObject();
36
unsigned int OffsetToLock,
37
unsigned int SizeToLock,
41
int GetDescription(INDEXBUFFER_DESC* desc) const
47
void BindPackPixelBufferObject();
48
void BindUnpackPixelBufferObject();
53
IOpenGLPixelBufferObject(unsigned int Size, VBO_USAGE Usage);
59
unsigned int _OffsetToLock;
60
unsigned int _SizeToLock;
61
friend class GLDeviceFactory;
66
#endif // IOPENGLPIXELBUFFEROJECT_H