Package com.sun.jna.platform.win32
Schnittstelle OpenGL32
- Alle Superschnittstellen:
AltCallingConvention
,Library
,StdCall
,StdCallLibrary
opengl32.dll Interface.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen com.sun.jna.Library
Library.Handler
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen com.sun.jna.win32.StdCallLibrary
StdCallLibrary.StdCallCallback
-
Feldübersicht
Von Schnittstelle geerbte Felder com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER
Von Schnittstelle geerbte Felder com.sun.jna.win32.StdCallLibrary
FUNCTION_MAPPER, STDCALL_CONVENTION
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungglGetString
(int name) The glGetString function returns a string describing the current OpenGL connection.wglCreateContext
(WinDef.HDC windowDC) The wglCreateContext function creates a new OpenGL rendering context, which is suitable for drawing on the device referenced by hdc.boolean
wglDeleteContext
(WinDef.HGLRC hglrc) The wglDeleteContext function deletes a specified OpenGL rendering context.The wglGetCurrentContext function obtains a handle to the current OpenGL rendering context of the calling thread.wglGetProcAddress
(String lpszProc) The wglGetProcAddress function returns the address of an OpenGL extension function for use with the current OpenGL rendering context.boolean
wglMakeCurrent
(WinDef.HDC windowDC, WinDef.HGLRC hglrc) The wglMakeCurrent function makes a specified OpenGL rendering context the calling thread's current rendering context.
-
Felddetails
-
INSTANCE
-
-
Methodendetails
-
glGetString
The glGetString function returns a string describing the current OpenGL connection.- Parameter:
name
- One of the following symbolic constants.- Gibt zurück:
- The glGetString function returns a pointer to a static string describing some aspect of the current OpenGL connection.
-
wglCreateContext
The wglCreateContext function creates a new OpenGL rendering context, which is suitable for drawing on the device referenced by hdc. The rendering context has the same pixel format as the device context.- Parameter:
windowDC
- Handle to a device context for which the function creates a suitable OpenGL rendering context.- Gibt zurück:
- handle to an OpenGL rendering context
-
wglGetCurrentContext
WinDef.HGLRC wglGetCurrentContext()The wglGetCurrentContext function obtains a handle to the current OpenGL rendering context of the calling thread.- Gibt zurück:
- If the calling thread has a current OpenGL rendering context, wglGetCurrentContext returns a handle to that rendering context. Otherwise, the return value is NULL.
-
wglMakeCurrent
The wglMakeCurrent function makes a specified OpenGL rendering context the calling thread's current rendering context. All subsequent OpenGL calls made by the thread are drawn on the device identified by hdc.- Parameter:
windowDC
- Handle to a device context. Subsequent OpenGL calls made by the calling thread are drawn on the device identified by hdc.hglrc
- Handle to an OpenGL rendering context that the function sets as the calling thread's rendering context.- Gibt zurück:
- true if successful
-
wglDeleteContext
The wglDeleteContext function deletes a specified OpenGL rendering context.- Parameter:
hglrc
- Handle to an OpenGL rendering context that the function will delete.- Gibt zurück:
- true if successful
-
wglGetProcAddress
The wglGetProcAddress function returns the address of an OpenGL extension function for use with the current OpenGL rendering context.- Parameter:
lpszProc
- Points to a null-terminated string that is the name of the extension function. The name of the extension function must be identical to a corresponding function implemented by OpenGL.- Gibt zurück:
- When the function succeeds, the return value is the address of the extension function.
-