Procs
proc asInternalFormat(self: OglTexFormat): OglTexInternalFormat {...}{.raises: [], tags: [].}
- Return the internal format that maps to an input texture format
proc asSlot(slot: int): OglSlot {...}{.raises: [], tags: [].}
- Returns an integer as as lot
proc newTexture(size: tuple[width, height: int]; format: OglTexFormat; internalFormat: OglTexInternalFormat; pixelType: OglPixelType; data: pointer; target: OglTexTarget = OglTexTarget.Texture2d; minFilter: OglTexMinFilter = OglTexMinFilter.Nearest; magFilter: OglTexMagFilter = OglTexMagFilter.Linear; wrapS: OglTexWrap = OglTexWrap.Repeat; wrapT: OglTexWrap = OglTexWrap.Repeat): TextureId {...}{.raises: [GLerror], tags: [].}
- Binds and fills a texture
proc newTexture(size: tuple[width, height: int]; format: OglTexFormat; pixelType: OglPixelType; data: pointer; target: OglTexTarget = OglTexTarget.Texture2d; minFilter: OglTexMinFilter = OglTexMinFilter.Nearest; magFilter: OglTexMagFilter = OglTexMagFilter.Linear; wrapS: OglTexWrap = OglTexWrap.Repeat; wrapT: OglTexWrap = OglTexWrap.Repeat): TextureId {...}{.raises: [GLerror], tags: [].}
- Binds and fills a texture
proc loadPngTexture(path: string; minFilter: OglTexMinFilter = OglTexMinFilter.Nearest; magFilter: OglTexMagFilter = OglTexMagFilter.Linear; wrapS: OglTexWrap = OglTexWrap.Repeat; wrapT: OglTexWrap = OglTexWrap.Repeat): TextureId {...}{. raises: [STBIException, GLerror], tags: [ReadDirEffect].}
- Loads a texture from a file