🔌Integrating Native Applications
Bring support for the Looking Glass display to your application
Overview
Configure a Shared GPU Rendering Context
// initialize glfw
if (!glfwInit()) return -1;
// create preview window
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
GLFWwindow* window = glfwCreateWindow(800, 800, "Bridge SDK example", nullptr, nullptr);
if (!window) {
glfwTerminate();
return -1;
}
glfwMakeContextCurrent(window);Initialize Bridge
Create a Looking Glass window
Render Views of a 3D Scene
Trigger the Bridge Post-Processing
Last updated
Was this helpful?