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 | |
---|
8 | namespace nv { |
---|
9 | namespace graphics { |
---|
10 | |
---|
11 | class IndexBuffer |
---|
12 | { |
---|
13 | public: |
---|
14 | IndexBuffer(int indexCount, int *data, bool copy = true); |
---|
15 | ~IndexBuffer(); |
---|
16 | |
---|
17 | int getIndexCount() const; |
---|
18 | const int *getData() const; |
---|
19 | |
---|
20 | private: |
---|
21 | int _indexCount; |
---|
22 | int *_data; |
---|
23 | }; |
---|
24 | |
---|
25 | inline int IndexBuffer::getIndexCount() const |
---|
26 | { |
---|
27 | return _indexCount; |
---|
28 | } |
---|
29 | |
---|
30 | inline 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.