本文整理了Java中org.lwjgl.glfw.GLFW.glfwSetFramebufferSizeCallback()
方法的一些代码示例,展示了GLFW.glfwSetFramebufferSizeCallback()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GLFW.glfwSetFramebufferSizeCallback()
方法的具体详情如下:
包路径:org.lwjgl.glfw.GLFW
类名称:GLFW
方法名:glfwSetFramebufferSizeCallback
[英]Sets the framebuffer resize callback of the specified window, which is called when the framebuffer of the specified window is resized.
This function must only be called from the main thread.
[中]设置指定窗口的帧缓冲区大小回调,该回调在调整指定窗口的帧缓冲区大小时调用。
只能从主线程调用此函数。
代码示例来源:origin: libgdx/libgdx
public Lwjgl3Graphics(Lwjgl3Window window) {
this.window = window;
if (window.getConfig().useGL30) {
this.gl30 = new Lwjgl3GL30();
this.gl20 = this.gl30;
} else {
this.gl20 = new Lwjgl3GL20();
this.gl30 = null;
}
updateFramebufferInfo();
initiateGL();
GLFW.glfwSetFramebufferSizeCallback(window.getWindowHandle(), resizeCallback);
}
代码示例来源:origin: libgdx/libgdx
public Lwjgl3Graphics(Lwjgl3Window window) {
this.window = window;
if (window.getConfig().useGL30) {
this.gl30 = new Lwjgl3GL30();
this.gl20 = this.gl30;
} else {
this.gl20 = new Lwjgl3GL20();
this.gl30 = null;
}
updateFramebufferInfo();
initiateGL();
GLFW.glfwSetFramebufferSizeCallback(window.getWindowHandle(), resizeCallback);
}
代码示例来源:origin: org.lwjgl.osgi/org.lwjgl.glfw
/** See {@link GLFW#glfwSetFramebufferSizeCallback SetFramebufferSizeCallback}. */
public GLFWFramebufferSizeCallback set(long window) {
glfwSetFramebufferSizeCallback(window, this);
return this;
}
代码示例来源:origin: playn/playn
public GLFWGraphics(JavaPlatform jplat, long window) {
super(jplat);
this.plat = jplat;
this.window = window;
glfwSetFramebufferSizeCallback(window, fbSizeCallback);
}
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl3
public Lwjgl3Graphics(Lwjgl3Window window) {
this.window = window;
if (window.getConfig().useGL30) {
this.gl30 = new Lwjgl3GL30();
this.gl20 = this.gl30;
} else {
this.gl20 = new Lwjgl3GL20();
this.gl30 = null;
}
updateFramebufferInfo();
initiateGL();
GLFW.glfwSetFramebufferSizeCallback(window.getWindowHandle(), resizeCallback);
}
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwSetFramebufferSizeCallback(windowHandle, (window, width, height) -> {
this.width = width;
this.height = height;
代码示例来源:origin: SpinyOwl/legui
/**
* Used to bind callbacks to OpenGL window. This method could be called only from main thread (Main OpenGL thread).
*
* @param window window to bind.
* @param keeper callback keeper with callbacks.
*/
static void registerCallbacks(long window, CallbackKeeper keeper) {
glfwSetCharCallback(window, keeper.getChainCharCallback());
glfwSetDropCallback(window, keeper.getChainDropCallback());
glfwSetKeyCallback(window, keeper.getChainKeyCallback());
glfwSetScrollCallback(window, keeper.getChainScrollCallback());
glfwSetCharModsCallback(window, keeper.getChainCharModsCallback());
glfwSetCursorEnterCallback(window, keeper.getChainCursorEnterCallback());
glfwSetFramebufferSizeCallback(window, keeper.getChainFramebufferSizeCallback());
glfwSetMouseButtonCallback(window, keeper.getChainMouseButtonCallback());
glfwSetCursorPosCallback(window, keeper.getChainCursorPosCallback());
glfwSetWindowCloseCallback(window, keeper.getChainWindowCloseCallback());
glfwSetWindowFocusCallback(window, keeper.getChainWindowFocusCallback());
glfwSetWindowIconifyCallback(window, keeper.getChainWindowIconifyCallback());
glfwSetWindowPosCallback(window, keeper.getChainWindowPosCallback());
glfwSetWindowRefreshCallback(window, keeper.getChainWindowRefreshCallback());
glfwSetWindowSizeCallback(window, keeper.getChainWindowSizeCallback());
}
内容来源于网络,如有侵权,请联系作者删除!