Skip to main content
Ctrl+K
Logo image

COMPAS Viewer

  • Introduction
  • Installation
  • Tutorials
    • File Structure
  • Examples
    • Basic Examples
    • Object Examples
    • Color Examples
    • Layout Examples
    • Dynamic Examples
    • Other Examples
  • API Reference
    • compas_viewer.viewer
    • compas_viewer.scene
    • compas_viewer.controller
    • compas_viewer.actions
    • compas_viewer.components
    • compas_viewer.configurations
    • compas_viewer.layout
    • compas_viewer.utilities
  • License
  • Acknowledgements
COMPAS.dev
  • API Reference
  • Renderer
  • Renderer.initializeGL

Renderer.initializeGL

Renderer.initializeGL()[source]

Initialize the OpenGL canvas.

Notes

This implements the virtual function of the OpenGL widget. It sets the clear color of the view, and enables culling, depth testing, blending, point smoothing, and line smoothing.

References

  • https://doc.qt.io/qtforpython-6/PySide6/QtOpenGL/QOpenGLWindow.html#PySide6.QtOpenGL.PySide6.QtOpenGL.QOpenGLWindow.initializeGL # noqa: E501

On this page
  • Renderer.initializeGL()

© Copyright COMPAS Association.

Created using Sphinx 6.2.1.

Built with the PyData Sphinx Theme 0.13.3.