Skip to content

Commit 5c4c7c4

Browse files
Update texture comment.
1 parent 84cf6ec commit 5c4c7c4

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

pygly/texture.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,36 +134,31 @@ def __init__(
134134
border=False,
135135
**kwargs
136136
):
137-
"""
137+
"""Creates a new texture.
138+
139+
By default, only the handle will be allocated.
140+
Optional parameters allow the texture to be allocated and have data set.
141+
138142
:param GLuint target: The OpenGL texture target type.
139143
:param GLuint internal_format: The internal format used by this texture.
140144
:param GLuint min_filter: The minification filter to use for scaling the image down.
141145
This MUST be set on OpenGL 3.0+ or the texture won't render.
142-
143146
:param GLuint mag_filter: The magnification filter to use for scaling the image down.
144147
This MUST be set on OpenGL 3.0+ or the texture won't render.
145-
146148
:param GLuint wrap_s: The wrap setting for the S dimension.
147149
:param GLuint wrap_t: The wrap setting for the T dimension.
148-
149150
:param bool border: Whether or not to apply a border to the texture.
150151
This MUST be False on OpenGL 3.0+.
151-
152152
:param iterable data: Data to set on the texture.
153153
The data shape should represent the dimensions of the texture and
154154
the number of channels.
155155
156156
For example, a 32x32 RGBA texture would have the shape (32,32,4).
157-
158157
:param tuple shape: Specify the data's shape instead of using the shape of the data variable itself.
159158
:param GLuint data_type: OpenGL data type (GL_FLOAT, etc).
160159
Inferred from data dtype if not set.
161160
:param GLuint format: The OpenGL format of the data.
162161
Inferred from data shape if not set.
163-
164-
165-
data, shape, data_type, format:
166-
Related to passing data in immediately
167162
"""
168163
super(Texture, self).__init__()
169164

0 commit comments

Comments
 (0)