---
title: "CVOpenGLTextureGetName(_:)"
framework: Core Video
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: "corevideo/cvopengltexturegetname(_:)"
---

# CVOpenGLTextureGetName(_:)

Returns the texture target name of a CoreVideo OpenGL texture.

## Declaration

```swift
func CVOpenGLTextureGetName(_ image: CVOpenGLTexture) -> GLuint
```

## Parameters

- `image`: The Core Video OpenGL texture whose texture target name you want to obtain.

## Return Value

Return Value The target name of the texture.

## Discussion

Discussion See the OpenGL specification for more information about texture targets.

## See Also

### Inspecting Textures

- [CVOpenGLTextureGetTarget(_:)](corevideo/cvopengltexturegettarget(_:).md)
- [CVOpenGLTextureGetCleanTexCoords(_:_:_:_:_:)](corevideo/cvopengltexturegetcleantexcoords(_:_:_:_:_:).md)
- [CVOpenGLTextureIsFlipped(_:)](corevideo/cvopengltextureisflipped(_:).md)
- [CVOpenGLTextureGetTypeID()](corevideo/cvopengltexturegettypeid().md)
