AltCallingConvention
, Library
, StdCall
, StdCallLibrary
public interface OpenGL32 extends StdCallLibrary
Library.Handler
StdCallLibrary.StdCallCallback
Modifier and Type | Field | Description |
---|---|---|
static OpenGL32 |
INSTANCE |
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
FUNCTION_MAPPER, STDCALL_CONVENTION
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
glGetString(int name) |
The glGetString function returns a string describing the current OpenGL connection.
|
WinDef.HGLRC |
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.
|
WinDef.HGLRC |
wglGetCurrentContext() |
The wglGetCurrentContext function obtains a handle to the current OpenGL rendering context of the calling thread.
|
Pointer |
wglGetProcAddress(java.lang.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.
|
static final OpenGL32 INSTANCE
java.lang.String glGetString(int name)
name
- One of the following symbolic constants.WinDef.HGLRC wglCreateContext(WinDef.HDC windowDC)
windowDC
- Handle to a device context for which the function creates a suitable OpenGL rendering context.WinDef.HGLRC wglGetCurrentContext()
boolean wglMakeCurrent(WinDef.HDC windowDC, WinDef.HGLRC hglrc)
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.boolean wglDeleteContext(WinDef.HGLRC hglrc)
hglrc
- Handle to an OpenGL rendering context that the function will delete.Pointer wglGetProcAddress(java.lang.String lpszProc)
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.