---
title: textureTarget
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsopenglpixelbuffer/texturetarget
---

# textureTarget

The texture target of the OpenGL pixel buffer.

## Declaration

```occ
@property (readonly) GLenum textureTarget;
```

## Return Value

Return Value The texture target, which can be one of the following values: GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP, or GL_TEXTURE_RECTANGLE_EXT.

## See Also

### Getting OpenGL Pixel Buffer Information

- [CGLPBufferObj](appkit/nsopenglpixelbuffer/cglpbufferobj.md)
- [pixelsHigh](appkit/nsopenglpixelbuffer/pixelshigh.md)
- [pixelsWide](appkit/nsopenglpixelbuffer/pixelswide.md)
- [textureInternalFormat](appkit/nsopenglpixelbuffer/textureinternalformat.md)
- [textureMaxMipMapLevel](appkit/nsopenglpixelbuffer/texturemaxmipmaplevel.md)
