Rename mjrf_getSamplerType to mjrf_getTextureSamplerType.

PiperOrigin-RevId: 937193469
Change-Id: I56f856e257fa1cf99b643f794139ef85817a0bb9
This commit is contained in:
Haroon Qureshi
2026-06-24 02:17:24 -07:00
committed by Copybara-Service
parent 080668df42
commit 29b49991a2
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ int mjrf_getTextureWidth(const mjrfTexture* texture);
int mjrf_getTextureHeight(const mjrfTexture* texture);
// Returns the sampler type (mjrSamplerType) used by the texture.
int mjrf_getSamplerType(const mjrfTexture* texture);
int mjrf_getTextureSamplerType(const mjrfTexture* texture);
// ## Meshes (mjrfMesh)
//
@@ -201,7 +201,7 @@ static void UpdateGeomMaterial(mjrfRenderable* renderable, const mjvGeom& geom,
if (material.color_texture) {
const bool tex_uniform = model->mat_texuniform[geom.matid];
if (mjrf_getSamplerType(material.color_texture) == mjTEXTURE_2D) {
if (mjrf_getTextureSamplerType(material.color_texture) == mjTEXTURE_2D) {
// For 2D textures, `tex_repeat` specifies how many times the texture
// image is repeated. The `tex_uniform` flag determines if the repetition
// is applied at in object space (false) or in world space (true).
+1 -1
View File
@@ -193,7 +193,7 @@ int mjrf_getTextureHeight(const mjrfTexture* texture) {
return mujoco::Texture::downcast(texture)->GetHeight();
}
int mjrf_getSamplerType(const mjrfTexture* texture) {
int mjrf_getTextureSamplerType(const mjrfTexture* texture) {
return mujoco::Texture::downcast(texture)->GetSamplerType();
}