Package panamagl.platform.windows
Class GLFunctionLoader_windows
java.lang.Object
panamagl.platform.windows.GLFunctionLoader_windows
- All Implemented Interfaces:
panamagl.opengl.GLFunctionLoader
Resolve OpenGL functions with
wglGetProcAddress, falling back on the symbols
exported by opengl32.dll (GL 1.1) for which wglGetProcAddress returns nothing. These
symbols are looked up in opengl32.dll as already loaded by NativeLibLoader.
A GL context must be current on the calling thread. Addresses may depend on the context pixel
format, which is why each GL instance keeps its own cache.- Author:
- Martin Pernollet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProcAddress(String function) protected booleanisValid(MemorySegment address) wglGetProcAddress may return 1, 2, 3 or -1 instead of NULL to report a failure (see Load OpenGL Functions).
-
Constructor Details
-
GLFunctionLoader_windows
public GLFunctionLoader_windows()
-
-
Method Details
-
getProcAddress
- Specified by:
getProcAddressin interfacepanamagl.opengl.GLFunctionLoader
-
isValid
wglGetProcAddress may return 1, 2, 3 or -1 instead of NULL to report a failure (see Load OpenGL Functions).
-