@@ -134,36 +134,31 @@ def __init__(
134
134
border = False ,
135
135
** kwargs
136
136
):
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
+
138
142
:param GLuint target: The OpenGL texture target type.
139
143
:param GLuint internal_format: The internal format used by this texture.
140
144
:param GLuint min_filter: The minification filter to use for scaling the image down.
141
145
This MUST be set on OpenGL 3.0+ or the texture won't render.
142
-
143
146
:param GLuint mag_filter: The magnification filter to use for scaling the image down.
144
147
This MUST be set on OpenGL 3.0+ or the texture won't render.
145
-
146
148
:param GLuint wrap_s: The wrap setting for the S dimension.
147
149
:param GLuint wrap_t: The wrap setting for the T dimension.
148
-
149
150
:param bool border: Whether or not to apply a border to the texture.
150
151
This MUST be False on OpenGL 3.0+.
151
-
152
152
:param iterable data: Data to set on the texture.
153
153
The data shape should represent the dimensions of the texture and
154
154
the number of channels.
155
155
156
156
For example, a 32x32 RGBA texture would have the shape (32,32,4).
157
-
158
157
:param tuple shape: Specify the data's shape instead of using the shape of the data variable itself.
159
158
:param GLuint data_type: OpenGL data type (GL_FLOAT, etc).
160
159
Inferred from data dtype if not set.
161
160
:param GLuint format: The OpenGL format of the data.
162
161
Inferred from data shape if not set.
163
-
164
-
165
- data, shape, data_type, format:
166
- Related to passing data in immediately
167
162
"""
168
163
super (Texture , self ).__init__ ()
169
164
0 commit comments