---
title: "CVOpenGLESTextureGetTarget(_:)"
framework: corevideo
role: symbol
role_heading: Function
path: "corevideo/cvopenglestexturegettarget(_:)"
---

# CVOpenGLESTextureGetTarget(_:)

Returns the texture target for a CVOpenGLESTextureRef.

## Declaration

```swift
func CVOpenGLESTextureGetTarget(_ image: CVOpenGLESTexture) -> GLenum
```

## Parameters

- `image`: The OpenGLES texture-based image buffer whose target is desired.

## Return Value

Return Value An OpenGLES texture target, such as GL_TEXTURE_2D.

## See Also

### Inspecting Textures

- [CVOpenGLESTextureGetName(_:)](corevideo/cvopenglestexturegetname(_:).md)
- [CVOpenGLESTextureGetCleanTexCoords(_:_:_:_:_:)](corevideo/cvopenglestexturegetcleantexcoords(_:_:_:_:_:).md)
- [CVOpenGLESTextureIsFlipped(_:)](corevideo/cvopenglestextureisflipped(_:).md)
- [CVOpenGLESTextureGetTypeID()](corevideo/cvopenglestexturegettypeid().md)
