---
title: "glFramebufferTexture2D(_:_:_:_:_:)"
framework: OpenGL ES
role: symbol
role_heading: Function
platforms: [iOS 3.0+, iPadOS 3.0+, Mac Catalyst 3.0+, tvOS 9.0+]
path: "opengles/glframebuffertexture2d(_:_:_:_:_:)"
---

# glFramebufferTexture2D(_:_:_:_:_:)

## Declaration

```swift
func glFramebufferTexture2D(_ target: GLenum, _ attachment: GLenum, _ textarget: GLenum, _ texture: GLuint, _ level: GLint)
```
