-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndexBuffer.py
24 lines (20 loc) · 945 Bytes
/
IndexBuffer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class IndexBuffer(Object3D):
def __init__(self, handle=None):
if handle is not None:
super().__init__(handle)
else:
super().__init__()
def get_index_count(self):
"""Get the count of indices."""
raise NotImplementedError("get_index_count method must be implemented by subclass")
def get_index_count_impl(self):
"""Native method for getting index count."""
# Implement the native functionality in a platform-specific way, or simulate with Python
pass
def get_indices(self, indices):
"""Fill the provided array with indices."""
raise NotImplementedError("get_indices method must be implemented by subclass")
def get_indices_impl(self, indices):
"""Native method for getting indices."""
# Implement the native functionality in a platform-specific way, or simulate with Python
pass