Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
2c1a2f4e
"...text-generation-inference.git" did not exist on "8ec57558cd5b7b2ad3eaacdd6295a3db0c9092d0"
Commit
2c1a2f4e
authored
Dec 28, 2012
by
Davis King
Browse files
Added some polynomial drawing to the testing gui
parent
af7fcb0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
dlib/test/gui/main.cpp
dlib/test/gui/main.cpp
+6
-0
No files found.
dlib/test/gui/main.cpp
View file @
2c1a2f4e
...
@@ -77,6 +77,12 @@ private:
...
@@ -77,6 +77,12 @@ private:
if
(
hidden
==
false
)
if
(
hidden
==
false
)
{
{
fill_rect
(
c
,
rect
,
rgb_pixel
(
red
,
green
,
blue
));
fill_rect
(
c
,
rect
,
rgb_pixel
(
red
,
green
,
blue
));
std
::
vector
<
point
>
poly
;
poly
.
push_back
((
rect
.
tl_corner
()
+
rect
.
tr_corner
())
/
2
);
poly
.
push_back
((
rect
.
tr_corner
()
+
rect
.
br_corner
())
/
2
);
poly
.
push_back
((
rect
.
br_corner
()
+
rect
.
bl_corner
())
/
2
);
poly
.
push_back
((
rect
.
bl_corner
()
+
rect
.
tl_corner
())
/
2
);
draw_solid_convex_polygon
(
c
,
poly
,
rgb_alpha_pixel
(
0
,
0
,
0
,
70
));
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment