sead
Loading...
Searching...
No Matches
aglIndexStream.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
#
include
<
basis
/
seadAssert
.
h
>
4
5
namespace
agl
{
6
7
inline
void
8
IndexStream
::
draw
()
const
9
{
10
drawInstanced
(1, 0);
11
}
12
13
inline
void
14
IndexStream
::
draw
(
u32
start
,
u32
count
)
const
15
{
16
drawInstanced
(
start
,
count
, 1, 0);
17
}
18
19
inline
void
20
IndexStream
::
drawInstanced
(
u32
instance_num
)
const
21
{
22
drawInstanced
(
instance_num
, 0);
23
}
24
25
inline
void
26
IndexStream
::
drawInstanced
(
u32
start
,
u32
count
,
u32
instance_num
)
const
27
{
28
drawInstanced
(
start
,
count
,
instance_num
, 0);
29
}
30
31
inline
void
32
IndexStream
::
drawInstanced
(
u32
instance_num
,
u32
base_vertex
)
const
33
{
34
drawInstanced
(0,
getCount
(),
instance_num
,
base_vertex
);
35
}
36
37
inline
void
38
IndexStream
::
drawInstanced
(
u32
start
,
u32
count
,
u32
instance_num
,
u32
base_vertex
)
const
39
{
40
if
(
count
> 0)
41
{
42
SEAD_ASSERT
((
start
+
count
) <=
getCount
());
43
GX2DrawIndexedEx
(
mPrimitiveType
,
count
,
GX2IndexFormat
(
mFormat
),
getBufferPtr
(
start
),
base_vertex
,
instance_num
);
44
}
45
}
46
47
}
agl
Definition
aglDisplayList.cpp:5
SEAD_ASSERT
#define SEAD_ASSERT(condition)
Definition
seadAssert.h:24
packages
agl
include
common
aglIndexStream.hpp
Generated by
1.14.0