Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
graphicsframework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Oliver Behnke
graphicsframework
Commits
5f2ce34a
Commit
5f2ce34a
authored
16 years ago
by
Oliver Bock
Browse files
Options
Downloads
Patches
Plain Diff
Enabled FSAA (for polygon anti-aliasing) in high quality mode
parent
123fcd36
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/framework/WindowManager.cpp
+6
-2
6 additions, 2 deletions
src/framework/WindowManager.cpp
src/starsphere/Starsphere.cpp
+1
-5
1 addition, 5 deletions
src/starsphere/Starsphere.cpp
src/starsphere/StarsphereRadio.cpp
+10
-0
10 additions, 0 deletions
src/starsphere/StarsphereRadio.cpp
with
17 additions
and
7 deletions
src/framework/WindowManager.cpp
+
6
−
2
View file @
5f2ce34a
...
...
@@ -122,13 +122,17 @@ bool WindowManager::initialize(const int width, const int height, const int fram
SDL_GL_SetAttribute
(
SDL_GL_DOUBLEBUFFER
,
1
);
SDL_GL_SetAttribute
(
SDL_GL_SWAP_CONTROL
,
1
);
// enable opt-in quality feature FSAA (4x)
if
(
m_BoincAdapter
->
graphicsQualitySetting
()
==
BOINCClientAdapter
::
HighGraphicsQualitySetting
)
{
SDL_GL_SetAttribute
(
SDL_GL_MULTISAMPLESAMPLES
,
4
);
SDL_GL_SetAttribute
(
SDL_GL_MULTISAMPLEBUFFERS
,
1
);
}
// unused requirements
//SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
//SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32);
//SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
//SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
//SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);
//SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1);
// we always start in windowed mode
// (starting in fullscreen fails with high CPU load!)
...
...
This diff is collapsed.
Click to expand it.
src/starsphere/Starsphere.cpp
+
1
−
5
View file @
5f2ce34a
...
...
@@ -863,11 +863,7 @@ void Starsphere::render(const double timeOfDay)
glPushMatrix
();
glLoadIdentity
();
if
(
isFeature
(
LOGO
))
{
// call subclass implementation
renderLogo
();
}
if
(
isFeature
(
LOGO
))
renderLogo
();
if
(
isFeature
(
SEARCHINFO
))
renderSearchInformation
();
// restore original state
...
...
This diff is collapsed.
Click to expand it.
src/starsphere/StarsphereRadio.cpp
+
10
−
0
View file @
5f2ce34a
...
...
@@ -371,6 +371,11 @@ void StarsphereRadio::generateObservatories(float dimFactor)
m_areciboObservatory
=
glGenLists
(
1
);
glNewList
(
m_areciboObservatory
,
GL_COMPILE
);
// enable opt-in quality feature FSAA (GL_POLYGON_SMOOTH is discouraged)
if
(
m_QualitySetting
==
BOINCClientAdapter
::
HighGraphicsQualitySetting
)
{
glEnable
(
GL_MULTISAMPLE_ARB
);
}
// we don't dim Arecibo, just IFOs
glColor3f
(
0.75
,
0.75
,
0.75
);
...
...
@@ -434,6 +439,11 @@ void StarsphereRadio::generateObservatories(float dimFactor)
sphVertex3D
(
RAdeg
+
0.7
,
DEdeg
-
0.7
,
radius
);
glEnd
();
// disable opt-in quality feature FSAA again
if
(
m_QualitySetting
==
BOINCClientAdapter
::
HighGraphicsQualitySetting
)
{
glDisable
(
GL_MULTISAMPLE_ARB
);
}
glEndList
();
}
...
...
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