{"id":61886,"library":"opencsg","title":"OpenCSG","description":"OpenCSG is a library that does image-based CSG rendering using OpenGL.","status":"active","version":"1.8.2","language":"cpp","source_language":null,"source_url":null,"tags":["csg","rendering","opengl","3d-graphics"],"install":[{"cmd":"vcpkg install opencsg","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(opencsg CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE OpenCSG::OpenCSG)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"opencsg.h","correct":"#include <opencsg.h>"}],"quickstart":{"code":"#include <opencsg.h>\n#include <GL/gl.h>\n\nint main() {\n    OpenCSG::render(OpenCSG::CSG_UNION);\n    return 0;\n}","lang":"cpp","description":"Render a CSG union operation"},"warnings":[{"fix":"Ensure a valid OpenGL context (e.g., via GLFW or Qt) is created before calling any OpenCSG functions","message":"Requires OpenGL context to be initialized before use","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'3d':19 '3d-graphics':18 'base':10 'csg':11,15 'graphic':20 'imag':9 'image-bas':8 'librari':5 'opencsg':1,2 'opengl':14,17 'render':12,16 'use':13","created_at":"2026-06-17T05:09:23.246190+00:00","updated_at":"2026-06-17T05:09:23.246190+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}