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
8e916614
Commit
8e916614
authored
16 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
call redraw() directly when filling pixelBuffer... we'll see if it breaks anything
parent
4f5008d8
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
Fltk/Draw.cpp
+8
-13
8 additions, 13 deletions
Fltk/Draw.cpp
doc/VERSIONS.txt
+2
-2
2 additions, 2 deletions
doc/VERSIONS.txt
with
10 additions
and
15 deletions
Fltk/Draw.cpp
+
8
−
13
View file @
8e916614
...
@@ -26,6 +26,14 @@ void Draw()
...
@@ -26,6 +26,14 @@ void Draw()
GUI
::
instance
()
->
check
();
GUI
::
instance
()
->
check
();
}
}
void
DrawCurrentOpenglWindow
(
bool
make_current
)
{
if
(
!
GUI
::
available
())
return
;
openglWindow
*
gl
=
GUI
::
instance
()
->
getCurrentOpenglWindow
();
if
(
make_current
)
gl
->
make_current
();
gl
->
redraw
();
}
void
DrawPlugin
(
void
(
*
draw
)(
void
*
context
))
void
DrawPlugin
(
void
(
*
draw
)(
void
*
context
))
{
{
CTX
::
instance
()
->
post
.
pluginDrawFunction
=
draw
;
CTX
::
instance
()
->
post
.
pluginDrawFunction
=
draw
;
...
@@ -43,19 +51,6 @@ void DrawPlugin(void (*draw)(void *context))
...
@@ -43,19 +51,6 @@ void DrawPlugin(void (*draw)(void *context))
CTX
::
instance
()
->
mesh
.
draw
=
1
;
CTX
::
instance
()
->
mesh
.
draw
=
1
;
}
}
void
DrawCurrentOpenglWindow
(
bool
make_current
)
{
if
(
!
GUI
::
available
())
return
;
openglWindow
*
gl
=
GUI
::
instance
()
->
getCurrentOpenglWindow
();
if
(
make_current
)
gl
->
make_current
();
glClearColor
(
CTX
::
instance
()
->
unpackRed
(
CTX
::
instance
()
->
color
.
bg
)
/
255.
,
CTX
::
instance
()
->
unpackGreen
(
CTX
::
instance
()
->
color
.
bg
)
/
255.
,
CTX
::
instance
()
->
unpackBlue
(
CTX
::
instance
()
->
color
.
bg
)
/
255.
,
0.
);
glClear
(
GL_DEPTH_BUFFER_BIT
|
GL_COLOR_BUFFER_BIT
);
gl
->
getDrawContext
()
->
draw3d
();
gl
->
getDrawContext
()
->
draw2d
();
}
int
GetFontIndex
(
const
char
*
fontname
)
int
GetFontIndex
(
const
char
*
fontname
)
{
{
if
(
fontname
){
if
(
fontname
){
...
...
This diff is collapsed.
Click to expand it.
doc/VERSIONS.txt
+
2
−
2
View file @
8e916614
$Id: VERSIONS.txt,v 1.3
7
2009-03-
08 19:12
:3
4
geuzaine Exp $
$Id: VERSIONS.txt,v 1.3
8
2009-03-
13 08:04
:3
8
geuzaine Exp $
(?): removed GSL dependency (Gmsh now simply requires Blas and
(?): removed GSL dependency (Gmsh now simply requires Blas and
Lapack); new per-window visibility; added support for composite window
Lapack); new per-window visibility; added support for composite window
printing and background image; fixes for string options in parser.
printing and background image
s
; fixes for string options in parser.
2.3.0 (Jan 23, 2009): major graphics and GUI code refactoring; new
2.3.0 (Jan 23, 2009): major graphics and GUI code refactoring; new
full-quad/hexa subdivision algorithm (removed Mesh.RecombineAlgo);
full-quad/hexa subdivision algorithm (removed Mesh.RecombineAlgo);
...
...
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