Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
3a862e10
Commit
3a862e10
authored
12 years ago
by
Ansgar Philippsen
Browse files
Options
Downloads
Patches
Plain Diff
fixed fast sphere rendering
parent
9e5f6b98
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/gfx/src/impl/cpk_renderer.cc
+1
-0
1 addition, 0 deletions
modules/gfx/src/impl/cpk_renderer.cc
modules/gfx/src/impl/fast_spheres.cc
+5
-0
5 additions, 0 deletions
modules/gfx/src/impl/fast_spheres.cc
modules/gfx/src/impl/fast_spheres.hh
+1
-0
1 addition, 0 deletions
modules/gfx/src/impl/fast_spheres.hh
with
7 additions
and
0 deletions
modules/gfx/src/impl/cpk_renderer.cc
+
1
−
0
View file @
3a862e10
...
...
@@ -64,6 +64,7 @@ void CPKRenderer::PrepareRendering(GfxView& view, IndexedVertexArray& va, bool i
#if OST_SHADER_SUPPORT_ENABLED
if
(
options_
->
GetSphereMode
()
==
1
||
options_
->
GetSphereMode
()
==
2
)
{
FastSphereRenderer
&
fsr
=
is_sel
?
sel_fsr_
:
fsr_
;
fsr
.
Clear
();
for
(
AtomEntryMap
::
const_iterator
it
=
view
.
atom_map
.
begin
();
it
!=
view
.
atom_map
.
end
();
++
it
)
{
fsr
.
Add
(
it
->
second
.
atom
.
GetPos
(),
is_sel
?
sel_clr
:
it
->
second
.
color
,
...
...
This diff is collapsed.
Click to expand it.
modules/gfx/src/impl/fast_spheres.cc
+
5
−
0
View file @
3a862e10
...
...
@@ -41,6 +41,11 @@ namespace ost { namespace gfx { namespace impl {
data_
(
d
)
{}
void
FastSphereRenderer
::
Clear
()
{
data_
.
clear
();
}
void
FastSphereRenderer
::
Add
(
float
pos
[
3
],
float
col
[
4
],
float
rad
)
{
static
VData
data
;
...
...
This diff is collapsed.
Click to expand it.
modules/gfx/src/impl/fast_spheres.hh
+
1
−
0
View file @
3a862e10
...
...
@@ -44,6 +44,7 @@ namespace ost { namespace gfx { namespace impl {
FastSphereRenderer
(
size_t
reserve
=
0
);
FastSphereRenderer
(
const
DataList
&
);
void
Clear
();
void
Add
(
float
pos
[
3
],
float
col
[
4
],
float
rad
);
void
Add
(
const
geom
::
Vec3
&
pos
,
const
Color
&
col
,
float
rad
);
...
...
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