![]() |
libgpac
Documentation of the core library of GPAC
|
import "webgl.idl";
Public Member Functions | |
| void | reconfigure () |
| void | upload (FilterPacket pck) |
| void | upload (Texture tx) |
Data Fields | |
| attribute readonly unsigned long | nb_textures |
| attribute readonly unsigned long | is_gl_input |
| attribute readonly DOMString | name |
| attribute unsigned long | pbo |
Named texture object, see WebGL API
| void NamedTexture::reconfigure | ( | ) |
indicates the underlying picel format has been modified and that the texture should be reevaluated
| void NamedTexture::upload | ( | FilterPacket | pck | ) |
builds named texture from input filter packet
| pck | the filter packet to use as source for texture data |
| void NamedTexture::upload | ( | Texture | tx | ) |
builds named texture from EVG texture
| tx | the EVG texture to use as source for texture data |
| attribute readonly unsigned long NamedTexture::nb_textures |
number of underlying textures. This can be useful when doing multi-texturing to get the next texture unit slot:
| attribute readonly unsigned long NamedTexture::is_gl_input |
set to true if the input to this named texture is a set of one or more OpenGL textures rather than system memory data
| attribute readonly DOMString NamedTexture::name |
name of the texture, as passed upon creation
| attribute unsigned long NamedTexture::pbo |
indicates if PBO is used for data transfer. By default named textures are created with no PBO transfer. To enable it, set this to true before the first texture upload