{"_id":"@ahmerhh/webgraphiclibrary-texture-display","name":"@ahmerhh/webgraphiclibrary-texture-display","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ahmerhh/webgraphiclibrary-texture-display","version":"1.0.0","description":"Display a WebGraphicLibrary texture.","main":"dist/index.js","scripts":{"test":"browserify test/index.js -t babelify | browser-run --static . | tap-spec","build":"browserify src/index.js -t babelify -s @ahmerhh/WebGraphicLibrary-texture-display > dist/index.js","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/ahmerhh/WebGraphicLibrary-texture-display.git"},"keywords":["WebGraphicLibrary","texture","display"],"author":{"name":"ahmerhh","email":"ahmerhh@protonmail.com"},"authoralt":"ahmerhabib <ahmerhabibb@gmail.com>","license":"MIT","bugs":{"url":"https://github.com/ahmerhh/WebGraphicLibrary-texture-display/issues"},"homepage":"https://github.com/ahmerhh/WebGraphicLibrary-texture-display#readme","devDependencies":{"babel-preset-es2015":"^6.3.13","babelify":"^7.2.0","browser-run":"^3.0.8","browserify":"^13.0.0","tap-spec":"^4.1.1","tape":"^4.4.0"},"dependencies":{"@ahmerhh/geo-plane":"^1.0.0","@ahmerhh/WebGraphicLibrary-buffer":"^1.0.0","@ahmerhh/WebGraphicLibrary-context":"^1.0.0","@ahmerhh/WebGraphicLibrary-program":"^1.0.0","@ahmerhh/WebGraphicLibrary-texture":"^1.0.0"},"_id":"@ahmerhh/webgraphiclibrary-texture-display@1.0.0","gitHead":"1392def83d23c18455577903940496c79d73d5cf","_nodeVersion":"18.15.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-GUgJLPLwmSWEOerSUGtt/Aud7CzneekCiA/F7Hk85svKzelmI/YreYaIuL/UxiezUB5+yLKbtyI4SBKml3nAgg==","shasum":"333ef2ad1304f2258a3794fafa6ec2aac101a457","tarball":"https://registry.npmjs.org/@ahmerhh/webgraphiclibrary-texture-display/-/webgraphiclibrary-texture-display-1.0.0.tgz","fileCount":6,"unpackedSize":5455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5RTULcKimqlitmO9OQaBqHSyf9VGn4jfqxxVs2l9I2gIgeC7Tlk7BDZHzYTn//P0tcATYCnMXDsXPw2qUIWA/DVE="}]},"_npmUser":{"name":"ahmerhh","email":"ahmerhabibb@gmail.com"},"directories":{},"maintainers":[{"name":"ahmerhh","email":"ahmerhabibb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webgraphiclibrary-texture-display_1.0.0_1691926561700_0.42618969253019157"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-13T11:36:01.439Z","1.0.0":"2023-08-13T11:36:01.853Z","modified":"2023-08-13T11:36:02.262Z"},"maintainers":[{"name":"ahmerhh","email":"ahmerhabibb@gmail.com"}],"description":"Display a WebGraphicLibrary texture.","homepage":"https://github.com/ahmerhh/WebGraphicLibrary-texture-display#readme","keywords":["WebGraphicLibrary","texture","display"],"repository":{"type":"git","url":"git+https://github.com/ahmerhh/WebGraphicLibrary-texture-display.git"},"author":{"name":"ahmerhh","email":"ahmerhh@protonmail.com"},"bugs":{"url":"https://github.com/ahmerhh/WebGraphicLibrary-texture-display/issues"},"license":"MIT","readme":"# GL Texture Viewer\r\n\r\nDisplay a WebGL texture using a convenient library for texture visualization. This is especially useful for visualizing the content of a [framebuffer object (FBO)](https://github.com/ahmerhh/WebGraphicLibrary_FixedBaseOperator).\r\n\r\n## Installation\r\n\r\n```sh\r\n$ npm install --save @ahmerhh/WebGraphicLibrary-texture-display\r\nUsage\r\n\r\njs\r\nCopy code\r\nimport TextureDisplay from '@ahmerhh/WebGraphicLibrary-texture-display';\r\n\r\n// Set up WebGL context and texture\r\n\r\nconst display = new TextureDisplay(gl, texture);\r\n\r\n// Call render in your rendering loop\r\ndisplay.render();\r\nAPI\r\n\r\ndisplay = new TextureDisplay(gl, texture [, width, height, left, top])\r\n\r\nCreates a new instance of the TextureDisplay class. The parameters are as follows:\r\n\r\ngl: The WebGL context. For more information, refer to WebGL Context.\r\ntexture: The texture object to be displayed. For more information, refer to Texture.\r\nwidth (default: 0.25), height (default: 0.25), left (default: 0.75), and top (default: 0) are all normalized values, with 1 representing fullscreen.\r\ndisplay.render([unit])\r\n\r\nRenders the texture using the specified texture unit. The default unit is 0.\r\n\r\ndisplay.dispose()\r\n\r\nDeletes the instance of the TextureDisplay class. The texture object remains intact.\r\n\r\nLicense\r\n\r\nThis project is licensed under the MIT License. See LICENSE.md for more details.","readmeFilename":"README.md"}