Texture for 2D and 3D. A texture works by registering an image in the video hardware, which then can be used in 3D models or 2D [Sprite] or GUI [Control]. Return the current texture flags. Return the texture height. Return the texture size. Return the texture width. Change the texture flags. Generate mipmaps, to enable smooth zooming out of the texture. Repeat (instead of clamp to edge). Turn on magnifying filter, to enable smooth zooming in of the texture. Default flags. Generate mipmaps, repeat, and filter are enabled. Texture is a video surface.