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
fa562d19
Commit
fa562d19
authored
12 years ago
by
Todd Stinson
Browse files
Options
Downloads
Patches
Plain Diff
Removing unreferenced methods from the LLRenderNavPrim class.
parent
edf5a3f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
autobuild.xml
+6
-6
6 additions, 6 deletions
autobuild.xml
indra/llrender/llrendernavprim.cpp
+3
-43
3 additions, 43 deletions
indra/llrender/llrendernavprim.cpp
indra/llrender/llrendernavprim.h
+5
-15
5 additions, 15 deletions
indra/llrender/llrendernavprim.h
with
14 additions
and
64 deletions
autobuild.xml
+
6
−
6
View file @
fa562d19
...
...
@@ -1110,9 +1110,9 @@
<key>
archive
</key>
<map>
<key>
hash
</key>
<string>
9a37d0201667a971887604f171394966
</string>
<string>
67bfd6a2bab9770fc1c9907f784c9449
</string>
<key>
url
</key>
<string>
http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/260
580
/arch/Darwin/installer/llphysicsextensions-0.1-darwin-2012062
5
.tar.bz2
</string>
<string>
http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/260
768
/arch/Darwin/installer/llphysicsextensions-0.1-darwin-2012062
7
.tar.bz2
</string>
</map>
<key>
name
</key>
<string>
darwin
</string>
...
...
@@ -1122,9 +1122,9 @@
<key>
archive
</key>
<map>
<key>
hash
</key>
<string>
5600a7849a6bc00cfe08baa5bc251efd
</string>
<string>
e320ac6c5b2ea2463c70e25bbec61138
</string>
<key>
url
</key>
<string>
http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/260
580
/arch/Linux/installer/llphysicsextensions-0.1-linux-2012062
6
.tar.bz2
</string>
<string>
http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/260
768
/arch/Linux/installer/llphysicsextensions-0.1-linux-2012062
8
.tar.bz2
</string>
</map>
<key>
name
</key>
<string>
linux
</string>
...
...
@@ -1134,9 +1134,9 @@
<key>
archive
</key>
<map>
<key>
hash
</key>
<string>
bfcfb9bc885e46a1b97f8f91cf5d5fd
1
</string>
<string>
63a05f96e5b396ffdb1951679bfc1fe
1
</string>
<key>
url
</key>
<string>
http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/260
580
/arch/CYGWIN/installer/llphysicsextensions-0.1-windows-2012062
5
.tar.bz2
</string>
<string>
http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/260
768
/arch/CYGWIN/installer/llphysicsextensions-0.1-windows-2012062
7
.tar.bz2
</string>
</map>
<key>
name
</key>
<string>
windows
</string>
...
...
This diff is collapsed.
Click to expand it.
indra/llrender/llrendernavprim.cpp
+
3
−
43
View file @
fa562d19
...
...
@@ -30,41 +30,14 @@
#include
"llrendernavprim.h"
#include
"llerror.h"
#include
"llglheaders.h"
#include
"llglslshader.h"
#include
"llrender.h"
#include
"llvertexbuffer.h"
#include
"v4coloru.h"
#include
"v3math.h"
//=============================================================================
LLRenderNavPrim
gRenderNav
;
//=============================================================================
void
LLRenderNavPrim
::
renderLLSegment
(
const
LLVector3
&
start
,
const
LLVector3
&
end
,
const
LLColor4U
&
color
)
const
{
LLColor4
colorA
(
color
);
gGL
.
color3fv
(
colorA
.
mV
);
gGL
.
begin
(
LLRender
::
LINES
);
{
gGL
.
vertex3fv
(
start
.
mV
);
gGL
.
vertex3fv
(
end
.
mV
);
}
gGL
.
end
();
}
//=============================================================================
void
LLRenderNavPrim
::
renderTri
(
const
LLVector3
&
a
,
const
LLVector3
&
b
,
const
LLVector3
&
c
,
int
color
)
const
{
LLColor4
colorA
(
color
);
colorA
*=
1.25
f
;
gGL
.
color4fv
(
colorA
.
mV
);
gGL
.
begin
(
LLRender
::
TRIANGLES
);
{
gGL
.
vertex3fv
(
a
.
mV
);
gGL
.
vertex3fv
(
b
.
mV
);
gGL
.
vertex3fv
(
c
.
mV
);
}
gGL
.
end
();
}
//=============================================================================
void
LLRenderNavPrim
::
renderLLTri
(
const
LLVector3
&
a
,
const
LLVector3
&
b
,
const
LLVector3
&
c
,
const
LLColor4U
&
color
)
const
{
LLColor4
cV
(
color
);
...
...
@@ -84,16 +57,3 @@ void LLRenderNavPrim::renderNavMeshVB( U32 mode, LLVertexBuffer* pVBO, int vertC
pVBO
->
drawArrays
(
mode
,
0
,
vertCnt
);
}
//=============================================================================
void
LLRenderNavPrim
::
renderStar
(
const
LLVector3
&
center
,
const
float
scale
,
const
LLColor4U
&
color
)
const
{
for
(
int
k
=
0
;
k
<
3
;
k
++
)
{
LLVector3
star
,
pt1
,
pt2
;
star
=
LLVector3
(
0.0
f
,
0.0
f
,
0.0
f
);
star
[
k
]
=
0.5
f
;
pt1
=
center
+
star
;
pt2
=
center
-
star
;
renderLLSegment
(
pt1
,
pt2
,
color
);
}
}
//=============================================================================
This diff is collapsed.
Click to expand it.
indra/llrender/llrendernavprim.h
+
5
−
15
View file @
fa562d19
...
...
@@ -27,30 +27,20 @@
#ifndef LL_LLRENDERNAVPRIM_H
#define LL_LLRENDERNAVPRIM_H
#include
"llmath.h"
#include
"v3math.h"
#include
"v4math.h"
#include
"m3math.h"
#include
"m4math.h"
#include
"v4color.h"
#include
"llgl.h"
#include
"stdtypes.h"
class
LLColor4U
;
class
LLVector3
;
class
LLVertexBuffer
;
class
LLRenderNavPrim
{
public:
//Draw a line
void
renderLLSegment
(
const
LLVector3
&
start
,
const
LLVector3
&
end
,
const
LLColor4U
&
color
)
const
;
//Draw simple tri
void
renderTri
(
const
LLVector3
&
a
,
const
LLVector3
&
b
,
const
LLVector3
&
c
,
int
color
)
const
;
//Draw simple tri
void
renderLLTri
(
const
LLVector3
&
a
,
const
LLVector3
&
b
,
const
LLVector3
&
c
,
const
LLColor4U
&
color
)
const
;
//Draw the contents of vertex buffer
void
renderNavMeshVB
(
U32
mode
,
LLVertexBuffer
*
pVBO
,
int
vertCnt
);
//Draw a star
void
renderStar
(
const
LLVector3
&
center
,
const
float
scale
,
const
LLColor4U
&
color
)
const
;
//Flush the device
void
flushDevice
()
{
gGL
.
flush
();
}
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