|
From: <cn...@us...> - 2009-05-12 05:02:06
|
Revision: 232
http://hgengine.svn.sourceforge.net/hgengine/?rev=232&view=rev
Author: cnlohr
Date: 2009-05-12 05:01:58 +0000 (Tue, 12 May 2009)
Log Message:
-----------
implement more of the Win32 window.
Modified Paths:
--------------
Mercury2/src/Win32Window.cpp
Modified: Mercury2/src/Win32Window.cpp
===================================================================
--- Mercury2/src/Win32Window.cpp 2009-05-12 05:01:48 UTC (rev 231)
+++ Mercury2/src/Win32Window.cpp 2009-05-12 05:01:58 UTC (rev 232)
@@ -1,4 +1,5 @@
#include <Win32Window.h>
+#include <GLHeaders.h>
LRESULT CALLBACK WindowCallback(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); //Window callback
Callback0R< MercuryWindow* > MercuryWindow::genWindowClbk(Win32Window::GenWin32Window); //Register window generation callback
@@ -197,11 +198,13 @@
void* Win32Window::GetProcAddress(const MString& x)
{
- return NULL;
+ return wglGetProcAddress( x.c_str() );
}
void Win32Window::Clear()
{
+ glClearColor( .1f, .1f, .1f, 0.0f );
+ glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|