---
title: pixelBufferCubeMapFace
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsopenglcontext/pixelbuffercubemapface
---

# pixelBufferCubeMapFace

Returns the cube map face of the pixel buffer attached to the OpenGL context.

## Declaration

```occ
- (GLenum) pixelBufferCubeMapFace;
```

## Return Value

Return Value For pixel buffers with a texture target of GL_CUBE_MAP, this value is zero or one of the following values:

## Discussion

Discussion GL_TEXTURE_CUBE_MAP_POSITIVE_X GL_TEXTURE_CUBE_MAP_POSITIVE_Y GL_TEXTURE_CUBE_MAP_POSITIVE_Z GL_TEXTURE_CUBE_MAP_NEGATIVE_X GL_TEXTURE_CUBE_MAP_NEGATIVE_Y GL_TEXTURE_CUBE_MAP_NEGATIVE_Z

## See Also

### Working with Pixel Buffers

- [setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:](appkit/nsopenglcontext/setpixelbuffer:cubemapface:mipmaplevel:currentvirtualscreen:.md)
- [pixelBuffer](appkit/nsopenglcontext/pixelbuffer.md)
- [pixelBufferMipMapLevel](appkit/nsopenglcontext/pixelbuffermipmaplevel.md)
- [setTextureImageToPixelBuffer:colorBuffer:](appkit/nsopenglcontext/settextureimagetopixelbuffer:colorbuffer:.md)
