Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
b73f0f10
Commit
b73f0f10
authored
13 years ago
by
prep
Browse files
Options
Downloads
Patches
Plain Diff
Navmesh rendering api update to ll color structs
parent
c262425b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llrender/llrendernavprim.cpp
+3
-3
3 additions, 3 deletions
indra/llrender/llrendernavprim.cpp
indra/llrender/llrendernavprim.h
+2
-2
2 additions, 2 deletions
indra/llrender/llrendernavprim.h
with
5 additions
and
5 deletions
indra/llrender/llrendernavprim.cpp
+
3
−
3
View file @
b73f0f10
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
//=============================================================================
//=============================================================================
LLRenderNavPrim
gRenderNav
;
LLRenderNavPrim
gRenderNav
;
//=============================================================================
//=============================================================================
void
LLRenderNavPrim
::
renderSegment
(
const
LLVector3
&
start
,
const
LLVector3
&
end
,
int
color
)
const
void
LLRenderNavPrim
::
render
LL
Segment
(
const
LLVector3
&
start
,
const
LLVector3
&
end
,
const
LLColor4U
&
color
)
const
{
{
LLColor4
colorA
(
color
);
LLColor4
colorA
(
color
);
gGL
.
color3fv
(
colorA
.
mV
);
gGL
.
color3fv
(
colorA
.
mV
);
...
@@ -81,7 +81,7 @@ void LLRenderNavPrim::renderNavMeshVB( LLVertexBuffer* pVBO, int vertCnt )
...
@@ -81,7 +81,7 @@ void LLRenderNavPrim::renderNavMeshVB( LLVertexBuffer* pVBO, int vertCnt )
pVBO
->
drawArrays
(
LLRender
::
TRIANGLES
,
0
,
vertCnt
);
pVBO
->
drawArrays
(
LLRender
::
TRIANGLES
,
0
,
vertCnt
);
}
}
//=============================================================================
//=============================================================================
void
LLRenderNavPrim
::
renderStar
(
const
LLVector3
&
center
,
const
float
scale
,
int
color
)
const
void
LLRenderNavPrim
::
renderStar
(
const
LLVector3
&
center
,
const
float
scale
,
const
LLColor4U
&
color
)
const
{
{
for
(
int
k
=
0
;
k
<
3
;
k
++
)
for
(
int
k
=
0
;
k
<
3
;
k
++
)
{
{
...
@@ -90,7 +90,7 @@ void LLRenderNavPrim::renderStar( const LLVector3& center, const float scale, in
...
@@ -90,7 +90,7 @@ void LLRenderNavPrim::renderStar( const LLVector3& center, const float scale, in
star
[
k
]
=
0.5
f
;
star
[
k
]
=
0.5
f
;
pt1
=
center
+
star
;
pt1
=
center
+
star
;
pt2
=
center
-
star
;
pt2
=
center
-
star
;
renderSegment
(
pt1
,
pt2
,
color
);
render
LL
Segment
(
pt1
,
pt2
,
color
);
}
}
}
}
//=============================================================================
//=============================================================================
This diff is collapsed.
Click to expand it.
indra/llrender/llrendernavprim.h
+
2
−
2
View file @
b73f0f10
...
@@ -40,7 +40,7 @@ class LLRenderNavPrim
...
@@ -40,7 +40,7 @@ class LLRenderNavPrim
{
{
public:
public:
//Draw a line
//Draw a line
void
renderSegment
(
const
LLVector3
&
start
,
const
LLVector3
&
end
,
int
color
)
const
;
void
render
LL
Segment
(
const
LLVector3
&
start
,
const
LLVector3
&
end
,
const
LLColor4U
&
color
)
const
;
//Draw simple tri
//Draw simple tri
void
renderTri
(
const
LLVector3
&
a
,
const
LLVector3
&
b
,
const
LLVector3
&
c
,
int
color
)
const
;
void
renderTri
(
const
LLVector3
&
a
,
const
LLVector3
&
b
,
const
LLVector3
&
c
,
int
color
)
const
;
//Draw simple tri
//Draw simple tri
...
@@ -48,7 +48,7 @@ class LLRenderNavPrim
...
@@ -48,7 +48,7 @@ class LLRenderNavPrim
//Draw the contents of vertex buffer
//Draw the contents of vertex buffer
void
renderNavMeshVB
(
LLVertexBuffer
*
pVBO
,
int
vertCnt
);
void
renderNavMeshVB
(
LLVertexBuffer
*
pVBO
,
int
vertCnt
);
//Draw a star
//Draw a star
void
renderStar
(
const
LLVector3
&
center
,
const
float
scale
,
int
color
)
const
;
void
renderStar
(
const
LLVector3
&
center
,
const
float
scale
,
const
LLColor4U
&
color
)
const
;
//Flush the device
//Flush the device
void
flushDevice
()
{
gGL
.
flush
();
}
void
flushDevice
()
{
gGL
.
flush
();
}
private
:
private
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment