source: nanovis/trunk/graphics/IndexBuffer.h @ 5704

Last change on this file since 5704 was 3465, checked in by ldelgass, 11 years ago

Rename R2 library to nv::graphics and nv::util.

  • Property svn:eol-style set to native
File size: 616 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 *  Copyright (c) 2004-2013  HUBzero Foundation, LLC
4 */
5#ifndef NV_GRAPHICS_INDEX_BUFFER_H
6#define NV_GRAPHICS_INDEX_BUFFER_H
7
8namespace nv {
9namespace graphics {
10
11class IndexBuffer
12{
13public:
14    IndexBuffer(int indexCount, int *data, bool copy = true);
15    ~IndexBuffer();
16
17    int getIndexCount() const;
18    const int *getData() const;
19
20private:
21    int _indexCount;
22    int *_data;
23};
24
25inline int IndexBuffer::getIndexCount() const
26{
27    return _indexCount;
28}
29
30inline const int *IndexBuffer::getData() const
31{
32    return _data;
33}
34
35}
36}
37
38#endif
Note: See TracBrowser for help on using the repository browser.