---
name: "icetGLInitialize"
section: "3"
platform: "linux"
package: "paraview"
version: "5.13.2+dfsg-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/icetGLInitialize"
---

# icetGLInitialize(3)

## NAME

**icetGLInitialize -- initialize the IceT OpenGL layer**

## Synopsis

**#include \<IceTGL.h\>**

| | | |
| --- | --- | --- |
| void **icetGLInitialize**( | void | ); |

## Description

**Initializes the OpenGL layer of IceT .icetGLInitialize** **must be** **called before any other function starting with icetGL** **(except** **icetGLIsInitialized).**

**Management for the OpenGL layer is held in the state of the current** **IceT context. Thus, icetGLInitialize** **must be called once per** **IceT context. If you are using a context for rendering with OpenGL ,it** **is recommended that you call icetGLInitialize** **immediately after** **calling icetCreateContext.**

## Errors

**None.**

## Warnings

- **ICET\_INVALID\_OPERATION**

   **icetGLInitialize** **is called twice for the same context.**

## Bugs

**None known.**

## Copyright

**Copyright (C)2010 Sandia Corporation**

**Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the** **U.S. Government retains certain rights in this software.**

**This source code is released under the New BSD License.**

## See Also

*icetCreateContext***(3),** *icetGLIsInitialized***(3)**
