Source Code Cross Referenced for GL.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » awt » gl » opengl » 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.gl.opengl 
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:        package org.apache.harmony.awt.gl.opengl;
019:
020:        import org.apache.harmony.awt.nativebridge.*;
021:
022:        /**
023:         * This file is based on OGL header and has been generated by the nativebridge tool.
024:         *
025:         * @author Oleg V. Khaschansky
026:         * @version $Revision$
027:         *
028:         */
029:        public class GL extends BasicLibWrapper {
030:            static GL instance;
031:
032:            public static synchronized GL getInstance() {
033:                if (instance == null) {
034:                    instance = new GL();
035:                }
036:                return instance;
037:            }
038:
039:            private GL() {
040:                System.loadLibrary("oglwrapper"); //$NON-NLS-1$
041:                init();
042:            }
043:
044:            private static native void init();
045:
046:            public final void glVertexPointer(int size, int type, int stride,
047:                    VoidPointer pointer) {
048:                long tmp_0 = pointer == null ? 0 : pointer.longLockPointer();
049:                glVertexPointer(size, type, stride, tmp_0);
050:                if (pointer != null) {
051:                    pointer.unlock();
052:                }
053:            }
054:
055:            public final native void glVertexPointer(int size, int type,
056:                    int stride, long pointer);
057:
058:            public final native void glPixelStoref(int pname, float param);
059:
060:            public final native void glRectd(double x1, double y1, double x2,
061:                    double y2);
062:
063:            public final native void glTranslated(double x, double y, double z);
064:
065:            public final native void glLineStipple(int factor, short pattern);
066:
067:            public final native void glBlendFunc(int sfactor, int dfactor);
068:
069:            public final void glColor4ubv(String v) {
070:                Int8Pointer _v = null == v ? null : nb.createInt8Pointer(v,
071:                        false);
072:                long tmp_0 = _v == null ? 0 : _v.longLockPointer();
073:                glColor4ubv(tmp_0);
074:                if (_v != null) {
075:                    _v.unlock();
076:                    _v.free();
077:                }
078:            }
079:
080:            public final void glColor4ubv(Int8Pointer v) {
081:                long tmp_0 = v == null ? 0 : v.longLockPointer();
082:                glColor4ubv(tmp_0);
083:                if (v != null) {
084:                    v.unlock();
085:                }
086:            }
087:
088:            public final native void glColor4ubv(long v);
089:
090:            public final void glTexImage1D(int target, int level,
091:                    int internalformat, int width, int border, int format,
092:                    int type, VoidPointer pixels) {
093:                long tmp_0 = pixels == null ? 0 : pixels.longLockPointer();
094:                glTexImage1D(target, level, internalformat, width, border,
095:                        format, type, tmp_0);
096:                if (pixels != null) {
097:                    pixels.unlock();
098:                }
099:            }
100:
101:            public final native void glTexImage1D(int target, int level,
102:                    int internalformat, int width, int border, int format,
103:                    int type, long pixels);
104:
105:            public final native void gluOrtho2D(double left, double right,
106:                    double bottom, double top);
107:
108:            public final native void glDrawArrays(int mode, int first, int count);
109:
110:            public final native void glPixelStorei(int pname, int param);
111:
112:            public final native void glTexParameteri(int target, int pname,
113:                    int param);
114:
115:            public final native void glRotated(double angle, double x,
116:                    double y, double z);
117:
118:            public final void glGetIntegerv(int pname, Int32Pointer params) {
119:                long tmp_0 = params == null ? 0 : params.longLockPointer();
120:                glGetIntegerv(pname, tmp_0);
121:                if (params != null) {
122:                    params.unlock();
123:                }
124:            }
125:
126:            public final native void glGetIntegerv(int pname, long params);
127:
128:            public final void glTexGendv(int coord, int pname,
129:                    DoublePointer params) {
130:                long tmp_0 = params == null ? 0 : params.longLockPointer();
131:                glTexGendv(coord, pname, tmp_0);
132:                if (params != null) {
133:                    params.unlock();
134:                }
135:            }
136:
137:            public final native void glTexGendv(int coord, int pname,
138:                    long params);
139:
140:            public final native void glTexCoord2d(double s, double t);
141:
142:            public final native void glPixelTransferf(int pname, float param);
143:
144:            public final native void glCopyTexSubImage2D(int target, int level,
145:                    int xoffset, int yoffset, int x, int y, int width,
146:                    int height);
147:
148:            public final native void glEnd();
149:
150:            public final native void glColorMask(byte red, byte green,
151:                    byte blue, byte alpha);
152:
153:            public final native void glFlush();
154:
155:            public final native void glMatrixMode(int mode);
156:
157:            public final native void glTexEnvf(int target, int pname,
158:                    float param);
159:
160:            public final native void glPixelZoom(float xfactor, float yfactor);
161:
162:            public final native void glScissor(int x, int y, int width,
163:                    int height);
164:
165:            public final native int glGetError();
166:
167:            public final void glDrawPixels(int width, int height, int format,
168:                    int type, VoidPointer pixels) {
169:                long tmp_0 = pixels == null ? 0 : pixels.longLockPointer();
170:                glDrawPixels(width, height, format, type, tmp_0);
171:                if (pixels != null) {
172:                    pixels.unlock();
173:                }
174:            }
175:
176:            public final native void glDrawPixels(int width, int height,
177:                    int format, int type, long pixels);
178:
179:            public final native void glCopyPixels(int x, int y, int width,
180:                    int height, int type);
181:
182:            public final native void glBlendFuncSeparate(int param_0,
183:                    int param_1, int param_2, int param_3);
184:
185:            public final native void glEnableClientState(int array);
186:
187:            public final void glMultMatrixd(DoublePointer m) {
188:                long tmp_0 = m == null ? 0 : m.longLockPointer();
189:                glMultMatrixd(tmp_0);
190:                if (m != null) {
191:                    m.unlock();
192:                }
193:            }
194:
195:            public final native void glMultMatrixd(long m);
196:
197:            public final native void glClear(int mask);
198:
199:            public final native void glPopMatrix();
200:
201:            public final void glColorPointer(int size, int type, int stride,
202:                    VoidPointer pointer) {
203:                long tmp_0 = pointer == null ? 0 : pointer.longLockPointer();
204:                glColorPointer(size, type, stride, tmp_0);
205:                if (pointer != null) {
206:                    pointer.unlock();
207:                }
208:            }
209:
210:            public final native void glColorPointer(int size, int type,
211:                    int stride, long pointer);
212:
213:            public final native void glScaled(double x, double y, double z);
214:
215:            public final native void glDisable(int cap);
216:
217:            public final native void glRasterPos2i(int x, int y);
218:
219:            public final native void glEnable(int cap);
220:
221:            public final void glBitmap(int width, int height, float xorig,
222:                    float yorig, float xmove, float ymove, String bitmap) {
223:                Int8Pointer _bitmap = null == bitmap ? null : nb
224:                        .createInt8Pointer(bitmap, false);
225:                long tmp_0 = _bitmap == null ? 0 : _bitmap.longLockPointer();
226:                glBitmap(width, height, xorig, yorig, xmove, ymove, tmp_0);
227:                if (_bitmap != null) {
228:                    _bitmap.unlock();
229:                    _bitmap.free();
230:                }
231:            }
232:
233:            public final void glBitmap(int width, int height, float xorig,
234:                    float yorig, float xmove, float ymove, Int8Pointer bitmap) {
235:                long tmp_0 = bitmap == null ? 0 : bitmap.longLockPointer();
236:                glBitmap(width, height, xorig, yorig, xmove, ymove, tmp_0);
237:                if (bitmap != null) {
238:                    bitmap.unlock();
239:                }
240:            }
241:
242:            public final native void glBitmap(int width, int height,
243:                    float xorig, float yorig, float xmove, float ymove,
244:                    long bitmap);
245:
246:            public final void glColorTable(int param_0, int param_1,
247:                    int param_2, int param_3, int param_4, VoidPointer param_5) {
248:                long tmp_0 = param_5 == null ? 0 : param_5.longLockPointer();
249:                glColorTable(param_0, param_1, param_2, param_3, param_4, tmp_0);
250:                if (param_5 != null) {
251:                    param_5.unlock();
252:                }
253:            }
254:
255:            public final native void glColorTable(int param_0, int param_1,
256:                    int param_2, int param_3, int param_4, long param_5);
257:
258:            public final void glGenTextures(int n, Int32Pointer textures) {
259:                long tmp_0 = textures == null ? 0 : textures.longLockPointer();
260:                glGenTextures(n, tmp_0);
261:                if (textures != null) {
262:                    textures.unlock();
263:                }
264:            }
265:
266:            public final native void glGenTextures(int n, long textures);
267:
268:            public final native void glFinish();
269:
270:            public final void glDeleteTextures(int n, Int32Pointer textures) {
271:                long tmp_0 = textures == null ? 0 : textures.longLockPointer();
272:                glDeleteTextures(n, tmp_0);
273:                if (textures != null) {
274:                    textures.unlock();
275:                }
276:            }
277:
278:            public final native void glDeleteTextures(int n, long textures);
279:
280:            public final native void glDisableClientState(int array);
281:
282:            public final native void glBegin(int mode);
283:
284:            public final native void glVertex2d(double x, double y);
285:
286:            public final native void glLineWidth(float width);
287:
288:            public final void glLoadMatrixd(DoublePointer m) {
289:                long tmp_0 = m == null ? 0 : m.longLockPointer();
290:                glLoadMatrixd(tmp_0);
291:                if (m != null) {
292:                    m.unlock();
293:                }
294:            }
295:
296:            public final native void glLoadMatrixd(long m);
297:
298:            public final void glReadPixels(int x, int y, int width, int height,
299:                    int format, int type, VoidPointer pixels) {
300:                long tmp_0 = pixels == null ? 0 : pixels.longLockPointer();
301:                glReadPixels(x, y, width, height, format, type, tmp_0);
302:                if (pixels != null) {
303:                    pixels.unlock();
304:                }
305:            }
306:
307:            public final native void glReadPixels(int x, int y, int width,
308:                    int height, int format, int type, long pixels);
309:
310:            public final native void glBindTexture(int target, int texture);
311:
312:            public final native void glPushMatrix();
313:
314:            public final native void glTexGeni(int coord, int pname, int param);
315:
316:            public final native void glStencilFunc(int func, int ref, int mask);
317:
318:            public final void glTexImage2D(int target, int level,
319:                    int internalformat, int width, int height, int border,
320:                    int format, int type, VoidPointer pixels) {
321:                long tmp_0 = pixels == null ? 0 : pixels.longLockPointer();
322:                glTexImage2D(target, level, internalformat, width, height,
323:                        border, format, type, tmp_0);
324:                if (pixels != null) {
325:                    pixels.unlock();
326:                }
327:            }
328:
329:            public final native void glTexImage2D(int target, int level,
330:                    int internalformat, int width, int height, int border,
331:                    int format, int type, long pixels);
332:
333:            public final void glPixelMapusv(int map, int mapsize,
334:                    Int16Pointer values) {
335:                long tmp_0 = values == null ? 0 : values.longLockPointer();
336:                glPixelMapusv(map, mapsize, tmp_0);
337:                if (values != null) {
338:                    values.unlock();
339:                }
340:            }
341:
342:            public final native void glPixelMapusv(int map, int mapsize,
343:                    long values);
344:
345:            public final native void glViewport(int x, int y, int width,
346:                    int height);
347:
348:            public final native void glLoadIdentity();
349:
350:            public final void glTexSubImage2D(int target, int level,
351:                    int xoffset, int yoffset, int width, int height,
352:                    int format, int type, VoidPointer pixels) {
353:                long tmp_0 = pixels == null ? 0 : pixels.longLockPointer();
354:                glTexSubImage2D(target, level, xoffset, yoffset, width, height,
355:                        format, type, tmp_0);
356:                if (pixels != null) {
357:                    pixels.unlock();
358:                }
359:            }
360:
361:            public final native void glTexSubImage2D(int target, int level,
362:                    int xoffset, int yoffset, int width, int height,
363:                    int format, int type, long pixels);
364:
365:            public final native void glDrawBuffer(int mode);
366:
367:            public final native void glReadBuffer(int mode);
368:
369:            public final native void glStencilOp(int fail, int zfail, int zpass);
370:
371:            public final native int glGenLists(int range);
372:
373:            public final native byte glIsList(int list);
374:
375:            public final native void glDeleteLists(int list, int range);
376:
377:            public final native void glNewList(int list, int mode);
378:
379:            public final native void glCallList(int list);
380:
381:            public final native void glEndList();
382:
383:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.