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

# CVOpenGLTextureGetTarget(_:)

Returns the texture target (for example, GL_TEXTURE_2D) of an OpenGL texture.

## Declaration

```swift
func CVOpenGLTextureGetTarget(_ image: CVOpenGLTexture) -> GLenum
```

## Parameters

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

## Return Value

Return Value The OpenGL texture target.

## Discussion

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

## See Also

### Inspecting Textures

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