The Wayback Machine - https://web.archive.org/web/20210818113753/https://github.com/topics/webgl
Skip to content
#

webgl

Here are 4,021 public repositories matching this topic...

Babylon.js
BStringhamVRSK
BStringhamVRSK commented Aug 12, 2021

Problem:
After using Engine.createTextureFromKtx/jpeg/Png, I need to query the texture width and height so I can generate proper UV coordinates for font display.

Proposed solution
Expose the Texture.getWidth(), getHeight(), etc. methods to get texture information. I currently only need width and height, but I can see usage cases for many of the other "getters" available in the C++ in

mbullington
mbullington commented Aug 17, 2021

Motivation

In Studio we have the following pattern that feels common across GL JS devs. We could potentially integrate this pattern into a convenience method:

if (map.hasImage(imageId)) {
  if (this.imageSizeChanged(imageId, rasterized)) {
    // Detect if icon size has changed, and if so,
    // use remove/add instead of updateImage, since
    // updateImage disallows 

Improve this page

Add a description, image, and links to the webgl topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the webgl topic, visit your repo's landing page and select "manage topics."

Learn more