Source Code Cross Referenced for WGL.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » awt » nativebridge » windows » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » org package » org.apache.harmony.awt.nativebridge.windows 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         *  Licensed to the Apache Software Foundation (ASF) under one or more
003:         *  contributor license agreements.  See the NOTICE file distributed with
004:         *  this work for additional information regarding copyright ownership.
005:         *  The ASF licenses this file to You under the Apache License, Version 2.0
006:         *  (the "License"); you may not use this file except in compliance with
007:         *  the License.  You may obtain a copy of the License at
008:         *
009:         *     http://www.apache.org/licenses/LICENSE-2.0
010:         *
011:         *  Unless required by applicable law or agreed to in writing, software
012:         *  distributed under the License is distributed on an "AS IS" BASIS,
013:         *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014:         *  See the License for the specific language governing permissions and
015:         *  limitations under the License.
016:         */
017:        /**
018:         * @author Oleg V. Khaschansky
019:         * @version $Revision$
020:         */
021:        /**
022:         * This file is based on WGL headers and has been generated by the nativebridge tool.
023:         */package org.apache.harmony.awt.nativebridge.windows;
024:
025:        import org.apache.harmony.awt.nativebridge.*;
026:
027:        /**
028:         * This file is based on WGL headers and has been generated by the nativebridge tool.
029:         */
030:        public class WGL extends BasicLibWrapper {
031:            static WGL instance;
032:
033:            public static synchronized WGL getInstance() {
034:                if (instance == null) {
035:                    instance = new WGL();
036:                }
037:                return instance;
038:            }
039:
040:            private WGL() {
041:                System.loadLibrary("Win32Wrapper");
042:                init();
043:            }
044:
045:            private static native void init();
046:
047:            public final long wglGetProcAddress(String param_0) {
048:                Int8Pointer _param_0 = null == param_0 ? null : nb
049:                        .createInt8Pointer(param_0, false);
050:                long tmp_0 = _param_0 == null ? 0 : _param_0.longLockPointer();
051:                long tmp_ret = wglGetProcAddress(tmp_0);
052:                if (_param_0 != null) {
053:                    _param_0.unlock();
054:                    _param_0.free();
055:                }
056:                return tmp_ret;
057:            }
058:
059:            public final long wglGetProcAddress(Int8Pointer param_0) {
060:                long tmp_0 = param_0 == null ? 0 : param_0.longLockPointer();
061:                long tmp_ret = wglGetProcAddress(tmp_0);
062:                if (param_0 != null) {
063:                    param_0.unlock();
064:                }
065:                return tmp_ret;
066:            }
067:
068:            public final native long wglGetProcAddress(long param_0);
069:
070:            public final native long wglCreateContext(long param_0);
071:
072:            public static class HGLRC__ extends CommonStructWrapper {
073:
074:                public static final int sizeof = 4;
075:
076:                HGLRC__(boolean direct) {
077:                    super (sizeof, direct);
078:                }
079:
080:                HGLRC__(VoidPointer base) {
081:                    super (base);
082:                }
083:
084:                HGLRC__(long addr) {
085:                    super (addr);
086:                }
087:
088:                public final void set_unused(int val) {
089:                    byteBase.setInt32(0, val);
090:                }
091:
092:                public final int get_unused() {
093:                    return byteBase.getInt32(0);
094:                }
095:
096:                public int size() {
097:                    return sizeof;
098:                }
099:            }
100:
101:            public final HGLRC__ createHGLRC__(boolean direct) {
102:                return new HGLRC__(direct);
103:            }
104:
105:            public final HGLRC__ createHGLRC__(VoidPointer base) {
106:                return new HGLRC__(base);
107:            }
108:
109:            public final HGLRC__ createHGLRC__(long addr) {
110:                return new HGLRC__(addr);
111:            }
112:
113:            public final int wglMakeCurrent(long param_0, WGL.HGLRC__ param_1) {
114:                long tmp_0 = param_1 == null ? 0 : param_1.longLockPointer();
115:                int tmp_ret = wglMakeCurrent(param_0, tmp_0);
116:                if (param_1 != null) {
117:                    param_1.unlock();
118:                }
119:                return tmp_ret;
120:            }
121:
122:            public final native int wglMakeCurrent(long param_0, long param_1);
123:
124:            public final int wglDestroyPbufferARB(HPBUFFERARB__ param_0) {
125:                long tmp_0 = param_0 == null ? 0 : param_0.longLockPointer();
126:                int tmp_ret = wglDestroyPbufferARB(tmp_0);
127:                if (param_0 != null) {
128:                    param_0.unlock();
129:                }
130:                return tmp_ret;
131:            }
132:
133:            public final native int wglDestroyPbufferARB(long param_0);
134:
135:            public static class HPBUFFERARB__ extends CommonStructWrapper {
136:
137:                public static final int sizeof = 4;
138:
139:                HPBUFFERARB__(boolean direct) {
140:                    super (sizeof, direct);
141:                }
142:
143:                HPBUFFERARB__(VoidPointer base) {
144:                    super (base);
145:                }
146:
147:                HPBUFFERARB__(long addr) {
148:                    super (addr);
149:                }
150:
151:                public final void set_unused(int val) {
152:                    byteBase.setInt32(0, val);
153:                }
154:
155:                public final int get_unused() {
156:                    return byteBase.getInt32(0);
157:                }
158:
159:                public int size() {
160:                    return sizeof;
161:                }
162:            }
163:
164:            public final HPBUFFERARB__ createHPBUFFERARB__(boolean direct) {
165:                return new HPBUFFERARB__(direct);
166:            }
167:
168:            public final HPBUFFERARB__ createHPBUFFERARB__(VoidPointer base) {
169:                return new HPBUFFERARB__(base);
170:            }
171:
172:            public final HPBUFFERARB__ createHPBUFFERARB__(long addr) {
173:                return new HPBUFFERARB__(addr);
174:            }
175:
176:            public final native int SwapBuffers(long param_0);
177:
178:            public final int wglReleasePbufferDCARB(WGL.HPBUFFERARB__ param_0,
179:                    long param_1) {
180:                long tmp_0 = param_0 == null ? 0 : param_0.longLockPointer();
181:                int tmp_ret = wglReleasePbufferDCARB(tmp_0, param_1);
182:                if (param_0 != null) {
183:                    param_0.unlock();
184:                }
185:                return tmp_ret;
186:            }
187:
188:            public final native int wglReleasePbufferDCARB(long param_0,
189:                    long param_1);
190:
191:            public final WGL.HPBUFFERARB__ wglCreatePbufferARB(long param_0,
192:                    int param_1, int param_2, int param_3, Int32Pointer param_4) {
193:                long tmp_0 = param_4 == null ? 0 : param_4.longLockPointer();
194:                long tmp_ret = wglCreatePbufferARB(param_0, param_1, param_2,
195:                        param_3, tmp_0);
196:                if (param_4 != null) {
197:                    param_4.unlock();
198:                }
199:                return WGL.instance.createHPBUFFERARB__(tmp_ret);
200:            }
201:
202:            public final native long wglCreatePbufferARB(long param_0,
203:                    int param_1, int param_2, int param_3, long param_4);
204:
205:            public final int wglQueryPbufferARB(WGL.HPBUFFERARB__ param_0,
206:                    int param_1, Int32Pointer param_2) {
207:                long tmp_0 = param_0 == null ? 0 : param_0.longLockPointer();
208:                long tmp_1 = param_2 == null ? 0 : param_2.longLockPointer();
209:                int tmp_ret = wglQueryPbufferARB(tmp_0, param_1, tmp_1);
210:                if (param_0 != null) {
211:                    param_0.unlock();
212:                }
213:                if (param_2 != null) {
214:                    param_2.unlock();
215:                }
216:                return tmp_ret;
217:            }
218:
219:            public final native int wglQueryPbufferARB(long param_0,
220:                    int param_1, long param_2);
221:
222:            public final int wglDeleteContext(WGL.HGLRC__ param_0) {
223:                long tmp_0 = param_0 == null ? 0 : param_0.longLockPointer();
224:                int tmp_ret = wglDeleteContext(tmp_0);
225:                if (param_0 != null) {
226:                    param_0.unlock();
227:                }
228:                return tmp_ret;
229:            }
230:
231:            public final native int wglDeleteContext(long param_0);
232:
233:            public final native long wglGetExtensionsStringARB(long param_0);
234:
235:            public final int wglChoosePixelFormatARB(long param_0,
236:                    Int32Pointer param_1, FloatPointer param_2, int param_3,
237:                    Int32Pointer param_4, Int32Pointer param_5) {
238:                long tmp_0 = param_1 == null ? 0 : param_1.longLockPointer();
239:                long tmp_1 = param_2 == null ? 0 : param_2.longLockPointer();
240:                long tmp_2 = param_4 == null ? 0 : param_4.longLockPointer();
241:                long tmp_3 = param_5 == null ? 0 : param_5.longLockPointer();
242:                int tmp_ret = wglChoosePixelFormatARB(param_0, tmp_0, tmp_1,
243:                        param_3, tmp_2, tmp_3);
244:                if (param_1 != null) {
245:                    param_1.unlock();
246:                }
247:                if (param_2 != null) {
248:                    param_2.unlock();
249:                }
250:                if (param_4 != null) {
251:                    param_4.unlock();
252:                }
253:                if (param_5 != null) {
254:                    param_5.unlock();
255:                }
256:                return tmp_ret;
257:            }
258:
259:            public final native int wglChoosePixelFormatARB(long param_0,
260:                    long param_1, long param_2, int param_3, long param_4,
261:                    long param_5);
262:
263:            public final int wglShareLists(WGL.HGLRC__ param_0,
264:                    WGL.HGLRC__ param_1) {
265:                long tmp_0 = param_0 == null ? 0 : param_0.longLockPointer();
266:                long tmp_1 = param_1 == null ? 0 : param_1.longLockPointer();
267:                int tmp_ret = wglShareLists(tmp_0, tmp_1);
268:                if (param_0 != null) {
269:                    param_0.unlock();
270:                }
271:                if (param_1 != null) {
272:                    param_1.unlock();
273:                }
274:                return tmp_ret;
275:            }
276:
277:            public final native int wglShareLists(long param_0, long param_1);
278:
279:            public final long wglGetPbufferDCARB(WGL.HPBUFFERARB__ param_0) {
280:                long tmp_0 = param_0 == null ? 0 : param_0.longLockPointer();
281:                long tmp_ret = wglGetPbufferDCARB(tmp_0);
282:                if (param_0 != null) {
283:                    param_0.unlock();
284:                }
285:                return tmp_ret;
286:            }
287:
288:            public final native long wglGetPbufferDCARB(long param_0);
289:
290:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.