Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
e86b711c
Commit
e86b711c
authored
20 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
removed glEnable(GL_ALPHA): this is not even in the GL doc :-)
parent
4fd3a4ce
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Graphics/Draw.cpp
+3
-15
3 additions, 15 deletions
Graphics/Draw.cpp
TODO
+6
-1
6 additions, 1 deletion
TODO
with
9 additions
and
16 deletions
Graphics/Draw.cpp
+
3
−
15
View file @
e86b711c
// $Id: Draw.cpp,v 1.5
0
2004-05-1
2 03:22:13
geuzaine Exp $
// $Id: Draw.cpp,v 1.5
1
2004-05-1
4 16:47:30
geuzaine Exp $
//
//
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
// Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle
//
//
...
@@ -38,11 +38,6 @@ void Draw3d(void)
...
@@ -38,11 +38,6 @@ void Draw3d(void)
if
(
CTX
.
alpha
)
{
if
(
CTX
.
alpha
)
{
glBlendFunc
(
GL_SRC_ALPHA
,
GL_ONE_MINUS_SRC_ALPHA
);
glBlendFunc
(
GL_SRC_ALPHA
,
GL_ONE_MINUS_SRC_ALPHA
);
glEnable
(
GL_BLEND
);
glEnable
(
GL_BLEND
);
#if !defined(WIN32)
// This seems to perturb the font rendering on Windows... And
// everything seems to work fine without, so...
glEnable
(
GL_ALPHA
);
#endif
}
}
glPolygonOffset
(
1.0
,
1.0
);
glPolygonOffset
(
1.0
,
1.0
);
glDepthFunc
(
GL_LESS
);
glDepthFunc
(
GL_LESS
);
...
@@ -157,10 +152,7 @@ void Orthogonalize(int x, int y)
...
@@ -157,10 +152,7 @@ void Orthogonalize(int x, int y)
void
InitRenderModel
(
void
)
void
InitRenderModel
(
void
)
{
{
int
i
;
for
(
int
i
=
0
;
i
<
6
;
i
++
)
{
float
specular
[
4
];
for
(
i
=
0
;
i
<
6
;
i
++
)
{
if
(
CTX
.
light
[
i
])
{
if
(
CTX
.
light
[
i
])
{
GLfloat
tmp
[
4
];
GLfloat
tmp
[
4
];
for
(
int
j
=
0
;
j
<
4
;
j
++
)
for
(
int
j
=
0
;
j
<
4
;
j
++
)
...
@@ -173,11 +165,7 @@ void InitRenderModel(void)
...
@@ -173,11 +165,7 @@ void InitRenderModel(void)
glMaterialf
(
GL_FRONT_AND_BACK
,
GL_SHININESS
,
40.
);
glMaterialf
(
GL_FRONT_AND_BACK
,
GL_SHININESS
,
40.
);
glLightModelf
(
GL_LIGHT_MODEL_TWO_SIDE
,
GL_TRUE
);
glLightModelf
(
GL_LIGHT_MODEL_TWO_SIDE
,
GL_TRUE
);
glShadeModel
(
GL_SMOOTH
);
glShadeModel
(
GL_SMOOTH
);
// let's add some shininess to all these automatically created materials
float
specular
[
4
]
=
{
CTX
.
shine
,
CTX
.
shine
,
CTX
.
shine
,
1.0
};
specular
[
0
]
=
CTX
.
shine
;
specular
[
1
]
=
CTX
.
shine
;
specular
[
2
]
=
CTX
.
shine
;
specular
[
3
]
=
1.0
;
glMaterialfv
(
GL_FRONT_AND_BACK
,
GL_SPECULAR
,
specular
);
glMaterialfv
(
GL_FRONT_AND_BACK
,
GL_SPECULAR
,
specular
);
glEnable
(
GL_NORMALIZE
);
glEnable
(
GL_NORMALIZE
);
glEnable
(
GL_COLOR_MATERIAL
);
glEnable
(
GL_COLOR_MATERIAL
);
...
...
This diff is collapsed.
Click to expand it.
TODO
+
6
−
1
View file @
e86b711c
$Id: TODO,v 1.45 2004-05-13 05:34:06 geuzaine Exp $
$Id: TODO,v 1.46 2004-05-14 16:47:30 geuzaine Exp $
add a way to undo the geometry contour selections in the
GUI... (un-click)
********************************************************************
add ternary operator and <,>,<=,>=,== tests in MathEval
add ternary operator and <,>,<=,>=,== tests in MathEval
...
...
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