diff options
author | Sven Gothel <[email protected]> | 2010-11-22 12:51:52 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-22 12:51:52 +0100 |
commit | a3f593158b25f78027504129c343b9aab433183d (patch) | |
tree | 78b1ce61415becc29d7505228b768fc84f48c824 /make/config/nativewindow | |
parent | 350b35a202fcc268b9d732b305418b2e76746501 (diff) |
NativeWindow/Windows: Fix CreateDummyWindow gluegen and usage
NativeWindow+JOGL/Windows: Complete Opaque types
Diffstat (limited to 'make/config/nativewindow')
-rw-r--r-- | make/config/nativewindow/win32-CustomJavaCode.java | 4 | ||||
-rw-r--r-- | make/config/nativewindow/win32-lib.cfg | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/make/config/nativewindow/win32-CustomJavaCode.java b/make/config/nativewindow/win32-CustomJavaCode.java index cd5b00b79..54a7fa53a 100644 --- a/make/config/nativewindow/win32-CustomJavaCode.java +++ b/make/config/nativewindow/win32-CustomJavaCode.java @@ -17,6 +17,10 @@ return hInstance; } + public static long CreateDummyWindow(int x, int y, int width, int height) { + return CreateDummyWindow0(getModuleHandle(), x, y, width, height); + } + public static Point GetRelativeLocation(long src_win, long dest_win, int src_x, int src_y) { return (Point) GetRelativeLocation0(src_win, dest_win, src_x, src_y); } diff --git a/make/config/nativewindow/win32-lib.cfg b/make/config/nativewindow/win32-lib.cfg index b7535b5e1..46c4f2f92 100644 --- a/make/config/nativewindow/win32-lib.cfg +++ b/make/config/nativewindow/win32-lib.cfg @@ -8,16 +8,16 @@ JavaClass GDI Style AllStatic Opaque boolean BOOL -Opaque long HINSTANCE Opaque long HANDLE +Opaque long PROC +Opaque long HINSTANCE +Opaque long HWND Opaque long HBITMAP Opaque long HDC Opaque long HGDIOBJ Opaque long HGLRC Opaque long HPBUFFERARB Opaque long HPBUFFEREXT -Opaque boolean BOOL -Opaque long PROC Opaque long void ** Import javax.media.nativewindow.util.Point @@ -33,5 +33,7 @@ CustomCCode #include <stddef.h> Include ../intptr.cfg +CustomCCode extern HWND CreateDummyWindow0( HINSTANCE hInstance, int x, int y, int width, int height ) ; + IncludeAs CustomJavaCode GDI win32-CustomJavaCode.java |