# glCreateTexture

Definition: | include pGUI.e include opengl.e integer res = glCreateTexture()
Description: | generate a texture name.
pwa/p2js: | Supported.
Remarks | The glCreateTexture() function wraps the C api glGenTextures() function to match the WebGL api. The returned texture name will not have been in use immediately prior to calling the glCreateTexture function. The generated texture assumes the dimensionality of the texture target to which it is first bound with the glBindTexture() function. A texture name returned by glCreateTexture is not returned by subsequent calls to glCreateTexture unless it is first deleted by calling glDeleteTextures(). You cannot include glCreateTexture in display lists. The following function retrieves information related to glCreateTexture: glIsTexture
See Also: | glBegin, glBindTexture, xor_bits, glEnd, glGet, xor_bits, xor_bits, xor_bits, glTexImage2Dc, glTexParameteri DEV See also //glBegin //glBindTexture glDeleteTextures //glEnd //glGet glGetTexParameter glIsTexture glTexImage1D //glTexImage2D //glTexParameter See Also //glBindTexture, glCopyTexImage2D, glDeleteTextures, //glGet, glGetTexParameter, //glTexImage2D, //glTexParameter