aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2015-04-17 22:20:48 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2015-04-17 22:20:48 +0200
commit934d5fb11ec1e696b780d7d111c867af5c9b001f (patch)
tree4ec709b791cabfa3c5f0adde78c79d5c783ddcf8
parentc3657a01ec8ce2c159978d1ee4d36b5456413ca1 (diff)
downloadwglarb-master.tar.gz
wglarb-master.tar.bz2
-rw-r--r--test/customframe.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/test/customframe.c b/test/customframe.c
index d3cbeb5..f696828 100644
--- a/test/customframe.c
+++ b/test/customframe.c
@@ -256,7 +256,7 @@ void display(HWND hWnd)
bg_color[0],
bg_color[1],
bg_color[2],
- 0.);
+ 0.0);
glClearDepth(1.);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
@@ -267,6 +267,17 @@ void display(HWND hWnd)
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
+ GLfloat const gradient_blend[] = {
+ -1., -1., 0., 0., 0., 1.,
+ 1., -1., 0., 0., 0., 1.,
+
+ -1., 0.95, 0., 0., 0., 1.,
+ 1., 0.95, 0., 0., 0., 1.,
+
+ -1., 1., bg_color[0], bg_color[1], bg_color[2], 0.,
+ 1., 1., bg_color[0], bg_color[1], bg_color[2], 0.,
+ };
+
float const cos60 = cosf(M_PI*60./180.);
float const sin60 = sinf(M_PI*60./180.);
@@ -316,15 +327,11 @@ int main(int argc, char *argv[])
use_dwm = 6 <= os_vinfo.dwMajorVersion;
HWND hWndGL = OpenGLWindowCreate(
- "Test", "TestWnd",
+ "Custom Frame Window", "CustFrmWnd",
ViewProc,
hInstance,
-#if 1
- WS_OVERLAPPEDWINDOW
-#else
- WS_POPUP
-#endif
- , WS_EX_APPWINDOW,
+ WS_OVERLAPPEDWINDOW,
+ WS_EX_APPWINDOW,
NULL);
if(!hWndGL) {
return -1;